Switching your existing load test scripts from LoadRunner to WebLOAD is quite easy and involves two logical steps:
- Record using the WebLOAD proxy recorder. You run the script in LoadRunner, and record it in WebLOAD. Note that WebLOAD proxy recorder records any http/s based protocol. – meaning, you can convert any http, WebServices, Rest, API, WebSockets, etc.
- Correlate dynamic values using the automatic correlation engine, which ensures all the dynamic values are replaced in the new scripts.
Some of our customers prefer converting all existing scripts at once, while others take a gradual approach. Since some applications change more frequently, every time a script needs to be re-record due to change in the application, it is recorded using WebLOAD.
Record Using the IDE Proxy Recorder
Run WebLOAD IDE and press the ‘start recording’ button. The Following window will be opened. In regular WebLOAD recording you choose which browser to open during the recording phase. Choose ‘None’ since you do not want to open any browser but rather record LoadRunner running a script.
WebLOAD default proxy port is 9884. You can control it via ‘Tools->Recording and Script Generation Options’. This port will be used later on during LoadRunner configuration.
Set up LoadRunner VuGen
You need to set LoadRunner VuGen so it will direct the http/s requests through WebLOAD Proxy. This is done in the following way:
(1) Run LoadRunner VuGen
(2) Click on ‘Replay->Runtime Settings’.
(3) In the ‘Internet Protocol->Proxy’ configure the following:
- Check the ‘Use custom proxy’ radio button.
- Check the ‘Use proxy server’ option.
- In the ‘Http proxy’ text box write the machine address and the proxy where you are running WebLOAD Proxy recorder.
- Check the ‘Use same proxy server for all protocols’
- Do NOT check the ‘Do not use a proxy server for local (intranet) addresses’
Record LoadRunner Script in WebLOAD
Run the script in VuGen via ‘Replay->Run’ or using the F5. At this point, the the script will run in LoadRunner and WebLOAD proxy will record it.
It is recommended to execute the script in LoadRunner only once, because WebLOAD will run it in many rounds during the load testing. Since LoadRunner can execute it in many rounds in VuGen, make sure that it will run it only once. You can do that from the same ‘Replay->Runtime Settings’ under ‘General->Run Logic’ – ‘Number of iterations’ should be set to 1.
Correlate and fine tune the script
Next you should correlate the WebLOAD script created to eliminate the dynamic values. You can do that via the correlation engine in WebLOAD IDE.
Later on you might want to to add verifications, parameterization and adapt the script to your exact need.
That’s it. You’re done!