Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56194

Not able to run UFT ALM Scripts from master when the slave machine is logged off

    Details

    • Similar Issues:

      Description

      Team, 

      I am not able to run UFT scripts when slave machine is logged off completely.
      Started by user
      Sakthi
      Building remotely on
      W000WVP0C
      in workspace D:\Jenkins\workspace\TestbedXAT
      [TestbedXAT] $ D:\Jenkins\workspace\TestbedXAT\HpToolsLauncher.exe -paramfile props19022019041726459.txt
      "Started..."
      Timeout is set to: -1
      Run mode is set to: RUN_LOCAL
      ============================================================================
      Starting test set execution
      Test set name: XAT_StabilityCheck_Copy_1_Copy_1, Test set id: 40885
      "Number of tests in set: "1
      Test 1: [1]RES_COB_StabilityCheck will run on host: W000WVP0C
      "Scheduler started at:19/02/2019 04:17:32
      -------------------------------------------------------------------------------------------------------
      19/02/2019 04:17:32 Running: [1]RES_COB_StabilityCheck
      19/02/2019 04:17:32 Running test: [1]RES_COB_StabilityCheck, Test id: 558831, Test instance id: 827741
      Test: [1]RES_COB_StabilityCheck, Id: 827741, Execution status: Running
      Test: [1]RES_COB_StabilityCheck, Id: 827741, Execution status: Error, Message: The server process could not be started because the configured identity is incorrect. Check the username and password
      19/02/2019 04:17:37 Test complete: [1]RES_COB_StabilityCheck
      -------------------------------------------------------------------------------------------------------
      Test: [1]RES_COB_StabilityCheck, Status: Error, Message: The server process could not be started because the configured identity is incorrect. Check the username and password \nLink: tds://PERSHING_TECHNOLOGY.PERSHING.qc.pershing.com:8443/qcbin/TestLabModule-000000003649890581?EntityType=IRun&EntityID=1326605\n
      Test set: XAT_StabilityCheck_Copy_1_Copy_1, finished at 19/02/2019 04:17:37
      ================================================
      Run status: Job failed, total tests: 1, succeeded: 0, failures: 0, errors: 1
      Error : Root\ReS\Automation\StartofDay\TESTBED\XAT_StabilityCheck_Copy_1_Copy_1[1]RES_COB_StabilityCheck
      ================================================
      Build step 'Execute Micro Focus functional tests from Micro Focus ALM' changed build result to FAILURE
      Finished: FAILURE

        Attachments

          Activity

          Hide
          sakthi1992 Sakthi Isai Bharathi Samundeeswari added a comment -

          Daniel Gront Hi Daniel, please look into this issue.

           

          Show
          sakthi1992 Sakthi Isai Bharathi Samundeeswari added a comment - Daniel Gront Hi Daniel, please look into this issue.  
          Hide
          aslaakso Anda Sorina Laakso added a comment -

          Please login back to my meeting.

          Show
          aslaakso Anda Sorina Laakso added a comment - Please login back to my meeting.
          Show
          aslaakso Anda Sorina Laakso added a comment - https://stackoverflow.com/questions/19441324/how-to-run-gui-tests-on-a-jenkins-windows-slave-without-remote-desktop-connectio
          Hide
          aslaakso Anda Sorina Laakso added a comment - - edited
          Show
          aslaakso Anda Sorina Laakso added a comment - - edited And this is about the registries setup for autolog on Windows. https://serverfault.com/questions/269832/windows-server-2008-automatic-user-logon-on-power-on/606130#606130  
          Hide
          sakthi1992 Sakthi Isai Bharathi Samundeeswari added a comment -

          Anda Sorina Laakso Tried all possibilities. It is not working. Can you provide working solutions ?

          Show
          sakthi1992 Sakthi Isai Bharathi Samundeeswari added a comment - Anda Sorina Laakso Tried all possibilities. It is not working. Can you provide working solutions ?
          Hide
          aslaakso Anda Sorina Laakso added a comment -

          Did you try also the last 2 links i provided?

          Show
          aslaakso Anda Sorina Laakso added a comment - Did you try also the last 2 links i provided?
          Hide
          sakthi1992 Sakthi Isai Bharathi Samundeeswari added a comment -

          yes Anda Sorina Laakso. Facing same issues

          Show
          sakthi1992 Sakthi Isai Bharathi Samundeeswari added a comment - yes Anda Sorina Laakso . Facing same issues
          Hide
          gront Daniel Gront added a comment -

          Anda Sorina Laakso, Could it be due to UFT's new feature?

          Show
          gront Daniel Gront added a comment - Anda Sorina Laakso , Could it be due to UFT's new feature?
          Hide
          aslaakso Anda Sorina Laakso added a comment -

           
           
          To solve it, set Windows Auto-Logon as I explain here: https://serverfault.com/questions/269832/windows-server-2008-automatic-user-logon-on-power-on/606130#606130

          Then create a startup batch for Jenkins slave (place it in Jenkins directory), which will launch it's console on desktop, and will allow GUI jobs to run:
           java -jar slave.jar -jnlpUrl http://\{Your Jenkins Server}:8080/computer/{Your Jenkins Node}/slave-agent.jnlp
          (slave.jar can be downloaded from http://\{Your Jenkins Server}:8080/jnlpJars/slave.jar)

          EDIT : If you're getting black screenshots (when using Selenium for example), create a batch file that disconnects Remote Desktop, instead of closing the RDP session with the regular X button:
           %windir%\system32\tscon.exe %SESSIONNAME% /dest:console

          Show
          aslaakso Anda Sorina Laakso added a comment -     To solve it, set Windows Auto-Logon as I explain here: https://serverfault.com/questions/269832/windows-server-2008-automatic-user-logon-on-power-on/606130#606130 Then create a startup batch for Jenkins slave (place it in Jenkins directory), which will launch it's console on desktop, and will allow GUI jobs to run:   java -jar slave.jar -jnlpUrl http://\ {Your Jenkins Server}:8080/computer/{Your Jenkins Node}/slave-agent.jnlp (slave.jar can be downloaded from http://\ {Your Jenkins Server}:8080/jnlpJars/slave.jar) EDIT : If you're getting black screenshots (when using Selenium for example), create a batch file that disconnects Remote Desktop, instead of closing the RDP session with the regular X button:   %windir%\system32\tscon.exe %SESSIONNAME% /dest:console
          Hide
          aslaakso Anda Sorina Laakso added a comment -

          From this page https://sumeetkushwah.com/2015/03/24/implementing-ci-using-jenkins-and-uft/

          check the paragraph :

          Unlocking remote slave machine before executions

           

          Show
          aslaakso Anda Sorina Laakso added a comment - From this page https://sumeetkushwah.com/2015/03/24/implementing-ci-using-jenkins-and-uft/ check the paragraph : Unlocking remote slave machine before executions  
          Hide
          sakthi1992 Sakthi Isai Bharathi Samundeeswari added a comment -

          Anda Sorina Laakso Its not working when i logoff the slave and start the scripts from master

           

          Show
          sakthi1992 Sakthi Isai Bharathi Samundeeswari added a comment - Anda Sorina Laakso Its not working when i logoff the slave and start the scripts from master  
          Hide
          aslaakso Anda Sorina Laakso added a comment -

          Then it means you need an RDP session.

          Show
          aslaakso Anda Sorina Laakso added a comment - Then it means you need an RDP session.
          Hide
          sakthi1992 Sakthi Isai Bharathi Samundeeswari added a comment -

          Anda Sorina Laakso So, Jenkins Master and Slave will not work if it is logged off completely ? Daniel Gront

          Show
          sakthi1992 Sakthi Isai Bharathi Samundeeswari added a comment - Anda Sorina Laakso So, Jenkins Master and Slave will not work if it is logged off completely ? Daniel Gront
          Hide
          gront Daniel Gront added a comment -

          Hey Sakthi Isai Bharathi Samundeeswari,

          Since the master needs to communicate with the slave so it could tell it to:

          1. Execute
          2.  Copy relevant files like HpToolLauncher.exce

          It isn't possible to do it while you're not connected to a master as a slave.

          I am closing this issue since it's not a defect but a limitation of Jenkins itself.

          Show
          gront Daniel Gront added a comment - Hey Sakthi Isai Bharathi Samundeeswari , Since the master needs to communicate with the slave so it could tell it to: Execute  Copy relevant files like HpToolLauncher.exce It isn't possible to do it while you're not connected to a master as a slave. I am closing this issue since it's not a defect but a limitation of Jenkins itself.
          Hide
          v_mwalk Mat Walker added a comment -

          Sakti,

          FYI Daniel Gront

          We have this issue with Bamboo (we are migrating to Jenkins) so I confirm it is NOT Jenkins.  To resolve, you need to;

          1. Log on to Test Execution host machine.
          2. Launch UFT
          3. In Tools->Options click ‘Verify Connection’ button
          4. Close UFT
          5. Disconnect from Test Execution host machine (DO NOT LOG OFF!)

          Apparently ALM has had this issue since QC (Quality Centre days).

          Show
          v_mwalk Mat Walker added a comment - Sakti, FYI Daniel Gront We have this issue with Bamboo (we are migrating to Jenkins) so I confirm it is NOT Jenkins.  To resolve, you need to; Log on to Test Execution host machine. Launch UFT In Tools->Options click ‘Verify Connection’ button Close UFT Disconnect from Test Execution host machine (DO NOT LOG OFF!) Apparently ALM has had this issue since QC (Quality Centre days).

            People

            • Assignee:
              aslaakso Anda Sorina Laakso
              Reporter:
              sakthi1992 Sakthi Isai Bharathi Samundeeswari
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: