I am using QTP11 and my automation test scripts are saving in QC.
the folder structure: "Subject\AutomationTests\"
I need to get the path of my test scripts then only i can use relative path to load all library files and Object repositories.
Can you please help me how to get QC Test Script path.
If i am using the code like:
OutPut: C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\TD_80\dd8a3e55\ Test\example_10568\10568\10568
Please advice me to get the QC path like:
Please advice me
You will need to look at using the QCUtil object in QTP. Through that you can access information about the current test being executed. Based on that, you can additional use the full QC Open Test Architecture API to find the folder path in QC to the current test.
The API documentation is part of the QC Documentation Library.