Loadrunner - web_custom​_request

Subject: Substituting Body value by a parameter fails the web_custom_request function.
Details: The parameter p_Search_Queries contains the exact same value as the value of the Body contained in line 75, 76, 77. But Substituting Body value by the parameter line 79 fails the web_custom_request function.
    web_custom_request("GetSearchResult", 
        "URL=http://{p_URL}/Search/Search.aspx/GetSearchResult", 
        "Method=POST", 
        "TargetFrame=", 
        "Resource=0", 
        "RecContentType=application/json", 
        "Referer=http://{p_URL}/Search/Search.aspx", 
        "Snapshot=t5.inf", 
        "Mode=HTML", 
        "EncType=application/json; charset=UTF-8", 
        "Body={\"searchCriteriaForm\":{\"SecurityType\":\"ALL\",\​"Cusip\":\"\",\"State\":\"\",\"MaturityDateBegin\"​:\"\",\"MaturityDateEnd\":\"\",\"IncludeMaturedSec​urities\":false,\"ClosingDateBegin\":\"\",\"Closin​gDateEnd\":\"\",\"PostingDateBegin\":\"\",\"Postin​gDateEnd\":\"\",\"DatedDateBegin\":\"\",\"DatedDat​eEnd\":\"\",\"InterestRateBegin\":\"\",\"InterestR​ateEnd\":\"\",\"Purpose\":\"\",\"SecuredBy\":\"\",​\"RateType\":\"\",\"Insured\":\"\",\"Taxable\":\"\​",\"Callable\":\"\",\"CallDateBegin\":\"\",\""
        "CallDateEnd\":\"\",\"CallPriceBegin\":\"\",\"Call​PriceEnd\":\"\",\"CusipGroupId\":\"\",\"FitchOpera​tor\":\"\",\"FitchRatingCode\":\"\",\"SNPOperator\​":\"\",\"SNPRatingCode\":\"\",\"KrollOperator\":\"​\",\"KrollRatingCode\":\"\",\"IssuerName\":\"\",\"​IssueDescription\":\"\",\"PMDisclosure\":false,\"A​RDisclosure\":false,\"ShortDisclosure\":false,\"Ev​entDisclosures\":[],\"TradeDateBegin\":\"\",\"Trad​eDateEnd\":\"\",\"TradePriceBegin\":\"\",\"TradePr​iceEnd\":\"\",\"TradeYieldBegin\":\"\",\""
        "TradeYieldEnd\":\"\",\"TradeAmountBegin\":\"\",\"​TradeAmountEnd\":\"\",\"TradeType\":\"\",\"TradeSp​ecialCondition\":\"\",\"FinancialDisclosures\":[],​\"ABSDisclosures\":false}}", 
//        lr_eval_string("{p_Search_Queries}"),
//        "Body={p_Search_Queries}",
        LAST);

Subject: Substituting Body value by a parameter fails the web_custom_request function.
Details: The parameter p_Search_Queries contains the exact same value as the value of the Body contained in line 75, 76, 77. But Substituting Body value by the parameter line 79 fails the web_custom_request function.
    web_custom_request("GetSearchResult", 
        "URL=http://{p_URL}/Search/Search.aspx/GetSearchResult", 
        "Method=POST", 
        "TargetFrame=", 
        "Resource=0", 
        "RecContentType=application/json", 
        "Referer=http://{p_URL}/Search/Search.aspx", 
        "Snapshot=t5.inf", 
        "Mode=HTML", 
        "EncType=application/json; charset=UTF-8", 
        "Body={\"searchCriteriaForm\":{\"SecurityType\":\"ALL\",\​"Cusip\":\"\",\"State\":\"\",\"MaturityDateBegin\"​:\"\",\"MaturityDateEnd\":\"\",\"IncludeMaturedSec​urities\":false,\"ClosingDateBegin\":\"\",\"Closin​gDateEnd\":\"\",\"PostingDateBegin\":\"\",\"Postin​gDateEnd\":\"\",\"DatedDateBegin\":\"\",\"DatedDat​eEnd\":\"\",\"InterestRateBegin\":\"\",\"InterestR​ateEnd\":\"\",\"Purpose\":\"\",\"SecuredBy\":\"\",​\"RateType\":\"\",\"Insured\":\"\",\"Taxable\":\"\​",\"Callable\":\"\",\"CallDateBegin\":\"\",\""
        "CallDateEnd\":\"\",\"CallPriceBegin\":\"\",\"Call​PriceEnd\":\"\",\"CusipGroupId\":\"\",\"FitchOpera​tor\":\"\",\"FitchRatingCode\":\"\",\"SNPOperator\​":\"\",\"SNPRatingCode\":\"\",\"KrollOperator\":\"​\",\"KrollRatingCode\":\"\",\"IssuerName\":\"\",\"​IssueDescription\":\"\",\"PMDisclosure\":false,\"A​RDisclosure\":false,\"ShortDisclosure\":false,\"Ev​entDisclosures\":[],\"TradeDateBegin\":\"\",\"Trad​eDateEnd\":\"\",\"TradePriceBegin\":\"\",\"TradePr​iceEnd\":\"\",\"TradeYieldBegin\":\"\",\""
        "TradeYieldEnd\":\"\",\"TradeAmountBegin\":\"\",\"​TradeAmountEnd\":\"\",\"TradeType\":\"\",\"TradeSp​ecialCondition\":\"\",\"FinancialDisclosures\":[],​\"ABSDisclosures\":false}}", 
//        lr_eval_string("{p_Search_Queries}"),
//        "Body={p_Search_Queries}",
        LAST);

Similar Messages

  • While replaying ajax truclient scipt in loadrunner i am getting "this connection is untrust" error in the 40th step. I tried by deleting cert8 file but no use

    while replaying ajax truclient script in loadrunner 11.0, getting error "this connection is untrust" page in 40th step. Add this exeception permanently check box is disable when i got the exeception certificate file. i tried with by deleting cert8.db file in loadrunner ajax truclient profile but still same result.
    can any one guide me to resolve this issue...

    Is that content loaded in an iframe?
    You can check that via the right-click context menu to see if there is a "This Frame" item.<br />
    If that is the case then try top open the frame in a new tab or otherwise check the Technical Details of the error message.

  • Errors when using LoadRunner with the Portal (eventQueue)

    Hi,
    I'm trying to script up a basic load test of the SAP Portal using Load Runner HTTP/HTML protocol. I've dome some correlation but I'm finding the web_submit_data functions seem to be passsing garbage for the eventQueue (see below).
    "Name=eventQueue", "Value=BUTTONCLICKîx80u201AIdîx80u201AaaabLDOL.VcRfwIFrameView.PrevButtonTopîx80u201ACurrentFocusIdîx80u201AaaabLDOL.VcRfwIFrameView.PrevButtonTop", ENDITEM,
    My Question is what kind of data is passed in the eventQueue. I'm trying to navigate through payslips and expecting a pdf document to appear within the portal.
    Let me know if you need anymore info.
    Thanks
    Gavin

    Although this might be a late reply, im sure a lot of people are going to view it as a useful resource
    Yes, this means that you about to test an SAP application written in Webdynpro, which means that there are some content that you need to convert in your code
    the HP loadrunner script will look something like this
    web_submit_data("sap-ext-sid_2",
      "Action=http://www.example.com:8000/sap/bc/webdynpro/SAP/ERC_A_WORKCENTER/;sap-ext-sid=",
      "Method=POST",
      "TargetFrame=",
      "RecContentType=text/html",
      "Referer=http://www.example.com:8000/sap/bc/webdynpro/SAP/ERC_A_WORKCENTER/;sap-ext-sid=",
      "Snapshot=t18.inf",
      "Mode=HTML",
      ITEMDATA,
      "Name=SAPEVENTQUEUE", "Value=Custom_ClientInfosE002IdE004WD01E005WindowOpenerExistsE004falseE005ClientURLE004http003A002F002Fwww.example.com003A8000002Fsap002Fbc002Fwebdynpro002FSAP002FERC_A_WORKCENTER002F003Bsap-ext-sid003DzuUt57Mx_3JozG7pOff002AEgU_0j6OHCaCQurUN1Pimp1QE003E002ClientActionE004enqueueE005ResponseDataE004deltaE003E002E003E001TimeTrigger_TriggerE002IdE004WDE4E003E002ResponseDataE004deltaE005ClientActionE004submitE003E002E003", ENDITEM,
      "Name=sap-charset", "Value=utf-8", ENDITEM,
      "Name=_client_url_", "Value=", ENDITEM,
      LAST);
    when loadrunner executes the script, this kind of data transferred to SAP is not recognized, so you will need to plug in the below code and run the script and before that block of loadrunner recorded script, you will need to pass the sapqueueevent as a string
    Use the below code
    // This function replaces unreserved characters in a string with their encoded values.
    // Encoding is in the style of SAP Web Dynpro. E.g. "abd*def" becomes "abc~002Adef".
    // Reserved/unreserved characters are according to RFC3986 (http://tools.ietf.org/html/rfc3986)
    // This function returns a pointer to the start of the encoded string (buf).
    // Note that buf must be big enough to hold original string plus all converted entities.
    char* dynpro_encode(char* plain_string, char* buf) {
      int len = strlen(plain_string);
      int i,j;
      char hex_value[3];
      if (plain_string == NULL) {
        lr_error_message("Input string is empty.");
        return NULL;
      for (i=0, j=0; i<len; i++) {
        // Check if character is in list of allowed characters.
        // A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
        // a b c d e f g h i j k l m n o p q r s t u v w x y z
        // 0 1 2 3 4 5 6 7 8 9 - _ . ~
        if ( (plain_string<i> >= 'A' && plain_string<i> <= 'Z') ||
             (plain_string<i> >= 'a' && plain_string<i> <= 'z') ||
             (plain_string<i> >= '0' && plain_string<i> <= '9') ||
             (plain_string<i> == '-') ||
             (plain_string<i> == '_') ||
             (plain_string<i> == '.') ||
             (plain_string<i> == '~') ) {
          buf[j++] = plain_string<i>;
        } else if ( (plain_string<i> < 32 ) || (plain_string<i> > 126) ) {
          lr_error_message("Input string contains non-printable or non-ASCII character %c at position: %d", plain_string<i>, i);
          return NULL;
        } else {
          // The unicode value for use in url encoding is the same as the hex value for the ASCII character
          itoa(plain_string<i>, hex_value, 16);
          buf[j++] = '~';
          buf[j++] = '0';
          buf[j++] = '0';
          buf[j++] = toupper(hex_value[0]);
          buf[j++] = toupper(hex_value[1]);
      buf[j] = NULL; // terminate the string
      return buf;
    Hope that helps
    Thanks

  • Using LoadRunner for WebDynpro for Java Tests

    Hi,
    We're develoing WD4J applications and want to test those applications with LoadRunner.
    I can create Vuser Scripts and Run them with multiple users via Loadrunner Controller successfully but here are my questions;
    - I've tested a PHP application which submits data to an email address by using Web (HTTP/HTML) Script Protocol and when I run this Script via Controller for 10 Vusers, 10 emails are sent to the recipient.
    - I've created a WD4J application which does the same but when I run this application for 10 Vusers it doesn't send any email. I've tried this with "Web (HTTP/HTML)" and "SAP - Web" Script Protocol but no sccess. Script replay doesn't gives me error.
    My Question is Why? What I've to set during Script Creation?
    Also, is this the right place to aask this question or where else I can ask?
    Regards

    Hi Huseyin,
    I guess that your script does not handle the user dependent information of WebDynpro correctly. 
    Assuming you did not already do that, here is what I would do:
    1) Check that sending an email through the application works manually. 
    2) Build text checks into the script to make sure you get the system responses you expect
    3) Check that there are the proper corellations in the script such that user dependent information is processed correctly.
    Cheers,
    Martin

  • Using LoadRunner wirh SSL

    Hi Guys
    Having issues with Loadrunner playing SSL.
    IT records okay but once you start to play back it stops with error messge..
    The issue is with SSL... so please how do you set SSL combatibility with loadrunner 7.
    Thanks

    I had never attempted to try this before... I hope I got it right.
    I tried the following:
    https://www.xxxx.com/Ep/customServices/services.cfc?method=isValidTempcard&tempCardNumber= 100008
    Result:
    -Nothing is displayed on the page (Is this the correct reponse?)
    -the url changed to http
    Again this is not something I have tried before so I'm unsure as to what I should be expecting.

  • Loadrunner 11 and Adobe interactive forms

    I'm currently on-site for SAP Italy and the client wants to use Loadrunner 11 to test a business process that requires Adobe interactive forms.
    eCATT is not acceptable to the client
    Can you advise me if the question about this being possible using Loadrunner 11 has been answered ? Has anyone actually done this using LR and if so would you share details ?
    I note that in the HP Forum that this topic is currently live.
    jc

    Hello Brenda,
    yes, we've tested eCATT with interactive forms. It works so far, but the question is what is the goal of your test?
    Using eCATT ADS, the application, and the business logic behind is tested. If that is your goal, using eCATT is an appropriate solution.
    Regarding Loadrunner-Tests I'm not the expert. But within the solution an ActiveX does posts to the server using encoded URLs. So there are several problems:
    - is loadrunner able to record those posts?
    - is loadrunner able to modify URL parameters dependend on the current session?
    - is loadrunner able to use the response of such a post and dynamically adapt a post parameter of the subsequent post?
    So I think it is at least very difficult and complex to use loadrunner. I recommend eCATT as the solution for automated tests of InteractiveForms.
    Regards
    Stefan

  • LoadRunner SAPGUI Virtual Users Decline

    I am trying to perform a Load Test on SAP R/3 using LoadRunner 9.5. I have 120 virtual users that I would like to run for an hour. I have distributed these 120 vusers over 6 scenarios on 5 load generators. The maximum number of virtual users that I have been able to run at one time is 114. The number then slowly declines over the next 40 minutes and stabilizes at 91 vusers (which run for the remaining hour). The messages I get from LoadRunner indicate that users have logged on and navigated to their assigned transaction code in SAP, but fail to perform the first step in that transaction code (this happens for ME21N, ME22N, ME23, FB10, F-43 which is all of the transaction codes that I am testing). I have worked with the Basis Group here to ensure that there are enough interactive dialog work processes, set each scenarios think time to random, initialize and start each vuser individually, and ensured that each load generator has enough RAM. The only thing left that I know to try is to increase the number of dialog processes per user. However, we cannot figure out the parameter name to do this. If anyone knows the name of this parameter or have any other suggestions, please let me know. Thanks!

    Hello Andy,
    We are having a similar problem, did you ever get an answer about this issue?
    Thank you!

  • How to make ajax call (writtern in js) using loadrunner

    My application has a javascript which makes an ajax call (calling a jsp page). When i execute the loadrunner script, the ajax call is not happening. I have tried all available protocols but that ajax call is not working.
    Please suggest a way to execute the ajax call (calling a jsp page). Let me know if you need more details.

    I also do a lot of conference calls and was so frustrated by this that I wrote an app to solve this exact issue. It queries the calendar and does pattern matching against the text in the calendar item, including the location field, and presents them so you can dial them directly.  Apparently this is not an uncommon complaint.  It has been selling pretty well. Check it out at: http://itapless.com/products

  • Mobile protocol issue in Loadrunner

    ,while generating script in Vugen from the mobile reccorder(. lrcap file format),script is not getting generated.Can anyone please advise me on this .Thanks in Advance

    devitha wrote:
    ,while generating script in Vugen from the mobile reccorder(. lrcap file format),script is not getting generated.Can anyone please advise me on this .Thanks in Advance
    Have you read this yet??
    https://hpln.hp.com/page/hp-loadrunner-1202-readme
    I am a Volunteer to help others on here-not a HP employee.
    Replies aren't online 24/7 because of Time Zone differences.
    Remember in this Day and Age of Computing the Internet is Knowledge at your fingertips if you choose understand it. -2015-

  • Using Loadrunner to test Jinitiator applets

    I am not familiar with JInitiator, and I am currently researching using LoadRunner 7.5 to perform load testing on an applet using JInitiator 1.1.8.19. The applet also uses Java RMI as its messaging protocol.
    Is there any information about how to do load testing on JInitiator, or has anyone used Loadrunner for Jinitiator jvm-based testing before?
    If so, any assistance would be greatly appreciated. Of course, the deadline for my research was yesterday! :/
    Thanks,
    Brent Friedman

    You want to use LoadRunner 7.5 to load test Forms? This is possible, just make sure you use Oracle NCA. The rest should be straighforward.
    You don't test JInitiator, as such. LoadRunner will simulate the clients. So you don't need to do "Jinitiator jvm-based testing". Remember, you're testing Forms on the middle tier, no JInitiator on the client.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • Use loadrunner to test Web Dynpro Java Application

    Hi Gurus,
             I'm using Loadrunner 11.0 to do load test to Web Dynpro Java Application. At first, I used web(http/html) protocel script, and I could record the whole business process successfully.  But the script seems very hard to understand. For example, the following script is so complex.
    After this, I tried 'SAP Click and Script'. At this time, loadrunner only record my logon action, while my business operation was not recorded in the script.
    "Body=sap-ext-sid=nYCksrUa3nHq2NIwTPpTKg--LpNoVBU_d2sS7nCHLaG*qQ--&sap-wd-cltwndid=WID1411644055966&sap-wd-norefresh=X&sap-wd-secure-id=kNh-egwklSanOHIGRb7-eA%3D%3D&SAPEVENTQUEUE="
      "ComboBox_Select%EE%80%82Id%EE%80%84aaaa.App_Property_FormCompView.ANLKL%EE%80%85Key%EE%80%84FA040%EE%80%85ByEnter%EE%80%84false%EE%80%83%EE%80%82ClientAction%EE%80%84submit%EE%80%83%EE%80%82urEventName%EE%80%84COMBOBOXSELECTIONCHANGE%EE%80%83%EE%80%81Form_Request%EE%80%82Id%EE%80%84...form%EE%80%85Async%EE%80%84false%EE%80%85FocusInfo%EE%80%84%40%7B%22sFocussedId%22%3A%20%22aaaa.App_Property_FormCompView.ANLKL%22%7D%EE%80%85Hash%EE%80%84%EE%80%85DomChanged%EE%80%84false%EE%80%85IsDirty%EE%80%84fal"
      "se%EE%80%83%EE%80%82EnqueueCardinality%EE%80%84single%EE%80%83%EE%80%82%EE%80%83",
    Could anyone give me the clue or materials about WDJ load test using loadrunner? Thanks very much
    regards.
    zhihua

    Hi Zhihua,
    First delete all the cookies from your browser.
    Close all the internet sessions which are opened in your system. During your script recording
    Open only 1 session which you will be recording for java script.
    The above mention log is the cookies from the internet explorer.
    its of no use for the script you can even delete from the script.
    Regards
    Mohammed

  • Full Installation of LoadRunner 11.50 Version Link.

    Can anyone please post a link for complete LoadRunner 11.50 Version Installation.
    Thank You.

    Gagan, you probably wont get an answer here since the OP posted this in the HP home consumer forum.
    Look for and post those questions in the Loadrunner Forum in the HP Enterprise Business Community.
    LoadRunner Support Forum - HP Enterprise Business Community
    Good luck.

  • Loadrunner / ecatt with adobe interactive forms

    Has anyone tried either eCATT or loadrunner with an Adobe interactive form inside of a webdynpro app yet? We are getting ready to, but won't be ready for about 2 - 3 weeks. Any advice or comments would be appreciated.
    bkpf

    Hello Brenda,
    yes, we've tested eCATT with interactive forms. It works so far, but the question is what is the goal of your test?
    Using eCATT ADS, the application, and the business logic behind is tested. If that is your goal, using eCATT is an appropriate solution.
    Regarding Loadrunner-Tests I'm not the expert. But within the solution an ActiveX does posts to the server using encoded URLs. So there are several problems:
    - is loadrunner able to record those posts?
    - is loadrunner able to modify URL parameters dependend on the current session?
    - is loadrunner able to use the response of such a post and dynamically adapt a post parameter of the subsequent post?
    So I think it is at least very difficult and complex to use loadrunner. I recommend eCATT as the solution for automated tests of InteractiveForms.
    Regards
    Stefan

  • RMS performance testing using HP Loadrunner

    Hi,
    We are currently planning on how to do our performance testing of Oracle Retail. We are planning to use HP Loadrunner and use different virtual users for Java, GUI, webservices and database requests. Have anyone here done performance testing in RMS using HP Loadrunner and what kind of setup did you use?
    Any tips would be greatly appreciated.
    Best regards,
    Gustav

    Hi Gustav
    How is your performance testing of Oracle Retail ? Did you get good results ?
    I need to start a RMS/RPM performance testing project and I would like to know how to implement an appropriated structure . Any informations about servers , protocols , tools used to simulate a real production environment would be very appreciated.
    Thanks & Regards,
    Roberto

  • $_REQUEST / $_SESSION

    Hope someone can help with this, as I'm from a design rather
    than coding background.
    Basically I've just about finished off integrating an
    ecommerce site with Protx, whereby some customer data is collected
    on the main site (contact info mainly) before being passed to
    protx's payment gateway.
    In the first instance, the Protx script collects various
    fields, by way of $_REQUEST - eg :
    $ThisVendorTxCode = $_REQUEST['VendorTxCode'];
    $ThisAmount = $_REQUEST['Amount'];
    $ThisCurrency = $_REQUEST['Currency'];
    $ThisDescription = $_REQUEST['Description'];
    $ThisCustomerEmail = $_REQUEST['CustomerEmaill'];
    etc.
    However, the customer is required to log in with an email
    address before ordering, so their email address is held in a
    session.
    So what I thought was all I needed to do was replace another
    form text field 'CustomerEmail' in the form, and
    $ThisDescription = $_REQUEST['CustomerEmail'];
    on the following confirmation page, with just
    $ThisCustomerEmail = $_SESSION['Email'];
    on the confirmation page, and that from then on, it would be
    fed through just as the $_REQUEST['CustomerEmail']; would.
    But it seems not.
    Am I barking up the right tree here, or is there some
    fundamental reason why this isn't working?
    Hope that makes sense!
    Cheers.

    I do - yes.
    In the end, I looked at my pages that let a user edit and
    view their profile, and did what I did there - ie create a
    recordset, and pull in the email address from the record. Which
    achieves the same result.
    Although I'm still not sure why the session variables
    themselves wouldn't display. They're there in the applications >
    bindings panel of DW OK, so I thought all I really had to do was
    drag and drop.....

Maybe you are looking for