Forum Discussion
From my pipeline, I have this command to run in a Windows 10 Pro VM where the runner is installed:
.\SessionCreator.exe RunTest /UserName:myuser /password:mypassword /UseActiveSession /ScreenResolution:"1920*1080" /ProjectPath:"C:\PathToMyProject\MyProject.pjs"
Before I run the UI Test stage, I log into the VM to see if it performs the test, and I can see it runs properly. But the results are seen as a failure, and these are the logs printed:
The TestComplete process has exited with the following code: 2.
29 There was an attempt to perform an action at point (35, 5) which is transparent or out of the window bounds.
30 The test run has stopped because your test project is configured to stop on errors.
31 TypeError: Cannot read property 'split' of undefined
32 The test run has stopped because your test project is configured to stop on errors.
33 The window is overlapped by the 'TestComplete - C:<SPAN class="token function selector"><SPAN class="token function selector">\PathToMyProject</SPAN></SPAN><SPAN class="token function selector"><SPAN class="token function selector">\MyProject</SPAN></SPAN>.pjs' window.
34 There was an attempt to perform an action at point (1235, 809), which is overlapped by TestComplete's window.
35 The test run has stopped because your test project is configured to stop on errors.
36 The project suite execution has been stopped.
No idea what I could do.
I've also tried what you said about disconnecting from the Remote Desktop. Same result as before.
I started the runner from the cmd, with "gitlab-runner.exe run" to allow to start my application first.
On the VM, if you use TestExecute.exe command with the appropriate parameters, does it run without failing?
If yes, then if you log into the VM as user 'pevolve', then you need to use the same username in SessionCreator too.
When you first log onto the VM, are there any dialogs that appear which requires user interactions? As this may be obscuring TC from running.
If you're using a separate command to launch your application, the automation needs to wait for this to be loaded first.
- RaghavM11 months agoOccasional Visitor
It could be because of other window (Could be your cmd)is overlapping and your currect object is not visible on screen
Can you check your Current project properties in Test Complete?
Go to Tools->Current Project Properties->Select PlayBack anc Search for Ignore overlapped window and select that Check box and Save your project.
- cesaralbusac11 months agoOccasional Contributor
The test I'm trying to run is the Login test into my application. Even working, because testcomplete enters a password and server and I get logged in properly, it returns a failure.
If I run the test (either keyword or script) with the TestComplete program, both work.
If I run the from powershell the Execution plan with the keyword test, it works.
If I run the from powershell the Execution plan with the script test, it fails:When running the command using TestExecute, I got an error:
PS C:\Program Files (x86)\SmartBear\TestExecuteLite 15\x64\Bin> .\TestExecuteLite.exe "C:\Users\pevolve\Desktop\TestComplete\PETestProject\PETestProject.mds"
Fatal Error: TestExecuteLite cannot start. Initialization error.
When running from the pipeline, I first start my application to be able to interact with it, and I can see it working.- rraghvani11 months agoChampion Level 3
I don't know the different between your keyword and script tests.
TestExecute is different from TestExecuteLite. You should not be using TestExecuteLite.
When you say "pipeline" are you referring to the command line or Azure Pipeline?
What version of TestComplete and TestExecute are you using?
Related Content
- 10 years ago
- 6 years ago
Recent Discussions
- 6 days ago
- 6 days ago
- 10 days ago