Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

hi every one this is ashok pls any one give answer me pls question is while testing with selenium after giving id user name and password , the inbox will be open , how to handle this one

0 Answers  


Discuss the economics of automation and the role of metrics in testing.

0 Answers  


is there any Rational Functional Tester certification questions available?

1 Answers   Infosys,


In realtime what is the Testing Process especially in automation plz its very urgent

1 Answers   IBM,


What are the tools used to test a Website? I need to advise my company. Please answer.

1 Answers  


Tell us what you know about table-driven testing?

0 Answers  


What is Test strategy documents.

2 Answers   Covansys,


What is in-house tool?

0 Answers  


what is the General Process for Load Test..I mean General Steps?

1 Answers  


I was asked these questions during a job interview question. I totally stumbled on # 1 and for # 2 even though I answered but not a very convincing way. I would appreciate a concise and well phrased asnwers: 1) During SDLC, when would you be asked to take it "offline" 2) Throughout SDLC process, where would you implement test automation and why?

0 Answers  


What is junit? And what is junit annotation?

0 Answers  


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

1 Answers   Accenture,


Categories