hi i m runing a login script using multiple data by importing
from excel sheet, now i want to get a status pass or fail each
time the script run for multiple data??
so anyone can help me out?
Answer Posted / meher dawlekar
Hi...
Answer for your question :
Ex : Flight Reservation Login with multiple data from the
excel sheet
Here i am taking the Excel sheet(meher.xls) having two
columns name 1.agentname
2.password,with multiple set of values in its respective rows
****************Script*****************************
option explicit
dim aname,pwd,sheetcount
datatable.addsheet"input"
datatable.importsheet"path of the source sheet with
sheetname with its extension.xls","meher","input"
sheetcount=datatable.getsheet("input").getRowcount
aname=datatable.value("agentname","input")
pwd=datatable.value("password","input")
For i= 1 to sheetcount step 1
Dialog("Login").winEdit("Agent Name:").set aname
Dialog("Login").winEdit("Password:").set pwd
Dialog("Login").winButton("OK").click
If Window("Flight Reservation").Exists Then
msgbox "Your Login status is Passed"
else
msgbox"Your Login status is Failed"
Endif
***********Hope you are cleared with my answer**********
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is an automation testing framework?
How do select which automation testing tool is the best for you?
What is junit? And what is junit annotation?
Explain some automation testing tools.
Give some examples for performance test tools?
what is nTier Architecture understanding what is Microsoft ASP.net, ASP and SQL understanding what is Web Application and eCommerce application understanding what is Unit, System, Regression, FAT testing ? Test Automation and Test Script Authoring
How can the user get a text of a web element?
Do you know how can we make one test method dependent on other using testng?
What generally is the structure of a framework?
Tell me how can you switch back from a frame?
wat is database testing....how to develop data driven framework in selenium enviromnent. please explaing in detail
Describe some problem that you had with automating testing tool.
How do you identify the test cases which are suitable for automation?
What is Ticketing tool? Has it any other names? What is the purpose of this?
Differentiate between hdam and hidam database?