I am working on web services using Web(HTTP/HTML)
If i run 850 API's pointing on to one server and get the response and again 850API's pointing on to another server and get the response
So how can i match these both responses?(identical or non identical)
For this script and settings should i use?
Re: Websercises problem
Use lr_output_message() to write a formatted string to the output log area of the controller consisting of "API_TEST",[API CALL],[RESPONSE]. At the end of the test go into output.mdb in your results set and query for the output messages and dump them to an excel spreadsheet. Sort it by API call.
Next, run another test against the second instance. Similarly dump the results to the output.mdb, query the results and then copy into another column in excel. Compare the two columns
Run query against server 1, store result. Run query against server 2 (from within the same script for the same API call) and store the result. Using the string comparison APIs of the language used for your virtual user, compare the output from server 1 to the output from server 2. Based upon whether results are identical or non-identical create a data point with the API name and label it as a 0 value for pass or a 1 value for fail. Report on your data points at the end of the test.
Use a single virtual user to run all 850APIs. Write the output of each to a file which contains the API Call and the result (see fopen() and related apis). Save the output file. Run the same virtual user with the second server involved. Assuming the Files are identically formatted and the APIs are executed in the same sequence, then use WINDIFF (Ships with LoadRunner) to compare the two files for differences between the two. You can use WINDIFF to mark only differences between the two files and the output the differences to a new file.
Replace ineffective offshore contracts, LoadRunnerByTheHour
. Starting @ $19.95/hr USD.
Put us to the test, skilled expertise is less expensive than you might imagine.
Twitter: @LoadRunnerBTH @PerfBytes