Please give me the steps to carry out datadriven in QTP8.2
Answers were Sorted based on User's Feedback
Answer / shreya kadiyam
Tools menu > data driver > select sample inputs in
automation program > click parameterize options icon to
select XL sheet coloumn name > click "OK" > Click finish
once you are well familiar with QTP then directly in the
test pane you can write
set datatable("column name",dtglobalsheet/sheetid)
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / noor
I'll take an example of login screen and explain.
first record the login page.
u can see the recored script in the expert view.
Browser(" WWW").Page("ABC").webedit("").set "XYZ"
Know if u want to parameterize username one can do it
manually by writing script in the expert view or using
wizard data driver, under tools menu click on datadriver
in the wizard select datatable as parametertype and in Name
and u can select the location as well global or localvalue
field u can change the name give Username and click ok
username will be added to datatable as column name under
that u can give diff values then run the script.this is
using data table.parameterization can be done using
environmental var and random numbers aswell.
validations can also be done with parameterization
various methods u can apply.
| Is This Answer Correct ? | 0 Yes | 0 No |
How To write script in QTP For Field Validation Example: password Field is accepting A range 8-20 characters only.How to write script?
is it possible to change the date format like MM/DD/YY into DD/MM?YY through script in QTP
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++ )
VM1 = "Invalid username or password. Please try again. " VM2 = "Email id is required.Password is required. " VM3 = "Email id is an invalid e-mail address.Password is required. " VM4 = "Password is required. " VM5 = "Email id is required. " VM6 = "Email id is an invalid e-mail address. " 'Rowcount of the Local sheet Rowcount = DataTable.GetSheet("Invalid login transactions").GetRowCount 'Valid emailid and Password Emailid = "test@iteamic.com" Password = "Password0" 'For i = 1 to Rowcount 'Parameterised Email_id Browser("Browser").Page ("Page").WebEdit("emailAddress").Set DataTable("Email_id", dtLocalSheet) EID = Browser("Browser").Page ("Page").WebEdit("emailAddress").GetRoProperty("value") 'Parameterised Password Browser("Browser").Page ("Page").WebEdit("password").Set DataTable("Password", dtLocalSheet) PWD = Browser("Browser").Page ("Page").WebEdit("password").GetROProperty("Value") If EID = Emailid And PWD = Password Then Reporter.ReportEvent micPass, "EID & PWD check", "Email id and Password is correct, One iteration of Invalid login attempts is not being executed" Else Browser("Browser").Page("Page").WebButton ("Sign-In").Click 'Output value exported to the local sheet Browser("Browser").Page ("Page_2").Output CheckPoint("Home page_Sign in") 'Storing the output value in a variable(OUTPUT OUTPUT = Datatable.GetSheet ("Invalid login transactions").Getparameter ("Validation_message_signin").value 'comparing the Variable Output and the Validation message for a given input If OUTPUT = VM1 Then Reporter.ReportEvent micPass, "VM1", "Invalid username or password. Please try again. " else if OUTPUT = VM2 Then Reporter.ReportEvent micPass, "VM2", "Email id is required.Password is required. " else if OUTPUT = VM3 Then Reporter.ReportEvent micPass, "VM3", "Email id is an invalid e-mail address.Password is required. " else if OUTPUT = VM4 Then Reporter.ReportEvent micPass, "VM4", "Password is required. " else if OUTPUT = VM5 Then Reporter.ReportEvent micPass, "VM5", "Email id is required. " else if OUTPUT = VM6 Then Reporter.ReportEvent micPass, "VM6", "Email id is an invalid e-mail address. " else Reporter.ReportEvent micFail, "EID & PWD check_FAIL", "Validation message checkpoint failed. The captured v msg is not required" End if End if I am getting syntax error saying "Expected 'End If'" at the last line, Why is this? Kindly explain...
what are the limitations of automation testing?
hi.what is exactly mean by real time frame work? every institute teach Framework is nothing but having 6 to 7 folders..and save repositories functions keywords and scripts? this is enough or not? can we beleive?
Approach for Installation,comaptibility,system testing
How to see the screens after running test in QTP?
How to Run a Test using QTP?
How do u do batch testing in WR & is it possible to do in QTP, if so explain?
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object.. (give a filter condition only WEbelement- not easy need to use some more property while giving filter condtions- use google for your help...))
explian about the qtp frame work? where u can use it in your project?