Running on TeamCity: Location: outside any screen (398055760, 0)

Asked by Nael Abd Aljawad

Hi,

I'm trying to run my script using TeamCity Builds, after running i get this error message:
[error] Location: outside any screen (373256768, 0) - subsequent actions might not work as expected

********************************************************************************************
Full Log Message:

[debug] Debug: setLogFile: C:\BuildAgent\work\a77658e7b6488cef\Logs\SikuliFullLogger.log
[debug] Debug.init: from sikuli.Debug: on: 3
[debug] RunTimeINIT: loadOptions: check: C:\BuildAgent\work\a77658e7b6488cef
[debug] RunTimeINIT: loadOptions: check: C:\Windows\system32\config\systemprofile
[debug] RunTimeINIT: loadOptions: check: C:\Windows\system32\config\systemprofile\AppData\Roaming\Sikulix\SikulixStore
[debug] RunTimeINIT: global init: entering as: API
[debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[debug] RunTimeINIT: Monitor 0: (0, 0) 1024 x 768
[debug] RunTimeINIT: runs as sikulixapi-1.1.1-SNAPSHOT.jar in: C:\Windows\system32\config\systemprofile\.m2\repository\com\sikulix\sikulixapi\1.1.1-SNAPSHOT
[debug] RunTimeINIT: exists libs folder at: C:\Windows\system32\config\systemprofile\AppData\Roaming\Sikulix\SikulixLibs_201606190101
[debug] RunTimeINIT: addToWindowsSystemPath: added to systempath:
C:\Windows\system32\config\systemprofile\AppData\Roaming\Sikulix\SikulixLibs_201606190101
[debug] RunTimeINIT: checkJavaUsrPath: added to ClassLoader.usrPaths
***** show environment for API (build 201606190101)
user.home: C:\Windows\system32\config\systemprofile
user.dir (work dir): C:\BuildAgent\work\a77658e7b6488cef
user.name: IL-TC-REGRESSIO$
java.io.tmpdir: C:\BuildAgent\temp\buildTmp
running 64Bit on Windows (6.3) from a jar
java 8-64 version 1.8.0_91-b14 vm 25.91-b14 class 52.0 arch amd64
app data folder: C:\Windows\system32\config\systemprofile\AppData\Roaming\Sikulix
libs folder: C:\Windows\system32\config\systemprofile\AppData\Roaming\Sikulix\SikulixLibs_201606190101
executing jar: C:\Windows\system32\config\systemprofile\.m2\repository\com\sikulix\sikulixapi\1.1.1-SNAPSHOT\sikulixapi-1.1.1-SNAPSHOT.jar
*** classpath dump sikulix
*** classpath dump end
***** show environment end
[debug] RunTimeAPI: global init: leaving
[debug] RunTimeAPI: initAPI: entering
[debug] RunTimeAPI: resourceList: enter
[debug] RunTimeAPI: resourceLocation: (class org.sikuli.script.RunTime) /Lib/sikuli
[debug] RunTimeAPI: resourceList: having jar: jar:file:/C:/Windows/system32/config/systemprofile/.m2/repository/com/sikulix/sikulixapi/1.1.1-SNAPSHOT/sikulixapi-1.1.1-SNAPSHOT.jar!/Lib/sikuli
[debug] RunTimeAPI: files exported: 7 from: Lib/sikuli to:
 C:\Windows\system32\config\systemprofile\AppData\Roaming\Sikulix\Lib\sikuli
[debug] RunTimeAPI: initAPI: leaving
[debug] RunTimeAPI: loadLib: VisionProxy.dll
[error] Location: outside any screen (373256768, 0) - subsequent actions might not work as expected
[debug] Mouse: init
[debug] KeyBoard: init
[debug] Image: loaded: C:/BuildAgent/work/a77658e7b6488cef/screenshots/ElasticCubeManager/FileButton.PNG (file:/C:/BuildAgent/work/a77658e7b6488cef/screenshots/ElasticCubeManager/FileButton.PNG)
[debug] Image: cached: C:/BuildAgent/work/a77658e7b6488cef/screenshots/ElasticCubeManager/FileButton.PNG (9 KB) (# 1 KB 9 -- 0 % of 64 MB)
[debug] Region: wait: waiting 15.0 secs for C:/BuildAgent/work/a77658e7b6488cef/screenshots/ElasticCubeManager/FileButton.PNG to appear in S(0)[0,0 1024x768]
[debug] Region: handleFindFailed: C:\BuildAgent\work\a77658e7b6488cef\screenshots\ElasticCubeManager\FileButton.PNG
[debug] Region: wait: C:/BuildAgent/work/a77658e7b6488cef/screenshots/ElasticCubeManager/FileButton.PNG did not appear [660 msec]
[debug] ScreenImage.getFile:
C:\BuildAgent\work\a77658e7b6488cef\target\surefire-reports\CSVChangeConnectivityTest_06-21-2016_13-05-24.png
[debug] RunTimeAPI: loadLib: WinUtil.dll
[debug] WinUtil.getApp: ElastiCubeManager.exe
[debug] App.create: [-1:ElastiCubeManager.exe]
[debug] WinUtil.getApp: ElastiCubeManager.exe
[debug] RunTimeAPI: final cleanup
[debug] FileManager: deleteFileOrFolder:
C:\BuildAgent\temp\buildTmp\Sikulix_471731532
*****************************************************************************************

The test report shows me black screenshot.

How to solve this problem ?

Thanks.

Question information

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

I am not familiar with the setup/environment of a TeamCity Build run, but does the stuff run on a system with access to a real monitor or is it some fake screen? At least Java does not think it is headless.

Revision history for this message
Nael Abd Aljawad (nael-null) said :
#2

Hi RaiMan,

I have solved the problem i'll explain it soon for others.

Thanks,
Nael

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Sasmita (sasmita) said :
#4

Hi Nael Abd Aljawad,
Can you tell me how did you resolve it?

Thanks,
Sasmita

Revision history for this message
Nael Abd Aljawad (nael-null) said :
#5

HI Sasmita,

You have to remove TC agent because it is running as windows service.
What should you do ? You have to install new TC agent with to support UI tests, all you do is to deselect Windows Service option while installing the agent.

Why we get this? Sikuli as we know depends on real UI and it's looking for the images in that UI but when we install the agent as windows service a new session will open behind the scenes (headless), so if you take a screenshots while running the automation you will get black screens.

see this: http://jake.ginnivan.net/teamcity-ui-test-agent

Thanks :)