Can any one give me sample script for Compile Module? I'm using winrunner in standalone machine and using mercury reservation application for recording. So please give me sample script related to Reservation application. It's very urgent.Thanks in advance.Mayank

Showing Answers 1 - 2 of 2 Answers

raghavendra

  • Jan 22nd, 2007
 

hi,

Compile module is a provision where user can write programs.

ex: Goto File-> Testproperties->testtype->compilemodule

write the script as:

add(x,y)   // suppose the path of the file is C:/abc/a1      //

z = x+y

return z

Now go to main module which isthe default module of WR.

type as:

call "c:abca1"();

c = Add(4+5)

Report_msg(c);   // or pause(c);  //

try out this how u can create user write programs while automation process

  Was this answer useful?  Yes

Swapnil

  • May 1st, 2007
 

Hi ,

Compile module cannot be called by Call function
It is only be called by load()

like load("C://abc//a1",0);

add(4,5);

unload("C://abc//a1");

  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.