Forum Discussion
Thanks hkim5 for your response.
The flow of all my testcases is like this:
- Publish a record using JAVA
- Once the Popup comes on the screen, validate the UI using TestComplete
- Validate any changes on the backend record again using JAVA
Since the starting point of each test case is Java and not TestComplete; that is why I can't use the Jenkins TestComplete plugin. Neither I can place all the records in one go using Maven command and then call the TestComplete scripts in one go to verify the UI. Its Java-TestComplete mixed flow for every test case.
In my case it is the Maven project (JAVA) that internally launches TestComplete using Socket Programming (https://smartbear-cc.force.com/portal/KbArticleViewer?name=Script-based-TCP-IP-server&sp=testcomplete).
My Java Program calls TestComplete TestExecute like tthis:
driverProcess = new ProcessBuilder(
testCompletePath,
driverInvocationProjectPath,
"/run",
"/project:" + driverInvocationProjectName,
"/u:" + driverInvocationFileName,
"/rt:" + driverInvocationFunctionName,
"/ns",
"/ErrorLog:" + errorLogFilePath,
driverInvocationCustomParams
).start();
Yes I am manually running the tests on a dev machine.
I need a way that from Java Program, I can specify "UseActiveSession" and Credentials. Right now when i run the automation from Jenkins, the script starts but since the automation runs under Service Account everything on the screen is white (Application is not visible on the UI).
- tarunaggarwal234 years agoOccasional Contributor
Hi,
I noticed that when I use SessionCreator.exe directly from Jenkins (From Windows Batch command in Jenkins), I am able to make the connection and the test complete script runs fine.
If I call SessionCreator.exe from JAVA program using ProcessBuilder and call the JAVA program using mvn from Jenkins, the command executes, but nothing happens on the screen. When I see the TestComplete Logs, I see complete white picture in the screenshots.
I think the problem is somewhere in the way Jenkins service is running. I have tried running the Jenkins service as Local System Account with 'Allow service to interact with desktop' checked as well as the actual domain user with which i am logged into the system.
Any suggestions to make this work?
Thanks,
Tarun
Related Content
- 5 years ago
- 8 years ago
- 4 years ago