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

Answers were Sorted based on User's Feedback



Hi all , I am new at QTP I want a sample script to check validation messages(For java script or VB ..

Answer / 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

Hi all , I am new at QTP I want a sample script to check validation messages(For java script or VB ..

Answer / rohit

Advanced QTP training from Automation Infotech pune
(9970927917)
HP Quick Test Professional (QTP In-depth concepts + VB
Scripting + Descriptive Programming + Framework Development
+ Certification) Training


Automation Infotech is a leading software training company
from Pune. specialized in software testing started Manual
Testing, QTP Certification and QualityCenter training.
Trainer is QTP certified from HP Having 4+ years of exp and
working as a Module Test Lead with MNC. The main objective
of Automation Infotech is to provide quality training in
testing for the candidates looking to explore their career.
-------------------------------------------------------
Please find below the QTP training details.
Training: QTP Certification and Framework based Training
with QTP Certification Sample Paper.
Duration: 4-6 weeks
Fee: 6000
------------------------------------------------------
Please find below the Manual Testing training details.

Training: Manual-testing training, with real time example
and project based.
Duration: 2-3 weeks
Fee: 2500
------------------------------------------------------------
-
Please find below the QualityCenter training details.

Training: QualityCenter training, with real time example
and project based.(User and Admin both)
Duration: 2-3 weeks
Fee: 3500
------------------------------------------------------------
-------
Only Weekend batches
Timining: 10 am to 1pm
Trainer: Certified QTP Trainer with 4+ years of project exp.
Venue: Warje, Pune
Note: Each batch will only have 4-6 members. Please inform
to all your friends, who are looking for Quality Training
in Testing.
For more details, email us at:
AutomationInfotech@gmial.com/9970927917

We are shortly opening New branches in Viman Nagar, Aundh,
Deccan, Swaragate, Kotrud, Karve Nagar and Hadafsar.

Other locations are Bangalore, Chennai, Nagpur, Mumbai,
Ahemadabad.

Is This Answer Correct ?    0 Yes 10 No

Post New Answer

More QTP Interview Questions

I have made the recovery scenario in script. When i am exceuting the script. it stop automatically after running recovery scenario. Please tell the resaon?

2 Answers  


if numbers are always changing write a script for that

1 Answers   Nous,


PLS SEND REAL TIMERS, WHAT IS SOA TESTING..IM TRYING 3+ YR.. I HAVE GOOD KNOWLEDGE ON MANUAL TESTING... NOW IM NEW TO LEARN "ETL TESTING" IS BEST OR NOT? BEFORE LEARNING ETL TESTING ANY SKILLS ARE REQUIRED..... AND NOW WHAT IS THE MARKET FOR ETL TESTING... AND IT IS BASED ON PROGRAMMING OR NOT?PLS HELP ME REAL TIMERS IM REQESTING U..... CONTACT ME gan9000@gmail.com

1 Answers  


What is the difference between gettoproperty and settoproperty?Explain with an example?

4 Answers   QQS, Satyam,


What is text/text area checkpoint?

0 Answers  


what are the disadvantages of qtp? can linux support qtp9.2? how could get web address throu vbscript?

6 Answers   Quintegra,


What is the difference between action & script?

3 Answers  


PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME

4 Answers   Ordain Solutions,


hi i want write code for "test engineer" in this i want write reverse how ca plz let me know through script

4 Answers  


Diff b/w test scenario's and test Procedures?

0 Answers  


I want to write some certification courses, so friends could you guide me? which certification is best and how to write exam and what tutorials need to be studied,what to do first, I am working on automation tool QTP 9.2

0 Answers   Livetek,


How to test menu options using qtp

2 Answers  


Categories