cancel
Showing results for 
Search instead for 
Did you mean: 

testcomplete - problem with run tests from Bamboo agent

SOLVED
New Contributor

testcomplete - problem with run tests from Bamboo agent

Hi,

 

I have problem with runs tests from Bamboo agent on virtual machine. I have simply tests to run browser, open page and log in, and when I run its from comand line its ok, but the same script from bamboo get error.

This script I execute:

"C:\Program Files (x86)\SmartBear\TestComplete 14\x64\bin\TestComplete.exe" "..\TestProject10\TestProject10.pjs" /r /p:XXX /t:"KeywordTests|X1" /SilentMode /exit 

 

And logs:

1. The browser is already running

2. Navigating to the asda.com page."/>

3. And then.. The operation cannot be performed, because the user session is non-interactive.

 

Regards, 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Community Hero

Re: testcomplete - problem with run tests from Bamboo agent

Hi,

 

As per the message says:

> The operation cannot be performed, because the user session is non-interactive.

Bamboo agent is started as a service, thus it does not have desktop assigned and cannot interact with it, thus OS has no place where to display UI interface of the started browser and thus TestComplete cannot find and interact with the requested UI element.

 

Read https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/index.html and related help articles.

In a nutshell: you must have test user logged-in, its desktop session must not be locked, Bamboo agent must be started as an application but not as a service within this user session and TestComplete must be started within this sesion as well. Note, that all these requirements are not TestComplete-specific but are generic requirements caused by the Windows OS.

 

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Community Hero

Re: testcomplete - problem with run tests from Bamboo agent

Hi,

 

> How could I start it as application?

I am not using Bamboo, so cannot provide you with instructions. Check the documentation.

 

The architecture must be like this:

-- You must interactively log in as a user on behalf of whom test will be executed;

-- User session must be unlocked and all screensavers, timeouts, etc. must be disabled;

-- Bamboo agent must be started as a regular application from within user session. This will provide the agent with the user desktop and GUI;

-- On getting command from the Bamboo server, agent will start TestComplete and/or browser. TestComplete and browser will inherit access to the user desktop and GUI, so TestComplete will be able to interact with the browser.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
3 REPLIES 3
Highlighted
Community Hero

Re: testcomplete - problem with run tests from Bamboo agent

Hi,

 

As per the message says:

> The operation cannot be performed, because the user session is non-interactive.

Bamboo agent is started as a service, thus it does not have desktop assigned and cannot interact with it, thus OS has no place where to display UI interface of the started browser and thus TestComplete cannot find and interact with the requested UI element.

 

Read https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/index.html and related help articles.

In a nutshell: you must have test user logged-in, its desktop session must not be locked, Bamboo agent must be started as an application but not as a service within this user session and TestComplete must be started within this sesion as well. Note, that all these requirements are not TestComplete-specific but are generic requirements caused by the Windows OS.

 

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
New Contributor

Re: testcomplete - problem with run tests from Bamboo agent

Hi Alex,

 

1. I have user logged-in -> the same as bamboo service is installed.

2. I don't understand "Bamboo agent must be started as an application but not as a service within this user session" 

How could I start it as application? Now it's started as service.

 

Regards,

Community Hero

Re: testcomplete - problem with run tests from Bamboo agent

Hi,

 

> How could I start it as application?

I am not using Bamboo, so cannot provide you with instructions. Check the documentation.

 

The architecture must be like this:

-- You must interactively log in as a user on behalf of whom test will be executed;

-- User session must be unlocked and all screensavers, timeouts, etc. must be disabled;

-- Bamboo agent must be started as a regular application from within user session. This will provide the agent with the user desktop and GUI;

-- On getting command from the Bamboo server, agent will start TestComplete and/or browser. TestComplete and browser will inherit access to the user desktop and GUI, so TestComplete will be able to interact with the browser.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors