How to find local host name using QTP?

Answer Posted / aiswaryan

'Record the opening of command prompt in low level mode.
SystemUtil.Run "cmd","","C:\Documents and
Settings\<user>",""
wait 5
Record entering the text "hostname" in cmd prompt in Analog
mode .
Desktop.RunAnalog "Track2"
I have just started learning QTP. I am finding a proper
script to do the above task without recording in analog. If
anyone know please post the answers. Thx.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which type of testing process are you following in ur company? how to recognize a qtp page?

1495


tell me abt a time when u had to go above &beyind the call of duty to get the job done

1552


give me the code to save all messages of inbox of gmail into a folder and notepad

1715


Where to use function or action?

750


Hi Frenz... I would like to take up the QTP certification . Can anyone tell me what is the procedure. n if anybody have the study materials pls fwd it to jkpunathil@gmail.com

1600






What are the views available in quicktest professional?

645


Is text area check point supports for web applications?

614


How many types of parameters are there?

626


what is run-time data?

1797


What is a Patch in QTP?

688


is it possible to add sheets to excel at runtime

3404


What are the automation metrice in your project?

1835


what is supply chain management?

2200


What are the disadvantages of recording test cases in qtp?

680


What are the types of object repositories? Which one is you are using?

722