User Tag List

Results 1 to 2 of 2
  1. #1
    New Member
    Join Date
    Mar 2013
    Post Thanks / Like
    0 Post(s)
    0 Thread(s)

    Does web_service_call has any attribute that holds request which is sent to server

    Can any one let me know if web_service_call has any attribute that contains the service request(XML) that is being sent to the service.

    For example "response param" attribute of a web_service_call holds the response of the particular service request.

    Actually my requirement is to write the requests(xml) and corresponding responses(xml) to the log file. I am able to write the response to the file and I am facing difficulty with the request.

    I can build the request in a string and write it to a log, but the problem here is my xml has a huge data i.e. around 400 to 500 of lines and I need to do the same for around 30 services. So I am looking for an alternate way.

    Please suggest any other alternate ways to capture the request to write it to a log file.

    Thanks in advance.

  2. #2
    Join Date
    Aug 2001
    Post Thanks / Like
    0 Post(s)
    1 Thread(s)
    This question appears to be an almost duplicate of Can I capture a request for a web service call and write it to a log using loadrunner

    Posting duplicates is not recommended.

    As noted in this forum and others....you may write any information you want to a log, provided it is a string. There are many logging functions which can be found in the lrun.h header file in the <loadrunner home>\include subdirectory. Depending upon which log function you choose this will direct how and where the information is logged/collected.

    Decouple your XML from your request. Store the information in a variable. Use that variable to populate both your request and the output to a log. If you are not careful you will turn your entire load generator into a bottleneck for your test as you have tens/hundreds/thousands of users clamoring to write information to the disk with the majority of the threads/users having to wait until the current write operation is completed. This is why it is recommend that absolutely minimal logging be involved in your test and also why the parameter files are loaded into RAM and accessed in RAM instead of being accessed from disk for the users during the test.

    With the requirement should be noted the business or technical reason for the requirement. What is this rationale? This appears to be a functional requirement perhaps included by someone who does not understand or who has never engaged in performance testing: Having people who do not understand what you do or how you do it directing you in what you do is a sure path to failure. Is this requirement tied to ensuring that the XML sent is in proper form or content? In performance testing we should have already validated that the site/application/interface is functionally correct, for if it cannot work for one then it will never scale to many.

    This answer leverages several foundation skills: Programming in the language of your testing tool and Performance Test Design (independent of tool).


    At the end of the test pull the web server logs for the application server/web server instances which were the target for your web services calls. Each and every request should be logged in the web server log. So, in this respect it becomes self documenting for your test. All you need to do is pull the logs in between the start and stop times of the test.
    Last edited by jpulley3; 04-18-2013 at 06:36 AM.
    James Pulley

    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 01:06 AM.

Copyright BetaSoft Inc.