Micro Focus QTP (UFT) Forums
QC Issue : Qtp Scripts relative path - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: QC Issue : Qtp Scripts relative path (/Thread-QC-Issue-Qtp-Scripts-relative-path)



QC Issue : Qtp Scripts relative path - chnareshkumar - 05-16-2011

Hi ,

In our QTP(Ver 10) scripts we used relative paths for all scripts(Object repositories, Library's and others). When I execute the scripts from QC it is failing. but able to execute without any issues, when executed locally.

Seems there is some problem with the Path. How can I resolve the issues.

Thanks in Advance,
Naresh


RE: QC Issue : Qtp Scripts relative path - Jay - 05-16-2011

set QC path in tools-->folder option..


RE: QC Issue : Qtp Scripts relative path - chnareshkumar - 05-16-2011

Hi Jay,
Thanks for your reply.
I tried with your solution but it is saying that when we execute the script from QC it will search in the QC folders not local folders. Sure my scripts will fail. Any solution for this?

All my scripts, repositories and libraries are in Local machine. QC in different server.

I have to finish it ASAP. Please help me on this.

Thanks & Regards,
Naresh


RE: QC Issue : Qtp Scripts relative path - Jay - 05-17-2011

you can set two path in folder option. if you want QTP to find path first from QC then provide QC path first and then local system path. if you are connected with QC then QTP will always takes files from QC and if you are not connected then it takes from file system.


RE: QC Issue : Qtp Scripts relative path - chnareshkumar - 05-17-2011

Yes Jay, What you are saying is correct. Any solution for my problem?