How can we get the result from WindowsXP Command Window?
(e.g. After we input 'ipconfig' in command window, how QTP
get the result?)

Answers were Sorted based on User's Feedback



How can we get the result from WindowsXP Command Window? (e.g. After we input 'ipconfig' ..

Answer / surya

Dim app
set app = createobject ("Wscript.shell")
SystemUtil.Run "cmd.exe"
app.sendkeys "cd\"
app.sendkeys "~"
this code will run

Is This Answer Correct ?    0 Yes 0 No

How can we get the result from WindowsXP Command Window? (e.g. After we input 'ipconfig' ..

Answer / sagar kuamr sutar

We can get the results from windows xp cmd prompt:

Dim app
set app = createobject ("QuickTest.Application")
SystemUtil.Run "cmd.exe"
app.sendkeys "cd\"
app.sendkeys "~"

After this you can give your input to get the results.

Is This Answer Correct ?    0 Yes 1 No

How can we get the result from WindowsXP Command Window? (e.g. After we input 'ipconfig' ..

Answer / rajendra

Command window meand command prompt,
it is a DOS o.s environment.
QTP cannot support this dos environment.

ok frindz byee

Rajendra
rajendra_penumalli@yahoo.com
+91-9885162742

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

Using Regular expression in Date format DD/MM/YYYY (0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[12])/([0-9]{4}) in this regular expression year 0000 also accepted.I need atleast any one single digit must be nonzero value (like 0009,1000,0034)

1 Answers  


How QTP recognizes Objects in AUT?

8 Answers   Blue Star,


The string is like POWER STAR PAVAN , write a script for this how to findout the number of "A" in the string ?

7 Answers   TCS,


What is quicktest professional (qtp)?

0 Answers  


can QTP works on LINUX platfom

2 Answers  


Java add-in is need to work on java oriented project ?

3 Answers  


can anyone answer this question ........in the DICTIONARY OBJECT....i created the dictionary object in reserved object ok....here i have some sets of values ...now i want to retrieve the item i done too ok.......here my question is now i saved the test and close the qtp tool ,again i opened now i retrieve the same item in the dictionary is it possible ????. friends when i try to do this i am getting empty message box i mean no value will be retrieved ......ans me any one plz...

1 Answers   FSS,


What is the default object synchronization timeout in qtp?

0 Answers  


how do you run scripts in QTP?please anyone can answer my questions

4 Answers   Ordain Solutions,


what testing activities u may want to automate?

2 Answers  


diff between dim & redim ? in detailed? pls any one explain me?

1 Answers  


What is OUTPUT VALUE ? PLZ Explain With Example?

5 Answers  


Categories