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 are the different sections of the script? In what sequence do these sections run?
What is a correlation?
What is rendezvous graph?
What are different types of vuser logs which can be used while scripting and execution? What is the difference between these logs? When you disable logging?
You want to have each step in your script measured as a transaction in the controller and not shown in the replay log in vugen. How can you accomplish this?
What should be done to view parameter substitution in the execution log?
How do you identify which values need to be correlated in the script? Give an example.
How to find get the Response time of the Online News Feeds (News headlines getting updated in every second with out any user intervention)using Load Runner ?
What are all the reasons to use the server resources monitor?
What is performance testing in loadrunner?
What is the process for developing a vuser script?
What is local configuration file?
how to add 100 for dynamic(correlate value) value
How is vugen script modified after recording?
How can you test the global servers with using loadrunner