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



hi i m runing a login script using multiple data by importing from excel sheet, now i want to get ..

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

hi i m runing a login script using multiple data by importing from excel sheet, now i want to get ..

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

hi i m runing a login script using multiple data by importing from excel sheet, now i want to get ..

Answer / neo

Use Reporter.ReportEvent

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Automation Testing AllOther Interview Questions

Is there any freeware tool for automation testing of mobile applications for BlackBerry and iPhone platforms ?

0 Answers  


Tell us what automation tools could be used for post-release validation with continuous integration?

0 Answers  


Tell me an example of the languages supported by webdriver?

0 Answers  


Explain what sikuli is?

0 Answers  


Hi I want QTP software .If anybody have QTP then plz send me the software?

2 Answers  


Why we use Junit and Jmeter? Suggest some sites where we can get more information on these two Tools?

2 Answers  


Do you support automated testing? Why?

6 Answers  


What is use of writing Test cases

2 Answers   Ordain Solutions,


What is hybrid automation?

0 Answers  


What is open source tool and give example?

0 Answers  


Does automation testing have any disadvantages?

0 Answers  


What is a framework for automation testing?

0 Answers  


Categories