Forum Discussion
Dear Shilpi Agarwal
First of all: you are aware you are not actually using the Jenkins integration? The 'proper' way is not to run a Windows batch command under Build, but to use a 'Testcomplete Test' step.
Apart from this: If you want to do it with a Windows batch job, what you are doing looks fine. (I may very well have missed something). I suspect that it is not the Testcomplete batch job that is failing, but another (run afterwards by Jenkins). Can you verify that the tests have not actually run? (Whether there are any logs in C:\Testlogs\). If it is the Testcomplete batch file that is failing: are you sure the paths are correct? (That there are files at the end of them, esp. 'bin' vs. 'Bin')
Hope this helps.
Søren Harder, QA engineer, Zmags
PS! I have no experience with Subversion and am definitely not a version system expert, but have a little experience with the Jenkins integration and also using windows batch to run TC tests.
PPS! I would use TestExecute in Jenkins instead of TestComplete, but that should not make a difference.
I have tried both ways to integrate test complete with Jenkins - Through TestComplete Test build step and Windows batch command.
Following are the settings that I have followed in Jenkins for TesrComplete Test-
Click on save and Build is run and getting following error
An error says -
"C:\Program Files (x86)\SmartBear\TestComplete 12\bin\TestComplete.exe" [TestComplete] [ERROR] Unable to find the specified TestComplete/TestExecute installation.
But TestComplete is installed in he same directory as above mentioned.
Please suggest.
- sha8 years agoContributor
I'm not sure what we are not noticing. Have you tried to run the command from your first mail (the batch command) in cmd locally on the client machine?
- shilpi_agarwal8 years agoContributor
Yes, Command is working perfectly fine if I run from cmd on my local machine.
For Your information,Test Complete, Jenkins and GUI Application (which I am using for test ) all resides in local machine.
Please suggest.
- shilpi_agarwal8 years agoContributor
Can you please suggest me What the following error says?
[TestComplete] Test runner exit code: -10 (Unable to create a user session). [TestComplete] [WARNING] Unable to find the log file "1646141.tclogx". [TestComplete] [WARNING] Unable to find the log file "1646141.htmlx". [TestComplete] [WARNING] Unable to find the log file "1646141.mht". [TestComplete] [WARNING] Errors occurred during the test execution. [TestComplete] Marking the build as UNSTABLE. [TestComplete] [WARNING] Unable to publish test results (xml data is empty). [TestComplete] The test execution finished