Forum Discussion
i dont understand why you cannot use the plugin...
say you first build your maven project as the first build step of your pipeline, you can easily add it post steps (one of which could be the testcomplete plugin)
when you are performing these tests are a dev machine, I'm assuming someone manually kicks off this sequence?
If you then apply the first step (mvn test) into the jenkins pipeline, and add the testcomplete test as a post step are you seeing failures?
Worst case scenario, you could chain batch commands using the SessionCreator.exe (utility shipped with testcomplete) in order to start up an interactive user session and specify the TC project to run
- hkim55 years agoStaff
- tarunaggarwal235 years agoOccasional Contributor
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
- 8 years ago
Recent Discussions
- 16 hours ago
- 4 days ago