Thursday, March 26, 2015

Web Services - This Document explains a simple way to create Performance testing script with Web Services


We have received a request to work on Web Services for Interfaces Project

To work with Web services it’s always good to have WSDL File or URL from Development team with expected SOAP requests to be executed

The following is the URL and expected results shared by dev team




Recording:

Open Web Services
Click on ADD Web Service Call






 Below window will open, Under Service open drop down and select Import Services






If the Import is successful then the all SOAP requests will get added as shown below
Input arguments will contain the Input paramater Names and we should enter the values for those names
For below Request the input argument is Account number








See below we have enterd account number value as 1234 (These values we can get from Dev team, they can be one or more, we can parametize them in loadrunner as we do for normal Web appliactions)
Once the filling Inputs is done, Clik on OK button to generate the Web Service Script








Below you can see the Auto generated Web Services Script and the Account number we have provided above
First time always run your script by selecting data written by server log to verify the request results are matching with SOAP resposne or we can sit with dev team and cross check the result





LR Resposne:



SOAP Resposne:



Friday, March 13, 2015

HTTP Status Codes

Code Description
200 OK
201 Created
202 Accepted
203 Non-Authoritative Information
204 No Content
205 Reset Content
206 Partial Content
300 Multiple Choices
301 Moved Permanently
302 Found
303 See Other
304 Not Modified
305 Use Proxy
307 Temporary Redirect
400 Bad Request
401 Unauthorized
402 Payment Required
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable
407 Proxy Authentication Required
408 Request Timeout
409 Conflict
410 Gone
411 Length Required
412 Precondition Failed
413 Request Entity Too Large
414 Request - URI Too Large
415 Unsupported Media Type
416 Requested range not satisfiable
417 Expectation Failed
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
406 Not Acceptable
407 Proxy Authentication Required
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version not supported