Answer Posted / sksy
Use this piece of code
Action()
{
char command[1024]; // declare a cahar val
sprintf(command, "C:\testshilpa\batfile.bat");// mention the path of the file with full path details
system(command); // it will execute the command
return 0;
}
Note: batfile may contains command for batch job.You can try with "ping localhost -n 10"
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
When you initialize the vuser what happen?
What is the purpose of an extended log?
What are the different types goals in goal-oriented scenario?
What is vugen recording and scripting?
What is report viewer?
Can anyone please mention what are the common errors that we can see while replaying the Vugen script and also while running the controller scneraio and How to handle them with a few examples. This will be greatly helpful.
How can you set the number of vusers in loadrunner?
Hi all, I am having an interview on LoadRunner (SAP Web Protocol). I am wondering if somebody can help me with some interview questions at a 2 yr Scriptor level. Thanks and all answers are much appreciated.
What are the challenges that you will face to script the step “select all” and then “delete” for any mail account?
What is the benefit of running a vuser script as a thread?
What is gui vuser and on which platform it will run?
How do you enable text and image checks in vugen?
What is remote command launcher?
What should be done to view parameter substitution in the execution log?
How does loadrunner execute a performance scenario?