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

What could go wrong with test automation?

1 Answers  


Manually in a page 10 check boxes is there.so 5 check box "on" and 5 check box "off" so using descriptive program how to know how many "on" and how many "off" plz help me this question answer?

0 Answers   IBM,


Hi, I want to learn DataBase Testing. So please some document or path so that i can get some material on DataBase Testing concepts (preferably SQL Server 2000). Thanks in advance, Guru

0 Answers  


What are the risks associated in automation testing?

0 Answers  


What is the difference between close and quit command?

0 Answers  






If testing is done using white box testing,then what is the need of using Black box testing again? I mean when unit testing and Integration testing is done at Coding level, what is the need of testing again at testing level?

1 Answers  


What criteria do you consider for automating a test?

0 Answers  


What are the references for TSL functions.? Could anybody suggest me recommended book for Test Script Language.

0 Answers  


What is the process of Automation Testing?

0 Answers   Wipro,


What all things can you automate?

0 Answers  


What is junit annotation?

0 Answers  


Tell us what is the alternate way to click on login button?

0 Answers  


Categories