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
What is the loadrunner start-transaction and its syntax?
What is the basic credentials should be provided while recording SAP-GUI?
While the script is running we find some values that may need to be correlated? Is it possible to do manual correlation for those values?
What are the different components of loadrunner?
What is the use lr_abort function?
What is the vuser in the scenario?
How many section database vuser script have?
What is parameterizion?
How are concurrent users differing from simultaneous users?
What is protocol function?
What is local configuration file?
What is running virtual user graph?
How will you divide your script into multiple actions? Why?
While scripting you created correlation rules for automatic correlation. If you want to share the correlation rules with your team member working on the same application so that he/she can use the same on his workstation, how will you do that?
How vugen create a vuser script?