1 Attachment(s)
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);
...
...
...
[/code]
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?
Re: Can web_url do as well as browser(IE, FF)?
Hi Anshoo_Arora!
Thank for attending my problem!
[QUOTE]Did you scan your script for correlations?[/QUOTE]
Oh! Not yet:p
[QUOTE]Do you know that your script won't run more than 1 iteration in Vuser_Init section?[/QUOTE]
Yes! I want to perfect my script before I run the script by Controller
[QUOTE]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?[/QUOTE]
I'm running the same script with cookies and without cookies.
I have just found the bug. The bug is from my for loop :p
My for loops recover dynamic value for "logout link" .They returns some extra character and this cause the phenomenon :p
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 :D
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 :)