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
On what basis you can map the success of automation testing?
Tell me how would you test your own element locator?
What is hybrid automation?
What is an automation testing framework?
did anybody take online training from Mind Q systems hyderabad? please share your experience. thanksĀ
Elaborate the fields in bug report in automated testing
Tell me what is automation testing?
Is ui level testing possible?
Is automation testing in agile methodology useful or not?
Currently I do not have any automation in place in my project, but now I want to implement automation, what would be my steps?
WHAT IS TEST SCRIPT AND HOW DO YOU CREATE IT?
What are the advantages of manual testing and automated testing?
What are the main attributes of test automation?
What are the primary features of good automation tool ?
Program/pseudo code on FIFO? Input a string and make sure that output is in FIFO manner. Eg, Enter 'John Dave' as input and output should be 'John Dave' not 'Dave John'. (inbuilt functions like push, pop were given)