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


Please Help Members By Posting Answers For Below Questions

What is difference between selenium and QTP tools Which is best tool... Which is most used tool

1139


Tell me what is a keyword-driven framework?

720


How the object properties will be recognised by the tool If the functions/ statements are written manually?

1929


What all different approaches can be used for designing an automation solution?

700


Where will you maintain information like url, login, password?

1692


What is test automation?

1867


how to import specifically 2nd column elements to runtime datatable in excel sheet if it contains 3 columns

1839


WHAT'S THE TESTER'S ROLE DURING MIGRATION OF CODE FROM TESTING TO PRODUCTION ENVIRONMENT

1935


What is vendor tool and give examples?

813


What kinds of annotations are used in testng?

699


Can we prioritize tests in Junit. What is the sequence of execution in Junit?

1616


VSTET (Visual Studio Team Edition for Testers) which is in TFS (Team Foundation Server) - In what way is VSTET better than QTP?

3402


What are the 5 common software development problems solutions?

785


Tell me how can we find the value of different attributes like name, class, value of an element?

771


What you know about table-driven testing?

740