Results 1 to 4 of 4

Thread: Can web_url do as well as browser(IE, FF)?

  1. #1
    Junior Member
    Join Date
    Sep 2007
    Answers
    7

    Can web_url do as well as browser(IE, FF)?

    Hi All!

    I'm testing a forum: vbulletin 3.6.8
    I recorded a script. And then I runned the script. Although there is no error but the forum said "has error" at logout step


    I also try to use WAPT 3.0. Result is OK. So my forum seems to be good

    My script:
    -go to homepage
    -log in
    -
    -log out

    Is there anyone who encountered this problem?
    vuser_init
    Code:
    /* -------------------------------------------------------------------------------
        Script Title       : 
        Script Description : 
     
     
        Recorder Version   : 1196
       ------------------------------------------------------------------------------- */
    char linkpa2[200], linkpa3[200], linkpa4[200];
    char * ch1, ch2;
    char * tenfile="c:\\ performancetest . txt";
    long handlefile;
    int i, ii;
    vuser_init()
    {
     
        web_add_cookie("HIM_on_off=0; DOMAIN=localhost");
        web_add_cookie("HIM_method=0; DOMAIN=localhost");
        web_add_cookie("HIM_ckspell=1; DOMAIN=localhost");
        web_add_cookie("HIM_daucu=1; DOMAIN=localhost");
        web_add_cookie("bblastvisit=1198571697; DOMAIN=localhost");
        web_add_cookie("bblastactivity=0; DOMAIN=localhost");
        web_add_auto_header("Accept-Language", 
           "en-us");
        web_url("thanh", 
            "URL=http:// localhost / thanh/", 
            "TargetFrame=", 
            "Resource=0", 
            "RecContentType=text / html", 
            "Referer=", 
            "Snapshot=t45 . inf", 
            "Mode=HTML", 
     
            LAST);
    ...
    ...
    ...


    Attached Images Attached Images Can web_url do as well as browser(IE, FF)?-log-loadrunner-png 
    Last edited by admin; 12-23-2007 at 12:54 PM.

  2. #2

    Re: Can web_url do as well as browser(IE, FF)?

    Are there any dynamic values that are obtained from the Forum as you login? Did you scan your script for correlations? Do you know that your script won't run more than 1 iteration in Vuser_Init section? This is not a question that concerns your problem at hand, but just out of curiosity, are you also running the same script minus the cookies?


  3. #3
    Junior Member
    Join Date
    Sep 2007
    Answers
    7

    Re: Can web_url do as well as browser(IE, FF)?

    Hi Anshoo_Arora!
    Thank for attending my problem!


    Did you scan your script for correlations?
    Oh! Not yet

    Do you know that your script won't run more than 1 iteration in Vuser_Init section?
    Yes! I want to perfect my script before I run the script by Controller

    This is not a question that concerns your problem at hand, but just out of curiosity, are you also running the same script minus the cookies?
    I'm running the same script with cookies and without cookies.

    I have just found the bug. The bug is from my for loop

    My for loops recover dynamic value for "logout link" .They returns some extra character and this cause the phenomenon

    Acctually my Vuser still can not log out the site.
    Assuming Vuser is 10 and they logged out the site but the site still show "current active users: 11(1 member and 10 guest)"
    (1 member is admin)

    And then, I view the page which shows users in detail. Oh! I only can see the only member( admin)


    Regards!

    Post script: Your name has "Shoo" word

    Last edited by thuongshoo; 12-28-2007 at 03:05 AM.

  4. #4

    Re: Can web_url do as well as browser(IE, FF)?

    Great that it has been solved! Congrats!

    My name really does have the shoo word


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact