Are you the publisher? Claim or contact us about this channel


Embed this content in your HTML

Search

Report adult content:

click to rate:

Account: (login)

More Channels


Showcase


Channel Catalog


Channel Description:

LoadRunner Practitioners Forum topics

older | 1 | .... | 124 | 125 | (Page 126) | 127 | 128 | .... | 199 | newer

    0 0

    Hi,

    PC is throwing  memory violation : Exception ACCESS_VIOLATION error and vusers are dropping gradually.

    Script is

    web_set_max_html_param_len("9999");

    lr_save_string(lr_eval_string(lr_paramarr_random("c_Plangroup")),"c_planGroupVal");
    lr_save_int(strcmp(lr_eval_string("{c_planGroupVal}"),"DC"),"Compareresult"); [Exception error observed at this line]

    if(atoi((lr_eval_string("{Compareresult}"))) == 0)

    {

    lr_think_time(10);

    lr_start_transaction("Multiplan_TC04_Click_Link_DC");


    web_url("Heat and Control, Inc. Profit-Sharing and 401(k) Savings Plan",
    "URL=https://{p_URL}/planhome.aspx?planId={c_DCPlanid}&plancode={c_DCPlanCode}&planGroup={c_planGroupVal}",
    "TargetFrame=",
    "Resource=0",
    "RecContentType=text/html",
    "Referer=https://{p_URL}/Multiplanhome.aspx",
    "Snapshot=t4.inf",
    "Mode=HTML",
    // EXTRARES,
    // "Url=/api/mln/retirement", "Referer=https://{p_URL}/planhome.aspx?planId={c_DCPlanid}&plancode={c_DCPlanCode}&planGroup={c_planGroupVal}", ENDITEM,
    // "Url=/api/mln/plan/home", "Referer=https://{p_URL}/planhome.aspx?planId={c_DCPlanid}&plancode={c_DCPlanCode}&planGroup={c_planGroupVal}", ENDITEM,
    LAST);

    lr_end_transaction("Multiplan_TC04_Click_Link_DC",LR_AUTO);

     

    Can anyone please help on this.

    Thanks in advance


    0 0

    I am scripting for Oracle E business suite and using Multi protocol (Oracle NCA+WebHttp/https) protocol.

    I tried scripting in both HTML mode and URL mode, both the cases the script is failing at function "nca_step_end();"

    getting below error

    Action.c(331): Retaining cross-step download of URL="http://sec26-10.stc.com.sa:8001/OA_HTML/AppsTCFServer" (RelFrameId=, Internal ID=3107) [MsgId: MMSG-27656]
    Action.c(331): Error: Error: ifError expired (50)
    Action.c(331): Error: C interpreter run time error: Action.c (331): Error -- memory violation : Exception ACCESS_VIOLATION received.
    Action was aborted.

    I tried appending the URL mode script from the point of error with HTTP mode script even then i face the same error.
    Kindly help me to resolve this issue. I also raising the support case for this issue.


    0 0

    Hi,

    Thanks in advance,

    Can any one help on string comparison function otherthan strcmp to use in Load Runner scripting.

    I need to compare a string with the value captured and saved in LR variable.

    For Example :  result=strcmp((lr_eval_string("{c_planGroupVal}"),"DC")

    Please suggest me with an alternate string comparison function which can be used in LR script.

    Regards


    0 0

    Hi,

    I'm using Ajax Truclient protocol and many a times I get a doubt on what should be the end event for the steps as well as transactions.

    In some forums they say it should be kept as Automatic , if that's the case should the end event during transaction definition also be the same?

    Eg - Clicking on Login

    Step end event - Automatic - document loaded

    End point (during transaction defintion) - Document loaded

     

    Thanks.


    0 0

    Hi,

    1 ) I often get a popup stating "Unhandled exception has occured in your application.If you click continue .." when I try opening an Ajax truclient script especially after upgrading to 12.50 from 12.

    On clicking continue am still able to continue to the script.

    2 ) For bigger Ajaqx scripts I'm not able to use the option "Play from this step".Even after clicking it nothing happens and everytime I will have to replay the script from scratch

     

    Thanks.


    0 0

     During autocorrelation some web_convert_param functions gets added in the script and in 12.5 I found this function was something like the one below,

       web_convert_param("CorrelationParameter_2_URL2",         "SourceString=CorrelationParameter_2",         "SourceEncoding=HTML",         "TargetEncoding=URL",         LAST);

     

    and the script didn's pass the correct correlation value.On analyzing we found that the parameter was not passed as {CorrelationParameter_2_URL2} in version 12.5 ,however in version 12 it was like the one below,

     

        web_convert_param("ViewState_2_URL2",         "SourceString={ViewState_2}",         "SourceEncoding=HTML",         "TargetEncoding=URL",         LAST);

     

    So even if the function is placed automatically by LR engine there is a discrepancy and thus causing extra work (Automatic correlation is to make life simple,but re-checking for things like these we can do the correlation manually with the help of user guide)

     

    Thanks.


    0 0

    Hi Experts,

    We have many Perf projects to be done intenaly with limited number of VUs (50-100).  Will we have any benefits to move from LR to Performance center?  Is it possible to have a phone conversation on this topic?

    My name is Lennart Dunaevsky, VP/QA in CNB phone: 213 673-7934.

    email:  lennart.dunaevsky@cnb.com

     

    Thank you for any direction to move forward.

     


    0 0

    Has anyone found a way to keep breakpoints visible in 12.50 Vugen even when the "active line" is on the same line?

    In Web HTTP/HTML source code in Vugen, while either single stepping a script or running it in animated mode, the active line (by default shown as a yellow line with an right pointing arrow in the left margin just by the line numbers) takes precedence over the markers showing a line is a breakpoint.

    So, normally a breakpoint is shown in some red/brown color. In the left margin, by the line numbers, there is a somewhat large globe, also in red/brown. This makes it obvious where the breaks point it.

    Unless, of course, you single step your script - or, if you run it while having enabled animated run. That is, a page of code is shown and the active line (yellow) moved down through the code. If there is some request taking a long time, the active line pauses for a while until a response is received, then continues.

    The problem is when the active line reaches a breakpoint. Suddenly the animation stops. The line does not move.

    So far, the only way I have found to actually see the state of the active line, is to re-focus my eyes (and mind!) and read the word in the lower left corner of the screen. Does is say Paused? Then we have reached a breakpoint. Does it say Running...? Then I will have to wait for the server to respond.

    This makes my eyes move between two places that are far apart. I would prefer to keep my eyes on the active line. Mentally to be "in the code" rather than breaking out to check some word in a corner.

    So, has anyone found a way to let the breakpoint graphics "shine through" the active line graphics? Please share.

     

     


    0 0

    Hi Experts,

    I would like to know whether we can able to convert a Java over Http protocol used script can be converted a web-Http/Https script. If it can be done, then could you please help on this and provide the solution.

    Thanks,

    SMG


    0 0

    Is it more efficient to design short simple Scripts with few transactions, and combine all these scripts in one large scenario.

    Or have large scripts with lots of transactions and use fewer scripts in one Scenario. 

    Is there advantages/disadvantages of each or that depends on the usage of the application? 

     

     


    0 0

    Hi

    I want to use correlation rules to speed up the scripting but of my seven correlation rule only one is working. The only working is a simple boundary based rule. The other rules are using Regular expression and JSON query and are working in the "Test mode" if I paste in the response body. I am missing some important correlation configuration?

    I am using Loadrunner 12.50.

    Thanks

    Stefan

    2016-02-23 08-27-28.png


    0 0
  • 02/23/16--23:59: Loadrunner with Protobuf
  • Hi,

    I am using LR12.0 to script a destop application using web+webservices protocols. Application had using protobuf for serialization and comapcting the XML. There are lot of proto tags in soap requests. I need to correlate the token within ptotobuf. Protobuf itself appears some latin.

    I tried using DEF Binary to XML but data conversion is not happening in replay.

    Can somebody help to resolve the following correation.

    soap_request("StepName=CheckCredentials", 
            "URL=http://10.135.0.22/wcfstorm/wcfSecurity.svc", 
            "SOAPEnvelope="
                "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\">"
                    "<s:Body>"
                        "<CheckCredentials xmlns=\"http://tempuri.org/\">"
                            "<proto>CgA=</proto>"
                            "<proto></proto>"

    <proto>wnZlCAASF1dJTkRPV1MhQUQtT05FXFJBSkVFVlNIGiFDTjohQkdFR0hNRD5XS1gxWTAuS01ELk9TRFJFQC1ES0wiA0NBRCoAMAE4AkgAUgYtMzI3NjhaEBSmMyJals1O9xOSrUgS69sKEBSmMyJals1O9xOSrUgS69s=</proto>"             
                        "</CheckCredentials>"
                    "</s:Body>"
                "</s:Envelope>", 
            "Snapshot=t5.inf", 
            "ResponseParam=response", 
            LAST);

    i need to correlate value  : <proto>wnZlCAASF1dJTkRPV1MhQUQtT05FXFJBSkVFVlNIGiFDTjohQkdFR0hNRD5XS1gxWTAuS01ELk9TRFJFQC1ES0wiA0NBRCoAMAE4AkgAUgYtMzI3NjhaEBSmMyJals1O9xOSrUgS69sKEBSmMyJals1O9xOSrUgS69s=</proto>

     

    In this value only uS01ELk9TRFJFQC1ES0 this is changing everytime i script.

     

     


    0 0
  • 02/24/16--00:59: Web Asyncs
  • Hi Experts,

    We currently use Web Asyncs in our scripts to have the AUT stream data. This streamed data has to be validated in the scripts. We share the same callback function for multiple Push requests. The reason we do this is because the first Push request responds with an id which is used by the following Push requests. Ideally we would want to use a separate Push request for all the various Push request in our scripts.. Please suggest ways to do this.

     

    Regards


    0 0
  • 02/24/16--06:14: HP LR & IE11 Enterprise Mode
  • Hi,

    Just wondering if the TruClient IE works with IE11 Enterprise Mode for IE7.

    cheers

    Vishal


    0 0

    I have been searching for hours trying to find a way to capture HTML navigation response codes in Truclient, and the only posts I can find on this forum are from 2013 indicating the functionality had not been implemented at that time.

    In the HTTP / HTML client I can leverage XMLHttpRequest, but that does not appear to be valid in TruClient as the below code fails with an "XMLHttpRequest is not defined" error message:

    var httpOpen;
    httpOpen = new XMLHttpRequest();
    httpOpen.open("HEAD", myURL, false);
    httpOpen.send();

    //If the opened page returns a 404 error code then retrieve a new page URL value, else exit FOR Loop
    if (httpOpen.status == 404) {
        myURL = "http://" + LR.getParam("host") + LR.getParam("PDP_Link");
        lr_output_message("Url is: %s",myURL);
        } else {
            pageFound = "true";
       }
    }

    I need to be able to trap page response error codes and (in the case of a 404 or 500 return) re-try the navigate step up to 5 times. Any way to do this if the above doesn't work in TruClient?

     


    0 0

    I am trying to grab all of the listbox elements on a given page as identified by the //*[@class=\"gwt-ListBox\"] xpath

    Using the TruClient Help File Examples I am trying the below, only to get the error message "** failed - exception occurred: ReferenceError: evalXPath is not defined", any ideas why?

    Please note that I've even copied down the specific  evalXPath call used in the example in order to ensure my syntax is correct, to no avail:

    //Retrieve lit of elements matching the target object description
    //var checkboxes = evalXPath("(//input[@type=\"checkbox\"])");
    var listElements = evalXPath("(//*[@class=\"gwt-ListBox\"])");

    var numberFound = listElements.length;

    window.alert(numberFound);

     


    0 0

    When i create a senario of a vugen truclient web script and let it run with 3 users it will crash controller.

    i get :

    Problem signature:

      Problem Event Name:                      BEX

      Application Name:                           Wlrun.exe

      Application Version:                        12.50.249.0

      Application Timestamp:                  55b4ae81

      Fault Module Name:                        trans_ext.dll

      Fault Module Version:                     12.50.249.0

      Fault Module Timestamp:               55b4abb8

      Exception Offset:                              00008d44

      Exception Code:                               c0000409

      Exception Data&colon;                                00000000

      OS Version:                                       6.1.7601.2.1.0.18.10

      Locale ID:                                          1033

      Additional Information 1:                b19e

      Additional Information 2:                b19ed3314981ba0cd22900c71d63cabc

      Additional Information 3:                632f

      Additional Information 4:                632fc979bb975c8ef2a94c252de25bbf

     

    Read our privacy statement online:

      http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

     

    If the online privacy statement is not available, please read our privacy statement offline:

      C:\Windows\system32\en-US\erofflps.txt

     

    DEP is AlwaysOff

    UAC is off

    user is local admin

    script logs in, logs out nothing more

    Any suggestions?

    I use community ed 12.50

     


    0 0

    This is supposed to be something really basic, but a search with google and on this forum did neither bring up any explanation nor an example. So this forum is - again - my last hope.

    I would like to enter something into a textfield. If this text is hard-coded it is really simple:

     

    LR1.png

     

    But now I want to name the value to be something different each time. I can use javascript for that, where I replace the "PlainValue" with a "JS" as follows:

    LR2.png

    with the javascript expression as follows:

    "Testtask_" + Math.floor((Math.random() * 1000000) + 1)

    So far so good. But now I am trying to replace the single javascript statement with something more complex, like the following:

    var currentdate = new Date();
    var datetime = currentdate.getFullYear() + (currentdate.getMonth()+1) + currentdate.getDate() + "_"
    + currentdate.getHours()
    + currentdate.getMinutes()
    + currentdate.getSeconds();
    return "Testtask-"+datetime;

    But now when running this TruClient Script I get the following error:

    ** 4: Call Function SRG.action_search_task ** was aborted due to an error in the called function

    Is the javascript in a wrong format? How to change the javascript-script so that the text-input field is populated with the desired date-output? Is there a way to get a more 'informative' error message?

    I want a solution for the case when I have a multi-line javasvript-script! >>> Not just my script in a single line!! << I want a general solution for all the other multiline-cases I might encounter in future!!


    0 0

    Hi,

    I want to "call" a small Java class from LR. I have the Java class in its jar file.

    Initially, LR rightly complained about the import statement, I then added the JAR file in LR. 

    This resulted in a much worse error message, see very bottom of post. I cannot even compile a completely empty script any more.

    Now I am stuck with this error message, no matter how I config the JVM settings via F4.

    Questions:

    - how can I "reset" the whole JVM settings 

    - any experience in adding a single JAR without messing the whole Java environment up?

    Thanks,

    Thomas Burg

     

    Notify: Found jdk version: 1.8.0. [MsgId: MMSG-22986]
    Warning: Warning: Failed to find Classes.zip entry in Classpath.
    [MsgId: MWAR-22986]
    classpath=I:\devel\LoadRunner\SFTP tests\SFTPSingleDownload\;c:\program files (x86)\hp\loadrunner\classes\srv;c:\program files (x86)\hp\loadrunner\classes;;;;c:\program files (x86)\hp\loadrunner\lib\xstream-1.4.8.jar;c:\program files (x86)\hp\loadrunner\lib\xpp3-1.1.4c.jar [MsgId: MMSG-22986]
    Path=C:\Program Files (x86)\Java\jdk1.8.0_65\bin;C:\Program Files (x86)\HP\LoadRunner\Bin;C:\Program Files (x86)\HP\LoadRunner\Bin\tulip\bin;C:\Program Files (x86)\HP\NV\lib\shunra\vcat;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services;C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft Online Services;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Hewlett-Packard\HP Performance Advisor;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\IDM Computer Solutions\UltraEdit;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\OpenSSH\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\HP\HP Performance Advisor;C:\Program Files (x86)\Subversion\bin;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\HP\LoadRunner\strawberry-perl\perl\bin;C:\Program Files (x86)\HP\NV\lib\thirdparty\safenet\LDK\7.0;C:\Program Files (x86)\HP\NV\lib\shunra\snv;i:\tb\batch;p:\p\tools;C:\Program Files\Java\jre1.8.0_65\bin;C:\Program Files (x86)\Subversion\bin;C:\Program Files\Git\bin;c:\msys\1.0\bin;C:\Users\t.burg\AppData\Roaming\Dashlane\4.1.0.99873\bin\Firefox_Extension\{442718d9-475e-452a-b3e1-fb1ee16b8e9f}\components [MsgId: MMSG-22986]
    Notify: VM Params: . [MsgId: MMSG-22986]
    Java VM internal error:Error Loading javai.dll.
    . [MsgId: MERR-22995]


    0 0

    When a GET request is made to a server, the browser sends HEADER data in that request to the server, like the following example

    GET /tutorials/other/top-20-mysql-best-practices/ HTTP/1.1
    Host: net.tutsplus.com
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Cookie: PHPSESSID=r2t5uvjq435r4q7ib3vtdjq120
    Pragma: no-cache
    Cache-Control: no-cache

    (taken from headers for dummies). Is there a way to set/change those headers when opening a web-page within a TruClient script?

    In other words: I want to use a TruClient-step to set a modified header to some adress. Is that possible? If so, how? If not, why not?

     


older | 1 | .... | 124 | 125 | (Page 126) | 127 | 128 | .... | 199 | newer