Tips and Q&A

If you have questions please post them here. I’ll try to give answers to the best of my ablitiy!


12 thoughts on “Tips and Q&A

  1. Hi,

    I am working on performance testing of an application built on flex.

    I am using following protocol for the scripting:
    Flex, Web(HTTP/HTML).

    In my script I am getting a function “flex_call_Request” where the data comes in binary format. I contacted the developemnt team to provide me the jar files , so that I can regenerate the script and convert the data from binary to XML format. But they informed, they don’t have any jar files associated.

    Can you please suggest any alternate method to convert data from binary to XML.

  2. I’m not exactly sure what you want to do here.. If you could provide an example with some code it will make it easier to understand.

    The conversion from BIN to XML is also not a generic thing, one needs to know how the BIN data is constructed to be able to produce XML from it, if it is even possible.

  3. Hi,

    I’m facing an issue with one of my scripts recorded using web(http/html).

    The error message thrown at the below function is:
    Error -26631: HTTP Status-Code=400 (Bad Request) for “ SCRIPT”;”


    I tried to access the URL manually and it works. I see the expected page in the runtime view too. I checked the source of the page and found something like this:
    <iframe id="workaroundFrame" src="BLOCKED SCRIPT'<html></html>';" scrolling="no" frameborder="0"

    Do you think this could be the reason for the error? Pls suggest.

    • My first impression from this is that the page returned actually IS returned with the 400 status code. You’d have to replay the script in vugen with debug (all options) to see what’s really going on.
      Assuming the 400 response is there, you can turn off the error-checking for that specific URL call, and manually check the result-codes to catch 500 series errors.

      Other options:

      • The call should have some additional custom headers
      • have a specific accept type and not just */* (this I’ve seen before)
      • Capture the traffic using WireShark (since you use http mode) and look at the raw-data with the browser, and replicate that as close as possible (headers as well)
  4. I’m facing an issue with one of my scripts recorded using web(http/html).

    "Name=loginUser", "Value=liyanyun", ENDITEM,
    "Name=loginPass", "Value=a856321ed75435babf75aabb4662d278", ENDITEM,
    "Name=validateCode", "Value=unseat", ENDITEM,
    web_set_user("\\liyanyun", "liyanyun", "");
    "Url=/static/images/logo/logoBg.png", "Referer=", ENDITEM,
    "Url=/static/images/ico/ico_user.png", "Referer=", ENDITEM,
    "Url=/static/images/logo/logoIco.jpg", "Referer=", ENDITEM,
    "Url=/static/images/bg/bg_nav.gif", "Referer=", ENDITEM,
    "Url=initCourseware?_=1397711146311", ENDITEM,
    "Url=loadTopic/1?_=1397711146312", ENDITEM,
    "Url=/static/css/images/loading.gif", "Referer=", ENDITEM,
    "Url=/static/images/ico/icoBasic.png", "Referer=", ENDITEM,

    Replay Log

    Action.c(23): Notify: Transaction "login" started.
    Action.c(25): web_submit_data("login") was successful, 1 body bytes, 265 header bytes, 10 chunking overhead bytes [MsgId: MMSG-26385]
    Action.c(38): web_set_user was successful [MsgId: MMSG-26392]
    Action.c(39): web_set_sockets_option was successful [MsgId: MMSG-26392]
    Action.c(41): Downloading resource "" (specified by argument number 21) [MsgId: MMSG-26577]
    Action.c(41): Downloading resource "" (specified by argument number 23) [MsgId: MMSG-26577]
    Action.c(41): Error -26630: HTTP Status-Code=401 (Unauthorized) for "" [MsgId: MERR-26630]
    Action.c(41): Warning -26627: HTTP Status-Code=404 (Not Found) for "" [MsgId: MWAR-26627]
    Action.c(41): Warning -26627: HTTP Status-Code=404 (Not Found) for "" [MsgId: MWAR-26627]
    Action.c(41): Warning -26200: At least one of the resources specified by EXTRARES has not been downloaded due to the above error(s) [MsgId: MWAR-26200]
    Action.c(41): web_url("courseware") highest severity level was "ERROR", 2811 body bytes, 632 header bytes, 34 chunking overhead bytes [MsgId: MMSG-26387]
    Action.c(41): Notify: Transaction "login" ended with "Fail" status (Duration: 0.1771).

    loginUser = liyanyun and loginPass=liyanyun

    why 401?

    • I would need to see the complete trace of the traffic before I can say anything .. Could you send the whole project (this part) as a zip, complete with full debug logs on?

  5. Hello
    I’m vince.
    I want to use AES (Decryption) in loadrunner.
    Actually I can find many C sources on the internet but I’m not certain it’ll work correctly.
    In addtion, I don’t know exaclty how to apply it in loadrunner environment..

    Our service is providing customers with encrypted XML Body for the HTTP Request.
    So I need to decrypt the XML BODY in HTTP RESPONSE.

    If you have it or the way to solve this problem, Please let me know…
    I’m looking forward to your answer ASAP.

    • I’m planning on implementing a DLL library with a lot of ciphers, but time-constraints have prevented me from doing this. I’m sure you can find an AES implementation for LR if you google around. However, it may involve some customization to fit the LR way of using variables/strings.

  6. Hi,
    Can you please explain briefly how to setup an lg for loadrunner. Tell it from scratch.
    Means what are the ports to be enabled, wat are things we need to do as pre requisite..
    Everything totally and completely..

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s