Answer Posted / mahi
using "Wscript.Shell" object we can work on command prompt
in qtp.
'create one instance for "wscript.Shell"
set oShell=CreateObject("Wscript.Shell")
'using run method we can invoke application
'/k this will display command prompt.we can also use /c but
we can not see command prompt.It will disappear after
executeion.
oShell.Run "cmd /k dir"
'if we want use multiple commands we can use "&"(amp) symbol
oShell.run "cmd /k dir & md qtp"
set oShell=Nothing
I hope it will useful.
Regards,
Mahi.kotike@gmail.com
| Is This Answer Correct ? | 9 Yes | 5 No |
Post New Answer View All Answers
Hi,All How to create a link in excel sheet using qtp
i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?
I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so
How to Test the mainframe application?
what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”
How do you configure QTP AND Test director?
I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.
Write a script to verify font style and color of a windows object using descriptive programming
Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...
• What type of testing questions will be asked for 2+ yrs exp people in interview?
How can we conduct U-I Testing by using QTP??????
How is the Bitmap checkpoint different from Image checkpoint?
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...........
How to add synchronisation points in qtp?
What is checkpoints for quicktest professional (qtp)?