This is the chain of question#: 15434What conditions we go for Reusable Scripts and how we create and call that into another script? Please provide sample script

Showing Answers 1 - 10 of 10 Answers

veeravsk

  • Jul 21st, 2006
 

When we are going to call the action to another actiong we are going to set the calling action as reusable. By setting this then only you are going reuse some other action. otherwise you can not action that.

Ex:- Login

          We can record the script for one action and set in the action Properties as Reusable. When ever you need Login script you can call that Reusable Action.

  Was this answer useful?  Yes

ganesh

  • Jul 22nd, 2006
 

Hi veeravsk

here i would like to stress a point

i.e if your calling action uses the object repository type as per action mode , then it can call only the action which is using the object repository type as "per action mode", it cant call the action which is using the "shared object repository"

and also if your calling action uses the object repository type as "Shared object repository" then it can call the action having the repository type as "Shared object repository" or "Per action mode"

Correct me i am wrong with this statement

Thanks

Ganesh

  Was this answer useful?  Yes

Rajiv

  • Jul 29th, 2006
 

You are absolutely right Ganesh..I have checked that..

  Was this answer useful?  Yes

chanakya

  • Jul 30th, 2006
 

I dont think anyone answered the question right...

The question is asking about "Reusable Scripts" not Reusable Actions..

  Was this answer useful?  Yes

Rajiv

  • Jul 31st, 2006
 

I think we can make the script reusable by making the action in the script reusable.For that reason everyone stress on how to use reusable action not usable scripts...

  Was this answer useful?  Yes

savitha

  • Aug 3rd, 2006
 

Am very new to  testing.I dont even know how to write scripts. Can anybody provide me somedocuments ,which will help me in understanding- y do we go scripts, how to write... Some small sample example can help me out.

Thank You!

Regards,

Savitha C G

  Was this answer useful?  Yes

s.lakshmipriya

  • Feb 11th, 2007
 

hai! i am not sure. but making Call script statement,we reuse the script. first provide one object properties script.captures the object with the help of hand symbol. one script created.and then make another gui script. In object properties script, give the Call script statement with the name of the script and playback.regards

  Was this answer useful?  Yes

s.lakshmipriya

  • Feb 11th, 2007
 

hai! i am not sure.by making callscript statement , we will reuse the scripts. first we have to create 2 scripts. one script captures object properties for example. another one is using mousemovement for eg mspaint. In the first script,it automatically creates statements. in which section we want, we type the callscript statement with name of the 2nd script. we reuse the scripts.regards

  Was this answer useful?  Yes

RamuGoud@919866178926

  • Apr 14th, 2007
 

I think, it is called from Call to copy of action and call to existing action

  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