Forum Discussion

raj360logica's avatar
raj360logica
Occasional Contributor
7 years ago

I am working with testcomplete and trying to integrate my project with Jenkins but getting error.

[TestComplete] The test execution started (GrantsAutomation).
[TestComplete] Found TestComplete/TestExecute installations:
	Type: TC, Version: 12.31.1833.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 12\bin\TestComplete.exe"
[TestComplete] Selected TestComplete/TestExecute installation:
	Type: TC, Version: 12.31.1833.7, Path: "C:\Program Files (x86)\SmartBear\TestComplete 12\bin\TestComplete.exe"
[TestComplete] [WARNING] The node is connected via Jenkins Agent running as a Windows service. TestComplete tests cannot run in this mode, as they require an interactive user session. To create such a session, enable the "Run interactive user session" property of the TestComplete Test step.
[TestComplete] Launching the test runner.
$ "C:\Program Files (x86)\SmartBear\TestComplete 12\bin\TestComplete.exe" "C:\Users\rajneeshk\Documents\TestComplete 12 Projects\GrantsAutomation\GrantsAutomation.pjs" /run /SilentMode /ForceConversion /ns /exit /ExportLog:C:\Users\rajneeshk\.jenkins\workspace\TestComplete\1397247.tclogx /ExportLog:C:\Users\rajneeshk\.jenkins\workspace\TestComplete\1397247.htmlx /ErrorLog:C:\Users\rajneeshk\.jenkins\workspace\TestComplete\1397247.txt
[TestComplete] [ERROR] An exception occurred:
java.io.IOException: CreateProcess error=740, The requested operation requires elevation.
[TestComplete] Marking the build as FAILED.
[TestComplete] [WARNING] Unable to publish test results (xml data is empty).
[TestComplete] The test execution finished (GrantsAutomation).
Build step 'TestComplete Test' changed build result to FAILURE
Finished: FAILURE

Please any help would be appreciated.

3 Replies

  • shankar_r's avatar
    shankar_r
    Community Hero

    There are few things to check for this issue.

    • I'm seeing you are running the project in Slave machine
      • have you given Remote root directory as part of setting up Jenkins Slave node like below
    • Your project located in below path which is not in the remote directory to trigger the TestComplete project suite 
      "C:\Users\rajneeshk\Documents\TestComplete 12 Projects\GrantsAutomation\GrantsAutomation.pjs"
    • Basically below error will come when jenkins slave not able to access the folder in the slave machine
      java.io.IOException: CreateProcess error=740, The requested operation requires elevation.

    What you can try is,

    1. Setup the remote directory in Jenkins > Manage Jenkins > Manage Nodes > Select your slave node > enter the directory
    2. Place your project suite inside the remote directory which is setup in last step
    3. Then change your project suite location in TestComplete build step

    If above steps are not resolved your issue, post some snapshots of your configuration and additional informations