how to use command prompt using qtp?

Answer Posted / shobhit kaul

hi frnds in the above answer(by king) there is only one
change

as inspite of creating object of quicktest.applicaton
you should create object of wscript.shell
The code is as::

Set app=CreateObject("Wscript.shell")
SystemUtil.run("cmd.exe")
app.sendkeys "cd\"
app.sendkeys "~" 'its for enter key
app.sendkeys "default.xls" 'this xls should be any where
your c drive

app.sendkeys "~"



Please correct me if i am wrong any where
my emai id is
kaul.shobhit@gmail.com

Is This Answer Correct ?    13 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What is the difference between them? How to handle script issues?

564


Explain the check points in quicktest professional?

540


how to do the batch testing in test director using manual testing procedure?

1778


When do go for loop condition in test?

654


For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?

617






what is output value in QTP and how it can be used in automation testing

1436


how to prepared for first for the first interview?

1794


How to open a new test using quicktest professional?

574


what is the difference between rational rose and QTP? WHICH TOOL IS BETTER TO LEARN? PLEASE SEND ME AT sana_50218@yahoo.com sandeep@epuratech.com

2314


What is recovery scenario manager? When you go for recovery scenario manager?

591


.have you ever written compiled module? if yes , tell me about some of the function that you wrote.

1682


Explain about the test fusion report of quicktest professional (qtp)?

537


Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John

2167


If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?

1435


How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?

3591