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

UFT automated test fails with error message - QTP Not Launched

      Background : I have configured the Jenkins slave for running the UFT 12 tests on a desktop machine(Windows 7 64 Bit). We are running the tests from file system. I have configured the remote agent in the machine already. When we run the tests by manually opening the UFT and clicking on Run button, it passes.

      Issue : When we run the same test case using Jenkins, test case executes perfectly fine, UFT run result viewer displays, Passed all test cases, Jenkins also waits for the execution to be completed. Once the execution is completed, Jenkins results shows "QTP not Launched" error and the Jenkins job status will be failed.

      Due to this issue we are not able to see any results in the Jenkins dashboard.

          [JENKINS-23576] UFT automated test fails with error message - QTP Not Launched

          HI, I have downloaded and debugged the code and have found the issue. Issue is in the function "HandleOutputArguments". There is a loop running on QTPParamDefs.count, and the loop variable starts from 0, but QTPParamDefs array's lower bound is 1 instead of zero. if we change the loop counter to start from 1 instead of Zero, the code works perfectly fine. Because of this issue catch is called and "QTP Not launched error" is generated by the code. I tried running the UFT scripts with or without parameters but Jenkins job is always failing inside this funtion, if we are running the scripts from File system. Please resolve this issue as its blocking our complete implementation.

          Sumeet Kushwah added a comment - HI, I have downloaded and debugged the code and have found the issue. Issue is in the function "HandleOutputArguments". There is a loop running on QTPParamDefs.count, and the loop variable starts from 0, but QTPParamDefs array's lower bound is 1 instead of zero. if we change the loop counter to start from 1 instead of Zero, the code works perfectly fine. Because of this issue catch is called and "QTP Not launched error" is generated by the code. I tried running the UFT scripts with or without parameters but Jenkins job is always failing inside this funtion, if we are running the scripts from File system. Please resolve this issue as its blocking our complete implementation.

          Amit Bezalel added a comment -

          will be fixed in next release (3.0.6)

          Amit Bezalel added a comment - will be fixed in next release (3.0.6)

          Amit Bezalel added a comment -

          fixed in 3.0.6

          Amit Bezalel added a comment - fixed in 3.0.6

            amitbe Amit Bezalel
            sumeet_kushwah Sumeet Kushwah
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: