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

Give the syntax to load function at run time.

629


1. wat are the main diff b/w QTP 8.0 AND QTP 9.2 ( not user interface) 2. wat is the meaning of Keyword in keyword driven frame work? 3. how u will handle the unknown errors while exucution. (not recovery scenario)

1728


Hi Friendss..., can any body help me.. 1. Tell me your achievements(Technically)..? 2. Tell me your strengths(Technically) and weakness(Technical)..? 3. Why are you looking for change..?

1420


Brief the process of testing with UFT?

635


Hi. I have completed B.TECH(CS) , But I will go to "SECURITY CONSOLE OPERATING" [C.C CAMERA abservation]. IF interviwer asks " Why you choose this job ?" What we will say? urgent.........................urgent...........

1445






what function you write to do database testing with the help of qtp?

1359


What is QTP scenario.

1734


hi guys, pls tell me for testing institution training hub, hitech city is best or not?

1321


Have you used xml check point in your project?

556


Can launch two instances of qtp on the same machine?

583


What are the recording modes in qtp?

583


Is the qtp course will help to create a virtual object?

1516


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.

533


Explain the check points in quicktest professional (qtp)?

560


What are the different recording modes?

562