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 are the main differences between Loadrunner and QTP tools? Describe briefly a "real world" scenario that would make you use the first one versus the other? Thank you for your answers....

0 Answers  


Tell us how to login into any site if it's showing any authentication pop-up for username and password?

0 Answers  


What are the challenges using QTP11, QC11 with SAP TAO?

1 Answers   Accenture,


wat would be the parameteries for ul testing for web applilcation

0 Answers  


Name a couple of standard web function found in the function generator?

0 Answers  


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

0 Answers  


Is web based application a 2 tier or 3 tier application.

2 Answers   Value Labs,


Difference between winnrunner and qtp?

2 Answers   Ordain Solutions,


How do you select which automation tool is best suited for you?

0 Answers  


Tell me what is an absolute xpath?

0 Answers  


What is in-house tool?

0 Answers  


IN AN APPLICATION HOW DO YOU IDENTIFY THE TASKS WHICH SHUD BE DONE MANUALLY AND WHICH SHUD BE AUTOMATED?

0 Answers   TCS,


Categories