How to call an external file in winrunner.

Questions by usa_77

Showing Answers 1 - 4 of 4 Answers

Muralidharan

  • Dec 9th, 2005
 

 We can call winrunner using the function call() in that the gui mapfile should  be present in the function

  Was this answer useful?  Yes

In WR, we can call one test script from another script. If this chain continues we will call "Batch Testing".

WR call one test script from another test, by using "call" function. We use this syntax, when both the calling test and called test both are in the same parent folder.

Ex: Say i am storing all my WR Scripts in E:\WR Samples.

Suppose i wrote script for Test1 and want to call Test2. The syntax here is :

call Test2();

If the Test2 is in some other folder like c:\Program files\mercury interactive\tmp this, then the syntax for calling this test is :

call "c:\\Program files\\mercury interactive\\tmp\\Test2"();

  Was this answer useful?  Yes

srkulagatte

  • Jan 13th, 2006
 

Hi Uday,

Here external file means like note pads, word docs. Do you have an aswer for this, coz even i was sked the same question in an interview.

  Was this answer useful?  Yes

gbal

  • Jan 24th, 2006
 

Use invoke application function as follows..

invoke_application ( file, command_option, working_dir, show );

For more details place your cursor on this function in wr and press F1

  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