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

Tell me how could the web element attributes be inspected in order to use them in different locators?

0 Answers  


you have any interaction with clients?

2 Answers   Mind Tree,


did anybody take online training from Mind Q systems hyderabad? please share your experience. thanks 

0 Answers  


plz explain QTP real time work( Means where you store scripts and how u access scripts next day? where those activities we are maintaining, If By usig VSS how the process in going on , plz explain briefly?

0 Answers   CTS,


what is the difference or comparison between QTP and rational? and which tool is better to use?

1 Answers  






Can you explain data-driven testing?

0 Answers  


Bug report formate in bugzilla

0 Answers   CTS,


i have recorded a scrip for some window applicaiton(login screen) and i have used browser as IE and i have executed sucessfully that script. and now i want to execute the same scrip in different browsers and i question is wether it the same script will execute in different browsers or not

2 Answers  


What is modular automation?

0 Answers  


what is the for identifying color of the object

2 Answers  


Explain some disadvantages to manual software testing?

0 Answers  


in keyword driven frame work..where Driver Script is locate? is there any inbuilt script for driver script?who writes the driver script?how to call it any body can tell me with an example...like(yahoo login,inbox, logout).

0 Answers   Yahoo,


Categories