Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Hi all , I am new at QTP I want a sample script to check
validation messages(For java script or VB script) for login
page with for web based application.. Any one can Help. I
have to complete it in two days I need urgent help..

Ex. if I want to check mail.yahoo.com
1 > If user doed not exist it display "Username does not exist"
2> if invalid Uname and password then it display" Invalid
Uname or pass"

3> Loing Sucssessfully.

I want to check this types of application by using data
table to give values of username and password..

Thanks

Answer Posted / amjad

Open()(It is a function to open the application)
Browser("Browser").Page("Gmail: Email from Google").WebEdit
("Email").Set "User id"
Browser("Browser").Page("Gmail: Email from Google").WebEdit
("Passwd").SetSecure "************"
Browser("Browser").Page("Gmail: Email from
Google").WebButton("Sign in").Click
If Window("gmail").Exist then
reporter.ReportEvent 0,"Checking Login","details given are
correct"
Window("gmail").close
Else
Browser("Browser").Page("Gmail: Email from
Google").WebButton("Sign in").Click
Browser("Browser").Page("Gmail: Email from
Google").WebButton("Sign out").Click
reporter.ReportEvent 1,"Checking Login","details given are
not correct"
end if

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create Reusable and Multiple Actions?

2197


How you can make an action as re-usable action?

1129


What are the major/ important methods, functions in QTP we use realtime testing

2796


In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?

1078


i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework

2108


how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up

4604


How did you use regular expressions in QTP and also in WR?

2641


How will you declare a variable in qtp?

1000


Can launch two instances of qtp on the same machine?

1099


How to export quicktest professional (qtp) results to an .xls file?

1183


In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.

1962


How to find operating system information using the qtp script?

1093


Is text area check point supports for web applications?

976


What are the differences between table and db checkpoints?

1025


How can I check if a environment variable exist or not?

1049