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 convert manual test cases to automated testcases

1 Answers   TCS,


How many ways return more then one value from function?

2 Answers   Ingram Micro,


What is quicktest professional (qtp window?

0 Answers  


Tell about descriptive programing in qtp8.2?

4 Answers   GE,


We have a dynamic webtable where rows keep on adding.I have to click on particular row where the status changes to Update or Save.How do you click on Status(either it can be Update or save)

2 Answers   IBM, Infosys,






How to delete an object from the object repository?

0 Answers  


i m tryed to use qtp in a user registration form but at the "image enter"part it gives a error when i run the qtp bcz the image is changed every time so it gives a error when i use regukar expreesion fot this it still gives a error value bcoz it reads the image code bt nt reconige the image which i enter in the image verification text box.so hw can i automate qtp for this function.plz give me a answer

1 Answers  


What is qtpro? What is quick test pro? What is a quick test professional?

0 Answers  


For the below written code , i want to be stop the loop (ex:10 times), but it is focusing to first line of the code & generating error. vbwindow("vbname:=frmMain").Type micAltDwn + "6" + "2" + "D" +micAltUp 'wiil open the particular window in application vbwindow("vbname:=frmDeduction").vbbutton("vbname:=cmdNew").Click DataTable.ImportSheet"F:\QTP VBScript\Form 26-1.xls","Deduction",Global RowCount = DataTable.GetSheet("Global").GetRowCount i=RowCount For j =1 to i 'vbwindow("vbname:=frmDeduction").WinObject("nativeclass:=DataComboWndClass","abs_y:= 187").Type DataTable("Name", dtGlobalSheet) vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 187").Type DataTable("Name", dtGlobalSheet) vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 187").Type micF4 vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 187").Type micTab vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 216").Type micF4 vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 216").Type DataTable("Section", dtGlobalSheet) vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 216").Type micTab vbwindow("vbname:=frmDeduction").VbEdit("vbname:=txtAmtOfPay").Set DataTable("Amount_of_Payment", dtGlobalSheet) vbwindow("vbname:=frmDeduction").VbEdit("vbname:=txtAmtPaidDate").Set DataTable("Amount_PaidCredited_Date", dtGlobalSheet) vbwindow("vbname:=frmDeduction").VbEdit("vbname:=txtAmtPaidDate").Type micTab vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 316").Type micF4 vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 316").Type DataTable("Deduction_is", dtGlobalSheet) vbwindow("vbname:=frmDeduction").ActiveX("acx_name:=DataCombo","abs_y:= 316").Type micTab vbwindow("vbname:=frmDeduction").VbButton("vbname:=cmdSave").Click DataTable.SetNextRow Next vbwindow("vbname:=frmDeduction").VbButton("vbname:=cmdClose").Click

0 Answers  


Hi im new in Testing..can any one plz re-write this code SystemUtil.Run "C:\Program Files\Mozilla Firefox\firefox.exe","","C:\Program Files\Mozilla Firefox","open" ----using for loop(for i=0;i<=10;i++ )

2 Answers  


What are the details steps to connect a remote mysql database in QTP

1 Answers   Verizon,


Can any body tell me how can I choose the share object repository and per action object repository mode. Please give me with steps.

4 Answers  


Categories