Forum Discussion
11 Replies
Hi Sean,
I see that you've contacted our guys from Support. Let's move the investigation there. When you have some results, please share them with us!
Hi Sean,
Are you using Automated Build Studio to build your app? If you are, you can call the special operation to run TestComplete tests. Read the "TestComplete 9 and TestExecute 9 Operations" article for details.
Otherwise, you can use Windows Task Scheduler to run tests.
- seanMRossContributorHi Tanya
I am not using Automated Build Studio.
I have a batch file that has the following line:
"C:\Program Files (x86)\SmartBear\TestComplete 9\Bin\TestComplete.exe" "C:\ Path...\WebUI Automation.pjs" /r /e /SilentMode
I have this set to run after the nightly build has finished, but it wont run if the remote machine is locked.
Is there a way to run this on a remote machine that is locked?
Thanks
Sean - seanMRossContributorHi Tanya
I have the tests running using the windows task and TestExecute.
The batch file looks like this:
"C:\Program Files (x86)\SmartBear\TestExecute 9\Bin\TestExecute.exe" "C:\Users\username\Desktop\ProjectNAme\ProjectName.pjs" /r /e /SilentMode
TIMEOUT /T 30
But when the tests get to the chrome part of cross browser testing the memory usage is large.
CPU usage is maxing at 100%
The tests are taking longer than when ran with TestComplete.
I have attached a screen shot from process explorer of the CPU information.
Thanks
Sean
Hi Sean,
Our Support Team needs more info to tell you what is going on. Follow the steps below to help them investigate the issue:
1. Run the Report Generator tool located in <TestExecute>\Bin\ReportGenerator.exe.
2. Select the "Launch/attach to TestExecute" option.
3. Run another instance of the Report Generator tool.
4. Select the "Track application launch" option, specify Chrome's executable name and click Next. The Report Generator tool will wait until the application is launched and then will track all events in it.
5. Reproduce the problem.
6. Click the "Generate..." button in all instances of the Report Generator tool and save reports to a local folder.
7. Send the reports to our Support Team.
- seanMRossContributorHi Tanya
I have the first part of your 15 Jan 2013, 06:10 AM post completed but it is a little harder to recreate the chrome memory issue using. I will try again today and send the files to support.
In the mean time I changed the batch file and added the line from the smartbear documentation:
SO now my batch file looks like this:
tscon 2 /dest:console
"C:\Program Files (x86)\SmartBear\TestComplete 9\Bin\TestComplete.exe" "C:\ Path...\WebUI Automation.pjs" /r /e /SilentMode
It made an improvement because the windows task disconnects and the tests run.
But all tests are failing. The browsers are being run as backround processes so testexecute can not focus on objects.
Other commands such running batch files or apps work correctly.
Is there a way to run the browers normaly?
Thanks
Sean - seanMRossContributorHi Tanya
I have been investigating the issue.
I believe the problem lies where when I log on remotely my SessionID from task manager reads 2
But when task scheduler kicks off the batch file it runs it with SessionID = 0
Therefore my session cant see the processes in SessionID =0
The remote server is running Windows 7 Enterprise, is this method of running tests supported with OS?
Thanks
Sean - seanMRossContributorThank you for you help!
Sean - wynfranc1234ContributorHi.
what's the solution for this? Getting the same issue. thx