Is it possible to use Sikuli to find/click elements running tests with TeamCity

Asked by Stephen Staple

Is it possible to use Sikuli to find/click elements running tests with TeamCity?

I have successfully used Sikuli to find & click elements running automation tests on my desktop PC.

However, I need the automated tests to be run by our Integration Server, Team City.

When I do this, the same commands produce an error:

[error] Location: outside any screen (21355040, 0) - subsequent actions might not work as expected

TeamCity is run as a Web Service, and as such these test runs will be headless.

i.e. there are no actual screens used, it is all virtual, even though it can produce screenshots.

(the screenshots here showed that the required element was clearly visible).

I did tests to eliminate the possibility of it being a screen resolution problem.

Is it possible to actually do this? i.e to run Sikuli from TeamCity?

If not, I fail to see any use for Sikuli.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

--- If not, I fail to see any use for Sikuli.

Uuuups, frustration is never a good companion ;-)
... at least for those not using TeamCity OR knowing the solution, SikuliX is of high value ;-)

... but at least thanks for the hint: since SikuiX is OpenSource, I can use TeamCity at no cost. I will have a look into it.

--- your problem:
Without having looked into TeamCity, I guess it is something similar to TravisCI (what I currently use).

In TravisCI (which is headless too basically) it is possible to activate a virtual screen using xvfb. This allows me to run real tests during the build.

I guess, something similar must be available in TeamCity also.

I saw, there is some DSL - perhaps something there.

--- even though it can produce screenshots
this tells me, that they have something like xvfb internally --- to find it, I have to leave you alone for now (other priorities).

All the best.

Can you help with this problem?

Provide an answer of your own, or ask Stephen Staple for more information if necessary.

To post a message you must log in.