Discussion Forum

Welcome to the Discussion Forum, we encourage you to REGISTER on our forum and participate in the debate.For more details Click here

Online Advertising

Viewers now you can promote Your Websites/Blogs/Products by using our online advertising program.Using this feature you can place your Ads in my blog and can attract the people logging over here.To place your ads, just sign in my Guest Book and leave your details over there.

Thursday, March 19, 2009

Verification in Webload

Verification could be done using the options available under Webload Console or by scripting,
1.Verification thru options in Webload Console
a.Record one test session agenda
b.Save the script
c.Debug to ensure syntax error free script
d.Open the Webload Console
e.Choose the option "Create a new template using Webload wizard"
f.Click Ok
g.Click Next
h.Select the type of Agenda to run and press Next
i.Browse and select the Agenda to run
j.Schedule the Test session
k.Uncheck the checkbox of "Run this Load template immediately" and click Finish
l.Configure your verification test selections through the Functional Testing tab of the Tools | Default or Current Project Options dialog box
m.Check the Verification checkbox under the Verfication Frame
n.Check the "Text Search" checkbox to search for a text in the agenda
o.Click the Add button and add the text we would like to verify.
Note that, Verification tests may be run either on a single Web page or on all Web pages
accessed in a test session.

2.Verification thru Scripting
Consider this scenario, we need to check whether the logged in username is displayed in the screen next to Login page i.e in Home page.
For the above scenario we need to add the following verification script under the Post url of Login screen,
a.Add this script(wlGlobals.SaveSource = true) at the first line of script
b.wlHttp.Post("http://www.xxxx.com/login.php")
msg = document.wlSource
msg1 = msg.indexOf(user)
if(msg1 == -1)
{
InfoMessage("Page doesn't Contain the String "+ user +"- Verification Failed")
}
else
{
InfoMessage("Page Contain the String "+ user +"- Verification Success")
}

Glossary:
user - its the username we need to find in the Home page.
document.wlSource - the HTML response

No comments:

Post a Comment

Free advertising


Lowes Coupon
How to Blog

Free Advertising