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

How to find duplicates in an array and remove them efficiently?

2 Answers  


QTP 1.What type of bugs u commonly find in u r project? 2.what is agile testing explain with example? 3.application is given req n functionality r missing then how can u start testing? 4.what r the types of defect tracking tools? 5.what is functionality testing? 6.what is change req how u use it? 7.diff bet gul n functional testing? 8.test cases for IE 6.0? 9.where do u store test cases? 10.what r design objects in qtp? 11.what r 5 types of objects in qtp? 12.how to change .mtr to .tsr n vice versa? 13.in which situations qtp will not recoznize objects? 14.how to call .vbs fuctions, library files in qtp? 15.if 10 windows r ope write command to close all windows in qtp? 16from what stage u start automation in u r project? 17.what is VSS? it is usedin automationr manual? 18.size of object repository? 19.how to conduct GUI testing n performance testing on MS-Word? what r performance TEST CASES? 20. use of virtual objects explain? 21.how to connect buzilla with qtp? 22. what is API ? 23.how to merge 2 object repositories in qtp? 24.what is recovery scenario manager? 25. diff bet link n hyper link? 26.diff bet test case n test case scenario? 27.what is relational testing? 28.where do we write test cases? 29.what is base line in testing? 30.what r key process areas(KPA) in u r company? 31.what is hot fix? 32.what is sql injection? 33.what is valnerability? 34.what is TOM in qtp? 35.can we do qtp testing with out creating objects in object repository? can we completely write code in expert view only? 36.where we cant do automation testig? give example using OR is a advantage r a disadvantage?

6 Answers   IBM,


Hi Guys, I am very new to QTP tool , In real time environment how to test the application with this tool, 1. How to load application in QTP tool 2. How to write test script in QTP. 3. In manual testing we test login box (user id , password) how can we test this kind of testing with QTP tool with examples . Please guys put some focus on my questions , real time ecperienced answers would be appreciate, advance thanks ,please guys i am expecting ur answers as soon as posible

1 Answers   IBM, INCA,


How to retrieve the property of an object?

1 Answers  


how to post xml data from QTP scripts to any application?

0 Answers  






hai, i am doing QTP by own. So, i am confident in checkpts,synchronization, data driven test, recovery scenarioe manager etc. but actually i don't know how all these we wil implement while we r writting code manually. when we r doing practice, while recording code is automatically generated but in real time i heard that we have to write the script.But i don't know how it is? How to write descriptive prog.? plz. tel me what r the basic things we have to know? explain how to write descriptive prog.? explain me with an example pls.......

2 Answers   Vertex,


What are the ordinal identifiers in web page?

0 Answers  


Anybody can tell me what are the common roles and responsibilites of a Automation Test engineer

2 Answers   IBM,


Whether qtp 9.0 supports Test director8.0

0 Answers   TCS,


After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.

4 Answers   V2 Solutions,


Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?

0 Answers  


when we enter url,one page should open.write a vb script ,that page is open or not

2 Answers   Blue Chip India, Persistent,


Categories