Page 1 of 1

About setUser agent command in Evalid

PostPosted: Fri Apr 08, 2011 2:19 am
by star
I used that SetUserAgent command with invalid values like "sfs#%gvf",but Evalid does not throws any error on that instead it proceeds next line.
And also Is there is any command to verify that whether this script is correctly navigate to the browser that i gave in that script ?

# Recording by eValidâ„¢ V9 Build #293, Build Date: (Jan 13 2010)
# Copyright © 2009 by Software Research, Inc.
# Recording made on: Microsoft Windows XP (IE 8.0.7600.16385), HostName "WIN-0JB34KP6S51"
# Recording started at: <2010/10/28 12:56:08>
#

ProjectID "ISS_PQA_WEB"
GroupID "WORKGROUP"
TestID "ISS_PQA_WEB_Beep_SC_1"
LogID "AUTO"

ScreenSize 1024 768
FontSize 2
DeleteCache
DeleteCookies
Wait 1000

SetUserAgent "sfs#%gvf"
Wait 1000

InitLink http://12.0.0.8/
Wait 1000
InputValue 0 29 "TEXT" "" "Login" "root" "" ""
Wait 1000
InputValue 0 32 "TEXT" "" "Password" "admin123" "" ""
SubmitClick 0 34 "" "submit" "Login" "" NAV
Wait 1000

IndexSetEnd 0 "number:0"
IndexFindElement 0 UP "pathname" "wmi/logout" "number:0"
IndexFollowLink 0 "number:0"
Wait 1000

SetUserAgent "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7"
Wait 1000

InitLink http://12.0.0.8/

Wait 1000
InputValue 0 29 "TEXT" "" "Login" "root" "" ""
Wait 1000
InputValue 0 32 "TEXT" "" "Password" "admin123" "" ""
SubmitClick 0 34 "" "submit" "Login" "" NAV
Wait 1000
IndexSetEnd 0 "number:0"
IndexFindElement 0 UP "pathname" "wmi/logout" "number:0"
IndexFollowLink 0 "number:0"
Wait 1000

Re: About setUser agent command in Evalid

PostPosted: Thu Apr 14, 2011 8:46 am
by eValid
star wrote:I used that SetUserAgent command with invalid values like "sfs#%gvf",but Evalid does not throws any error on that instead it proceeds next line.
And also Is there is any command to verify that whether this script is correctly navigate to the browser that i gave in that script ?

# Recording by eValidâ„¢ V9 Build #293, Build Date: (Jan 13 2010)
# Copyright © 2009 by Software Research, Inc.
# Recording made on: Microsoft Windows XP (IE 8.0.7600.16385), HostName "WIN-0JB34KP6S51"
# Recording started at: <2010/10/28 12:56:08>
#

ProjectID "ISS_PQA_WEB"
GroupID "WORKGROUP"
TestID "ISS_PQA_WEB_Beep_SC_1"
LogID "AUTO"

ScreenSize 1024 768
FontSize 2
DeleteCache
DeleteCookies
Wait 1000

SetUserAgent "sfs#%gvf"
Wait 1000

InitLink http://12.0.0.8/
Wait 1000
InputValue 0 29 "TEXT" "" "Login" "root" "" ""
Wait 1000
InputValue 0 32 "TEXT" "" "Password" "admin123" "" ""
SubmitClick 0 34 "" "submit" "Login" "" NAV
Wait 1000

IndexSetEnd 0 "number:0"
IndexFindElement 0 UP "pathname" "wmi/logout" "number:0"
IndexFollowLink 0 "number:0"
Wait 1000

SetUserAgent "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7"
Wait 1000

InitLink http://12.0.0.8/

Wait 1000
InputValue 0 29 "TEXT" "" "Login" "root" "" ""
Wait 1000
InputValue 0 32 "TEXT" "" "Password" "admin123" "" ""
SubmitClick 0 34 "" "submit" "Login" "" NAV
Wait 1000
IndexSetEnd 0 "number:0"
IndexFindElement 0 UP "pathname" "wmi/logout" "number:0"
IndexFollowLink 0 "number:0"
Wait 1000

Actually, eValid only throws errors on very specific kinds of things that reflect bad content, failed validations, timeouts, or other major problems.

In using the SetUserAgent command the responsibility to use an agent that makes sense to the server is the tester's responsbility. eValid follows your instructions exactly, but has no way to know if the instruction makes sense or not.

Many servers, if you send the wrong kind of user agent string, respond with what they believe is "vanilla flavor" HTML. This might be what's happening in your case.

eValid Support