Posts

LoadRunner Tool

Image
  Selecting the Protocol in Script Editor:  Method 1: Using web_custom_request function and a .json file. Create a Web - HTTP/HTML script and insert web_custom_request function. Enter the Step Name, Method(POST), URL of your REST API, Record Mode(HTTP), Encoding Type(application/json). Create a ‘sample.json’ file under Extra Files. Place the JSON message in the sample.json file you created in previous step. In web_custom_request part, remove the line “Body” and add a new line BodyFileLocation. And the line should look like this after the change "BodyFileLocation=sample.json". Some Sites requires user authentication to access the content. In that case you may have to use user credentials along with your request. Use  web_set_user  to pass the user credentials. If you need to pass any headers into the script, you can do so by using  web_add_header  function. After following above steps, you should be able to run your script successfully. This method can be used when you have a