-
Bug
-
Resolution: Fixed
-
Blocker
-
UFT 12 with Windows 7 64 Bit.
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.
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.