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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / meher dawlekar
Hi
In the above ans i forgot to put a statement
Datatable.setcurrentRow(i) after "For i = 1 to sheetcount
step 1"
Is This Answer Correct ? | 0 Yes | 0 No |
Explain what java api is required for generating pdf reports?
What is the difference between Test script and Test case
What types of scripting techniques for test automation do you know?
what is critical test case ? please give an example .
what is the difference or comparison between QTP and rational? and which tool is better to use?
has anyone attended mr. g c reddy sir classes? whom you guys want me to choose Mr. G C Reddy or Mr. Suresh Reddy ? Please help!!!!!!!!!!!
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?
What is the deference between automation tools and management tools?
What is Sikuli?
Tell us which package can be imported while working with webdriver?
I am new to Test Complete ,can any one suggest me the steps to create/Record and replay a test in Test complete 6....
What are the risks associated in automation testing?