Quality Testing

Quality is delighting customers

Can any one tell me how to write script for a web based application, to open gmail.com and enter username and password and show me the result as pass or fail. (This is one of the question asked in interview)

Views: 105

Reply to This

Replies to This Discussion

hi, you want, how to write script or you actually want steps to write for you..

if you are asking, how to write:

cover all the scenarios for ;

negative testing

positive testing

 

or simple way is: how are you checking emails in gmail.com..hope you understand...

 

SystemUtil.Run "Iexplore.exe","gmail.com"
Browser("Browser").Page("Gmail: Email from Google").WebEdit("Email").Set "ur email id"
Browser("Browser").Page("Gmail: Email from Google").WebEdit("Passwd").SetSecure "ur password"
Browser("Browser").Page("Gmail: Email from Google").WebButton("Sign in").Click

if u need hardcore scripting means creation of objects for browser, page and objects then just let me know

 

Ashish

bajpaiashishkumar@gmail.com

open qtp
click on object repository
add objects into repository ( signin, email,password)
SystemUtil.Run "Iexplore.exe","gmail.com"
Browser("Browser").Page("Gmail: Email from Google").WebEdit("Email").Set "ur email id"
Browser("Browser").Page("Gmail: Email from Google").WebEdit("Passwd").SetSecure "ur password"
Browser("Browser").Page("Gmail: Email from Google").WebButton("Sign in").Click
' here using check point for signout link.
Browser("Browser").Page("Gmail - Inbox  -your name ").Frame("cln7llq1jyjvs").Link("Sign out").Check
CheckPoint("Sign out")
'use reporter event for result.
reporter.ReportEvent(micPass, "signout", "test is passed")
good one!!

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2019   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service