Run TestSuite remote server gives - This operation requires an interactive window station

Bug reports.
mbn
Posts: 1
Joined: Thu Jul 11, 2019 8:43 am

Run TestSuite remote server gives - This operation requires an interactive window station

Post by mbn » Thu Jul 11, 2019 8:52 am

Dear Ranorex

When I run our Ranorex TestSuite via TeamCity on a remote server, I get error after starting:
[TestSuite]: This operation requires an interactive window station

Due you know what is going on and maybe how to fix it?

The full log is listed below.
OS: WS 2016 Standard x64

09:21:57]Step 5/6: Run the automatic tests (Command Line) (10s)
[09:21:57][Step 5/6] Starting: C:\BuildAgent\work\759880d240384d\AtpUdkAutomaticTests\AtpUdkAutomaticTests\bin\Debug\AtpUdkAutomaticTests.exe /ts /zr /zrf:Reports/Report.rxzlog
[09:21:57][Step 5/6] in directory: C:\BuildAgent\work\759880d240384d
[09:22:05][Step 5/6] [2019/07/11 09:22:05.667][Debug ][Logger]: Console logger starting.
[09:22:07][Step 5/6] [2019/07/11 09:22:07.114][Failure][TestSuite]: This operation requires an interactive window station
[09:22:08][Step 5/6] [2019/07/11 09:22:08.243][Debug ][Logger]: Console logger stopping.
[09:22:08][Step 5/6] Process exited with code -1
[09:22:08][Step 5/6] Process exited with code -1 (Step: Run the automatic tests (Command Line))
[09:22:08][Step 5/6] Step Run the automatic tests (Command Line) failed[language=][/language]

Best regards Magnus

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 4918
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Run TestSuite remote server gives - This operation requires an interactive window station

Post by odklizec » Fri Jul 12, 2019 11:17 am

Hi,

This error sounds like if the test is started on agent, which is running as a windows service? This is a big "nono", because Ranorex requires realized desktop. Check this TeamCity integration blog post, how to properly start TC build agent:
https://www.ranorex.com/blog/integratin ... ess/#agent
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration