ArtOfTest.WebAii.Exceptions.UnsupportedNonInteractiveOperationException: Dialog monitoring can not be enabled when running in non-interactive mode.

2 Answers 100 Views
TeamCity Test Execution
Gilberto
Top achievements
Rank 1
Iron
Gilberto asked on 17 May 2023, 01:29 PM

Hello.


I have been trying to use TeamCity to run the list test made on Telerik test Studio, followed all the steps showed here and started the agent on interactive mode using the cmd command of "agent start" from "C:\TeamCity\buildAgent\bin\". From TeamCity, it can execute the command line, but every test fails at 0/x steps showing this on the logs:

- ArtOfTest.WebAii.Exceptions.UnsupportedNonInteractiveOperationException: Dialog monitoring can not be enabled when running in non-interactive mode. Follow the link for more information: http://docs.telerik.com/teststudio/user-guide/command-line-test-execution/continuous-integration/team-foundation-server-builds.aspx
   en ArtOfTest.WebAii.Win32.Dialogs.DialogMonitor..ctor(Boolean startMonitoring, Manager manager)
   en ArtOfTest.WebAii.Core.Manager.Init(Settings settings)
   en ArtOfTest.WebAii.Core.Manager..ctor(Settings settings)
   en ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWeb(ExecutionEngineCreateParams initParams)
   en ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp)
   en ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)

It is necessary to follow the steps as shown on http://docs.telerik.com/teststudio/user-guide/command-line-test-execution/continuous-integration/team-foundation-server-builds.aspx as I am using TeamCity? 
If so, which steps I must do to be able to run list test using TeamCity?

2 Answers, 1 is accepted

Sort by
0
Accepted
Gilberto
Top achievements
Rank 1
Iron
answered on 19 May 2023, 04:59 PM

Hello.

I was able to resolve my issue:

 

What I did at the end was unistalling the BuildAgent that came with installing Teamcity and installed one manually from the project itself. While installing, make sure to uncheck the option to install it as Windows Service. Even though I unchecked this option while installing TeamCity, it never worked until I uninstalled that Agent and reinstalled it using the option from TeamCity.

 

Thanks for the help

Elena
Telerik team
commented on 22 May 2023, 12:44 PM

Hi Gilberto, 

I appreciate your feedback on the solution you found. This is an interesting difference in the TeamCity agents and I will keep it in mind for future reference. 

Thanks a lot for your cooperation.

Regards,
Elena

0
Elena
Telerik team
answered on 17 May 2023, 03:52 PM

Hello Gilberto,

Thank you for sharing details on the setup and outcome of the test run.

This error indicates that the agent isn't running in interactive mode. And as you confirmed you have followed the instructions from our documentation, I think there could be something different in how the TeamCity agent needs to be started. Here are the instructions how it should be running in interactive mode - there is a slight difference from our online docs, so, please, give this a try.  

I have to admit that I am not an expert in TeamCity, so I might be missing something from its configuration. However, from Test Studio perspective the requirements are build agent running in interactive mode and active user session. So, if you have any

As to the link provided in the error message - please, ignore it. I will take care of it to open a relevant document as soon as possible. 

Let me know if you need additional assistance. 

Regards,
Elena
Progress Telerik

Virtual Classroom is the free self-paced technical training portal that gets you up to speed with Telerik and Kendo UI products including Telerik Test Studio! Check it out at https://learn.telerik.com/.
Gilberto
Top achievements
Rank 1
Iron
commented on 17 May 2023, 06:21 PM | edited

Thanks for answering Elena,

 

Sadly, the steps shows on the link you provide were the same as done before; starting Agent with the command "Agent.bat Start".

There is a warning in the console which the agent open:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/C:/TeamCity/buildAgent/lib/xstream-1.4.11.1-custom.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Doing a research confirmed that this doesn't matter for the situation as it doesn't affect the program.

 

However, Im still with the error mentione on the original post.

 

Elena
Telerik team
commented on 19 May 2023, 02:53 PM

Hi Gilberto, 

This is really strange, though. Based on the TeamCity documentation this is how their agent shoukl be started in interactive mode. Thus, I can only suggest you to try running the CMD with admin rights and start the agen that way. Will this change anything? 

If this still doesn't work and the same error is still present, would it be possible for you to check with the TeamCity support if there is anything we are missing in order to start the agent in interactive mode?

Thank you for your cooperation in advance.

Regards,
Elena

Tags
TeamCity Test Execution
Asked by
Gilberto
Top achievements
Rank 1
Iron
Answers by
Gilberto
Top achievements
Rank 1
Iron
Elena
Telerik team
Share this question
or