Hi,Lets say i generate QTP scripts and save the scripts in D:QTP1.Now on an other PC if i copy the scripts to say C:QTP2 folder i cannot see the reusable action nor can call any other action. Can some one explain me why this happens and a way in which i can make my scripts independent of location where it is stored.

Showing Answers 1 - 5 of 5 Answers

Whenever you copy the files, function do not get copied. In that case use Call to Copy of action and try to zip the whole folder and then move to another location.

Tell me if this worked for you or not.

  Was this answer useful?  Yes

There is one more alternative way to resolve this problem using relative path.

Setting the relative path as .... before the folder which contains the action.

Eg: Let us assume you saved in D:QTPACTIONSTest1

      You need to give the path as ....ACTIONSTest1 whenever you are calling the action which is reusable.


Let me know if you have any issues.

  Was this answer useful?  Yes

There is one more alternative way to resolve this problem using relative path.

Setting the relative path as ..forwardslash.. forwardslash before the folder which contains the action.

Eg: Let us assume you saved in D:QTPACTIONSTest1

      You need to give the path as ..forwardslash..forwardslash ACTIONSTest1 whenever you are calling the action which is reusable.


Let me know if you have any issues.

Note:Use symbol inplace of forward slash

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions