Help regarding QC API
Hi All !
I need some help regarding the QC API.
We are trying to know thru the QC API if a test is being run independently or as part of test set using the Run All button in QC.
The reason we need this info is there are two scripts that can be executed in sucession or independently.
If they are run together then Script B picks up data from scripts A's data file which is in a temporary folder on the test machine that was created as a result of script A run , script B then picks up data from this temp folder. If script B is executed independently then user has to explicitly enter data in Script B data file and execute.
Thanks in advance !
Re: Help regarding QC API
You create a Windows environment (not QTP) variable at the end of script A and then in Script B you can check if the Environment from A exists or not. If it exists then use the file from A else pick the default file for B. And make sure you delete the environment variable in Script B after you are done checking it's existence.