how do u import the test cases written in excel sheet to
qtp? and how do u generate the script in qtp for the
testcase in excel sheet? plzzzz do answer this question
thanks in advance

Answers were Sorted based on User's Feedback



how do u import the test cases written in excel sheet to qtp? and how do u generate the script in ..

Answer / sunita

1.goto QTP
2.datatable.Addsheet "xyz"
3.datatable.import"C:\a.xls",1,3
1 is source sheet of a.xls
3 is destination sheet of xyz
a=datatable.getsheet(3)

Is This Answer Correct ?    5 Yes 3 No

how do u import the test cases written in excel sheet to qtp? and how do u generate the script in ..

Answer / pandu

Yes Siva, The solution what ur given is correct.

Hi Niturao, The Excel sheet contains manual test cases. so
QTP don't undestand what ur writen in ur manual testing. If
it is a VB script u can download from qtp and run not
other. So u want to prepare the test scripts in QTP
separately. like what siva given. or simply u can record
tests.

Is This Answer Correct ?    2 Yes 0 No

how do u import the test cases written in excel sheet to qtp? and how do u generate the script in ..

Answer / niturao

thanks a lot siva for the explanation.
thanks pandu

Is This Answer Correct ?    1 Yes 0 No

how do u import the test cases written in excel sheet to qtp? and how do u generate the script in ..

Answer / siva

Sunita's Discussion was something about Importing some test
data in to the data sheet of QTP by that data we can
conduct RETESTING by a process called parameterization (or
else we can create For loops...) but Nitu Rao's Question is
about test cases, they were already written in Excel sheet
and importing in to QTP test pane to automatically generate
script for those test cases....
The answer could be...
1) Let me take a test case for Login, written already in
Excel sheet===Enter valid inputs in to User Id and Pass
word. enter "ok" button....this is the test case and let us
not worry about the Actual and Expected values and so on
2) Let me "write" the script for the same scenarion of
Login:
if the login is a dialog box...then
Dialog("Login").WinEdit("Agent Name:")Set "niturao"
Dialog("Login").WinEdit("Passwrod:")Setsecure "*****"
Dialog("Login").WinButton("OK").Click

here what I would like to emphasize is We must "write" the
Script in QTP or the script can automatically be generated
only during RECORDING.
so, if you import test cases in Excel sheet I THINK IT
WOULD NOT WORK. only test data can be imported.
I think you got it
sivaprasadnunna79@yahoo.co.in

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More QTP Interview Questions

Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?

0 Answers  


Which Databases supports for QTP?

3 Answers   CTS,


how to test Web application using QTP software

0 Answers   Google,


I have a tool bar where 5 different buttons are placed, but these buttons are not traceable hence i have created a virtual object on save button of this toolbar. Now pls tell me how to use this virtual object while write script.

0 Answers   IBM,


How does QTP identifies the object in the application

6 Answers   Convergys,






I am sathish , i want to test the Application of JIL.org ,Mobile Emulator ,by using QTP10.0. I am trying to do testing on that Application , but Child Objects are not identified by the QTP. Please can any one help me

1 Answers  


wht type of User defined functions or Java Releated functions do we write in VB scripting

0 Answers   Wipro,


What are the environment variables?

3 Answers  


How to take screen shot of desktop by using vb script code or is there any method?

1 Answers  


Explain the benefits of quick test pro(qtp)?

0 Answers  


What is test object model in quicktest professional (qtp)?

0 Answers  


Is manual Testing replacement of automation testing?Which types of testing we can not do in automation testing but can do in manual testing?

1 Answers   Hewitt, Wipro,


Categories