Identifying Test Execution - QC or QTP
Is there a property or some other way to figure out whether during runtime of a test whether this test was executed directly from QTP or was it executed out of Quality Center?
Re: Identifying Test Execution - QC or QTP
Yes there is in few cases.
If it was executed from QC then the QCUtil.CurrentRun object will have an object else it will be Nothing or Empty. Now if you run from QTP connected to QC, you have 2 options. 1st is to select a temporary folder in result which can be differentiated using this technique and 2nd is to store result in test set which you can't differentiate if the test was run from QC or not.