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

I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible

0 Answers  


What are the environment variables?

3 Answers  


Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop (i.e. I first connect to remote desktop from my machine in order to run the application). I am able to record the script successfully with QTP running on my machine and application running on remote. However, when i run the recorded script, system fails to run it and indicates me that it does not identify the object. Is it possible to record and play while QTP and AUT are not on same machine?

7 Answers   ABC,


Basically why we need testing?

14 Answers  


Is it possible to split an action? How?

0 Answers  






What is the Test Object model in QTP?

3 Answers  


QTP identified the object but not performing the desired action???what could be the reason?????

1 Answers   Mphasis,


There is a table with 4 columns and 10 rows, how to write the script to display the first column records using qtp? can anybody help me with script?

6 Answers   Oracle,


How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?

0 Answers  


What is different command used in command Prompt while using QTP?

0 Answers  


Why to use descriptive programming?

0 Answers  


How to change the Default synchronization method time and where?

4 Answers  


Categories