pls tell me how will you write the vb script in QTP for
DataDriven test from Excel sheet for multiple userid and
password explain with example
Answer Posted / waqar ahmad
Set mySheet=myFile.Worksheets("Sheet1")
Rows_Count=mySheet.usedrange.rows.count
For i= 2 to Rows_Count step 1
SystemUtil.Run "http://qa.ktango.com"
'Browser("Knowledge Tango Login").Page("Knowledge Tango Login").("text:=Login").Activate
Dialog("text:=Login").WinEdit("attached text:=Agent Name:").Set mySheet.Cells(a,"A")
Dialog("text:=Login").WinEdit("attached text:=Password:").Set mySheet.Cells(i,"B")
Wait (2)
Dialog("text:=Login").WinButton("text:=OK").Click
Window("text:=Flight Reservation").Close
Next
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]
when a test case is written how u test using qtp
What are the advantages of a Hybrid framework?
Which scripting language used by quicktest professional?
Is it possible to merge two object repository files in qtp?
What is the difference between analog and low level recording?
What is the file extension of the code file in qtp?
Hi I have exp in manual testing and planning to move in automation testing qtp(9.2).So can help me how to automate customer relationship management tool using qtp and vb script this tool already developed so how can I test it whatever maintaining by development team like documents,various options just give the whole life cycle thanks in advance
In qtp, explain what is qrs file?
Can you brief the hurdles you faced during Automation testing?
How to test the login page in different ways in automation testing and i need code?
How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is
Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.
what is actually contain test report? can anybody post the test report
How is the Bitmap checkpoint different from Image checkpoint?