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 | .... | 183 | 184 | (Page 185) | 186 | 187 | .... | 199 | newer

    0 0

    Hi All,

    I had developed and replyed a TruClient script in multiple browsers but when i tried to replay the script in IE browser with develop script mode, its not replaying.

    The script opens in IE browser and when I try to run the script no activity happens but the same script runs fine end to end in firefox/chromium browser. 

    Note: 1) This TruClient script was being successfully replayed in IE browser multiple times.

    2) The similar issue happens for any new TruClient recorded.

    Let me know if anyone faced this issue and what was being done to resolve this issue.

    Thanks,

    Bibhu Panda.


    0 0

    Hello, Plz help, I m also getting the same error (in WIn 8) - " Authentication required, please use "web_set_user", e.g. web_set_user("domain\\user", "password", "host:port");   [MsgId: MERR-26547]"  I m very new to loadRunner.  Hence, I used web_set_user at the begining of the editor  as  web_set_user("localhost\\jojo", "bean", "localhost:1080");  I m using the provided HP WebTours App . I tried enabling "WinInet" at runtime setting but no luck. I m very depressed that HP VuGEN Help Center DOES NOT address this common issue in their guide. If I have to Face such a common issue with the simplest form of Web Protocol Script, then it shoud have been mentioned in thier guide. 


    0 0

    Hi All,

    The client application functionality is to select atleast 10 number of checkboxes on a page and then proceed for submission.

    I am facing very long wait times during recording for the check boxes to be clicked i.e almost an hour for clicking 10 checkboxes, which is not normal.

    Is anyone else facing this issue with checkboxes recording in TruClient.

    Thanks,

    Bibhu Panda.


    0 0

    Hi, 

    I am using HTTP Web protocol and the application is trying to open a pdf file that gives options to "Open", "Save", and "Cancel". I am getting this error on that step "Authentication required, please use web_set_user, e.g. web_set_user("domain\\user", "password", "host:port");". I tried the web_set_user , but it doesn't help. Can you please give me any suggestions to get rid of this error ? 

    Thanks, 


    0 0

    We have a requirement to send email from loadrunner.

    For the below code if I send the email, the "To" field is blank in the email.

        smtp_send_mail("SendMail",
            "To=receiver@abc.com",
            "Subject={Subject}",
            "From=sender@tbc.com",
            "ContentType=text/plain;",        
            "ContentType=application/pdf;", 
            "ContentType=multipart/mixed;",        
            "ContentDisposition=attachment;",
            "filename={P_Attachment}",
            "charset=\"iso–8859–4\"", 
            MAILOPTIONS, 
                "X–Priority: 3", 
                "X–MSMail–Priority: Normal", 
                "X–Mailer: Microsoft Outlook Express 10.31.112.206", 
                "X–MieOLE: Produced By Microsoft MimeOLE V5.00.2919.6700", 
            MAILDATA,
                "AttachFile={P_Attachment}",
            LAST ); 


    0 0

    Hello

       We want to write custom logs on Response time and error messages during runtime to a shared drive . We are currently manually harcoding scriptname as a filename (TTT_Schedule_Cancel__TCWEB_Error_) in Evaluate Javascript code step as below .

    How can i Capture Scriptname dynamically .. is there a TC API to get just like Utils.getEnv("COMPUTERNAME")

    Also where can i find help on Utils.getEnv and what parameters it can take

    Here TTT_Schedule_Cancel__TCWEB is the scriptname

    var filename1 = "\\\\172.18.229.50\\LOGS\\\TTT_Schedule_Cancel__TCWEB_Error_";
    var filename2 = "\\\\172.18.229.50\\LOGS\\\TTT_Schedule_Cancel__TCWEB_";
    filename1=filename1+hostIP+"_"+datestring+".txt";
    filename2=filename2+hostIP+"_"+datestring+".txt";

    Thanks

    Naveen


    0 0

    Hi Everyone,

    I am developing Scripts for Webtop application.

    I want to export a document, for which I need to select an unlocked document from a list containing multiple documents(Locked and unlocked mix).

    How to make sure that while replay, only an unlocked document is selected for export.

     

    Thanks in Advance.

     


    0 0
  • 03/02/17--23:35: MMS_play_ex function
  • Hi All,

    I was learning media player function in Load runner, but I got stuck at mms_play_ex function and not able to understand this.

    Example: mms_play_ex

    MMS ppmms=0;

    mms_play_ex(&ppmms,"Welcome", "URL=http://server/welcome.asf", "duration=-1","starttime=10",LAST );

    I was able to understand URL,duration,starttime, LAST but couldn't understand &ppmms and "Welcome".

    The only thing I knew about &ppmms is - It is a session identifier. But what is the meaning of that, I don't know.

    Could any one of you teach me that What is the meaning of &ppmms and "Welcome"  ?

    Thanks in Advance


    0 0

    Hi Team,

    My requirement is to run vugen script with specified number of iterations through command line.

    I have tried below. Please provide your suggestions on this

    1. mdrv.exe -usr "path of usr file" -loop "2" -- This command not iterating the scirpt 2 times.

    2. mdrv.exe -usr "path of usr file" -threads "2" -- This command is iterating two times. My problem is for 2 iterations

    same value is being passed.It is not taking different value.

     I have created parameter with two values  with the specified option "change value for each iteration".

    3. I have also tried running below command flollowing below steps:

    mdrv.exe -usr "path of usr file" -iter "no_of_iters"

    In VuGen, select Run-Time Settings -> Additional attributes.
    2. Create an argument name (for example, "iter"), and give a default argument value of 2.
    3. Use a for loop in the Action item, and repeat the action "iter" number of times.

    Example:


    Action()
    {
    int iterations, i;
    iterations = atoi(lr_get_attrib_string("iter"));

    for (i = 1; i <= iterations; i++)
    {
    // action recorded
    lr_output_message("This is a test, iteration is %s", lr_get_attrib_string("iter"));
    }
    return 0;
    }

    In this also same parameter value is passing for every iteration.

    Please guide me what needs to be done to pass different value for each iteration.

     

     


    0 0

    I am trying to create a script in .net protocol taking reference of code below. But am getting a reference error 

    //---------------------------------------------
    //Script Title        :
    //Script Description  :
    //
    //
    //Recorder Version    : 
    //---------------------------------------------
    using System.Net;  
    using System.IO;  
    using System.Text;  
    
    namespace Script
    {
        public partial class VuserClass
        {
            public int Action()
            {
            	
            	        // Get the object used to communicate with the server.  
                FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://www.contoso.com/test.htm");  
                request.Method = WebRequestMethods.Ftp.UploadFile;  
      
                // This example assumes the FTP site uses anonymous logon.  
                request.Credentials = new NetworkCredential ("anonymous","janeDoe@contoso.com");  
      
                // Copy the contents of the file to the request stream.  
                StreamReader sourceStream = new StreamReader("testfile.txt");  
                byte [] fileContents = Encoding.UTF8.GetBytes(sourceStream.ReadToEnd());  
                sourceStream.Close();  
                request.ContentLength = fileContents.Length;  
      
                Stream requestStream = request.GetRequestStream();  
                requestStream.Write(fileContents, 0, fileContents.Length);  
                requestStream.Close();  
      
                FtpWebResponse response = (FtpWebResponse)request.GetResponse();  
      
                Console.WriteLine("Upload File Complete, status {0}", response.StatusDescription);  
      
                response.Close();  
                
                return 0;
            }
        }
    }

     

    Error: 

    Error 8 The type or namespace name 'Net' does not exist in the namespace 'System' (are you missing an assembly reference?) Action.cs   DotNet1


    0 0

    Hi, 

    I am using LoadRunner 12.53 TruClient Firefox.  I ran into a strange issue where i am getting evaluation error when getting parameter value from TC library function. This happens only when the javascript is called after a long UI transaction that spins with a busy indicator for about 3 minutes. When I modify the input to the test such that the UI transaction only spins for about a minute, everything works fine.

    This seems similar to an issue described here 
    http://eyeontesting.com/questions/1351/loadrunner-truclient-ajax-failed-an-argument-is-in.html

    Any idea why this happen and if there is a workaround for it?

    Thanks!
    Jason

     

     


    0 0

    A SIMPLE NAVIGATION TO ANY PAGE gives me the Authincation error in Vugen (v 12.53 ), doesnt matter if it requires Authentication or not. Recording opens up a page, after I stop and replay it, it will give me Authentication error ..401 unauthorized access etc.  I have gone berserk with this bcoz I have been stuck in that stage for 3 days, no luck or help from anywhere. Why does it requre authentication for every page LR navigates to at the begining. Many a time, I found that Internet Explorerer opens up with "Res://ieframe.dll/dnserror.htm# " error and my AUT browser hangs theren becomes irresponsive. What the heck is this goin on !!!!!  Plz somebody help me out here 


    0 0

    Good Morning,

    I am relatively new to LoadRunner and was wondering if there is a way to report on the configuration of the test scenarios, including the run-time settings. We have some tests that were previously done and wanted a quick way to look at everything in one shot.

    As Alaways, an assisitance will be greatly appreciated.

    Thank you,

    Doug

    0 0

    Hello Community,

    Can someone explain further on the differences/benefits of using both URL-based script vs HTML-based script?

    If you can provide some examples or situations, it would be helpful and beneficial for me to clearly understand and see the values in each.

    HTML-based script:
    Generate a separate step for each HTMl user action. The steps are intuititve, but they do not reflect true emulation of the JavaScript code.

    URL-based script:
    Records all browser requests and resources from the server that were sent due to the user's actions. For normal browser recordings, it is not recommended to use the URL-based mode since it is more prone to correlation realted issues. However, if you are recording pages such as applets and non-browser applications, this mode is ideal.

    Thanks,


    0 0

    I'm not able to download LoadRunner trial version. Yesterday I got welcome email and download link, but from the link ti says "try again later". Today I'm not able to access the link anymore.

    Please advice.


    0 0

    Hi,

    We have an JNLP application that we need to test. The functionality is that

    • Launch the application URL (https://www.xyz.com)
    • Sign in into the web application
    • After successfull autehntication, a JNLP file (app.jnlp) is download which uses "javaws" to launch a new Desktop java application on runtime.
    • Download few reports from the application.
    • Sign out and close the JNLP application.

    We initially tried with HTTP/HTML protocol it records till the part of downloding the jnlp file. After that nothing is recorded. After google research, we got to know that jnlp application can be tested using Java over HTTP or Java record and Replay, but its very difficult to find the process. If any one has any idea/document/link on how to test this application please share with me.

    Thanks.


    0 0

    Hi All,

    I have 2 scripts, in 1st script, I am generating the VUId and need to use the same id in next script. First script needs to generate 4Million transactions/hr. all these data need to be stored and used by second script.

    I have written a txt file and writing into it but this is not a good practice and also do not know 4 million VUIdcan be written in a txt file. looking for good alternate.

    I heard about VTS but need some more guidance and need to confirm whether VTS works for my requirement.

    Please advice, Thank you so much.

     


    0 0

    Team

    Please let me know which protocol i need to choose for recording a windows .Net Application in Load runner 12.53

     

    Appreciate a quick response

     

    Thanks

    Raghav

     


    0 0

    Hello,

    I am trying to use the parameter value inside the for loop, but the value is not taking in the same way as expected.   I am giving unique, each occurance in the paramater file.  When the loop starts executing it takes only the first two values.   Then i tried to use advance param inside the loop to force it to go to next value but it still doesnt take new value.  Request anyone to provide me solution.

    Code:

    truclient_step("50.1", "For ( var i = 0 ; i < 10 ; i++ )", "snapshot=Action_50.1.inf");
            {
                truclient_step("50.1.1", "Evaluate JavaScript code var a = LR.getParam('p_S...window.alert(a);", "snapshot=Action_50.1.1.inf");
                truclient_step("50.1.2", "Click on 21385 854 8 checkbox", "snapshot=Action_50.1.2.inf");
                truclient_step("50.1.3", "Evaluate JavaScript code var b = LR.getParam('p_P...window.alert(b);", "snapshot=Action_50.1.3.inf");
                truclient_step("50.1.4", "Click on Perf Product 15P 1B 004 checkbox", "snapshot=Action_50.1.4.inf");
                truclient_step("50.1.5", "Execute TC.advanceParam ( 'p_S' )", "snapshot=Action_50.1.5.inf");
                truclient_step("50.1.6", "Execute TC.advanceParam ( 'p_Pn' )", "snapshot=Action_50.1.6.inf");
            }


    0 0

    Hi All, 

    I am trying to capture a cookie value passed in the header of a particular HTTP request and I am not able to do so. There are two cookie being passed. One of them is the SESSION ID that is being carried from the login and there is additional cookie that is required to authenticate a report I am trying to open. I have tried all functions to capture the value of that cookie, but somehow its looking for the SESSION ID cookie that is being captured already. Please tell me how to do this. 

    Here is the header 

    POST /nutrition-reports/frameset HTTP/1.1
    Content-Type: application/x-www-form-urlencoded
    Referer: https://*****.abc.com/app/display_report.zul
    Cookie: JSESSIONID={c_dtCookie}
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36
    Accept-Encoding: gzip, deflate
    Accept-Language: en-US,en;q=0.8
    Accept: */*
    Connection: Keep-Alive
    Host: my*****.***.com
    Cookie: JSESSIONID=E3E86B2BDCA9B0CDF197CC79EB702E77.cguschd2728vm
    Content-Length: 1619

    and here is the code I am trying to capture and insert just before the request

    web_reg_save_param_ex("ParamName=c_dtCookie",
    "LB=JSESSIONID=",
    "RB=.cguschd2728vm",
    SEARCH_FILTERS,
    "Scope=All",
    LAST);

    web_add_header("Cookie","JSESSIONID={c_dtCookie}");

    I need to capture this cookie "Cookie: JSESSIONID=E3E86B2BDCA9B0CDF197CC79EB702E77.cguschd2728vm"

     

     


older | 1 | .... | 183 | 184 | (Page 185) | 186 | 187 | .... | 199 | newer