Trouble getting correct results in Jenkins console
When I am triggering Build from Jenkins which inturn invokes QTP Test (using QTP plugin for Jenkins), although QTP Test passes, the QTP Test in Jenkins console is reported as Failed. It may be because Jenkins is taking results from QTP's inbuilt Test results which is failed and we are using custom result reporting which is passed. Is there any way that we can instruct Jenkins to use our custom report instead of QTP's inbuilt Test Results?
QTP Test is getting failed even if we are using following statement at the end of the test (after checking if no. of failed test cases is zero):
1. The Jenkins plugin is designed to work with QTP's native reporting.
If you have a custom mechanism in place, you can't expect it to understand your setup..
2. I've noticed something similar when I wrote my own OTA tool to execute a test instance or test set.
The API would always return a result of 'Failed' - the same thing you are seeing.
I never figured out why it was happening sorry.
first 2 ways doesn't fit my requirements as it relates only to the display of Test Results. I was trying last one but I was unable to locate the following registry path. Can you try if you are able to locate the path:
HKEY_LOCAL_MACHINE \ SOFTWARE \ Mercury Interactive \ QuickTest Professional \ Logger \ Media \ Report
Tried Registry thing but it doesn't worked. Also tried already what you are suggesting but it doesn't worked as well (maybe because by doing rfDisableAll, we are only restricting display and not the result reporting). I think HP should provide a way to do that in any future releases.