loadrunner has two file
1: sed.exe (in loadrunner bin directory)
2: web_to_java.sed (in loadrunner dat directory)
with the help of above files we can convert a WEB(http/html) script
to java script
STEPS:
1:Record your script using WEB(HTML/HTTP) protocol.
2:Add Loadrunner Bin directory to your PATH enviroment variable.
3:Copy a part of your script to a text file (for example script.txt).
4:Go to loadrunner DAT directory.
5: run the following command
sed -f web_to_java.sed "path of your script txt file" > "Destination
java file path"
ex:
sed -f web_to_java.sed script.txt >java.txt
Points to remember
1: Java scrpit use "<>" parameter braces and httpl/html uses "{ }".
Above command will not replace this. so manually we need to change
this. Above command will put following warning before each line that
uses parametrization
substitute {} with proper parameter braces on the parameter".
can we do java to web user also?
ReplyDelete