Job Details: Run interactive user session is turned ON and running a specific project suite.
Node Details: Launch method: Launch agent by connecting it to the master Internal data directory: remoting
Scenario 1: Launch the VM through RDP session from the server machine and run the Jenkins job by keeping the VM session active then my tests will run. I can see the tests running through TestComplete chrome plugin.
Scenario 2: Disconnect the VM and then run the jenkins job, after few minutes jenkins job will be marked as failure and I see following logs: ==========================
Started by user admin Running as SYSTEM Building remotely on DESKTOP-73F1U9C in workspace C:\jenkins\agent\workspace\test
[TestComplete] The test execution started (Packnet/Packnet). [TestComplete] Found TestComplete/TestExecute installations: Type: TE, Version: 184.108.40.206, Path: "C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe" Type: TELite, Version: 220.127.116.11, Path: "C:\Program Files (x86)\SmartBear\TestExecuteLite 14\x64\bin\TestExecuteLite.exe" [TestComplete] Selected TestComplete/TestExecute installation: Type: TE, Version: 18.104.22.168, Path: "C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe" [TestComplete] [WARNING] The node is connected via Java Web Start (JNLP). In this mode, the "Run interactive user session" property of the TestComplete Test step is ignored. TestComplete (or TestExecute) will work in the current user session. [TestComplete] Launching the test runner. $ '"C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\SessionCreator.exe"' ExecuteProcess '/c:""C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe"" "C:\PackNet_Automation_POC\Packnet.pjs" /run /SilentMode /ForceConversion /ns /exit "/ExportLog:C:\jenkins\agent\workspace\test\1622818571792.tclogx" "/ExportLog:C:\jenkins\agent\workspace\test\1622818571792.htmlx" "/ErrorLog:C:\jenkins\agent\workspace\test\1622818571792.txt" "/ExportLog:C:\jenkins\agent\workspace\test\1622818571792.mht" "/project:Packnet" /DoNotShowLog /JenkinsTCPluginVersion:2.6.2' [TestComplete] Test runner exit code: 2. [TestComplete] [WARNING] Error: Unable to navigate to the http://localhost/packnet/#/Login page.. [TestComplete] [WARNING] Errors occurred during the test execution. [TestComplete] Marking the build as UNSTABLE. [TestComplete] The test execution finished (Packnet/Packnet). Build step 'TestComplete Test' changed build result to UNSTABLE Finished: UNSTABLE
I have manually launched the Jenkins agent through jnlp file and kept the console open to run my tests.
When you have the JNLP slave agent running, are you able to run tests on the node?
- yes when I launch the slave agent running and open that VM through RDP connection then I can run my tests (please watch 2nd video)
Is there perhaps some authentication step that needs to occur?
- There is no need or problem with system authentication since the bowser and mongodb command prompt are already launched on that VM.
Can you record/run a test on any other URL?
- I have tried with other sample links like google, yahoo and ebay links, it works perfectly fine when I have my VM open through RDP but if I close the RDP session and run the jobs then again it will fail with the same reason.
I have marked your comment as the solution since one of the links which you suggested leads to my link which I have mentioned above. Thanks a lot for your review comments, those things helped me a lot to learn the tool. Have a good day!