How can I test the unix shell in QTP

Answer Posted / ramchandra patil

Hi Keshab,

we can run shell script commands(DOS commands) in windows
environment...as QTP support only windows operating system...
you can create object of Wscript.shell as below n can
execute commands..
eg.
Set obj=CreateObject("WScript.Shell")
WshShell.SendKeys “%f”

please guys let me know if Iam wrong and what is psbl
correct amswer..


Thanks,

Ramchandra Patil
9699851282

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of action split in qtp?

573


What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?

600


There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?

1632


What is the difference between shared and local object repository?

624


Thanks....But can u tell me how i use the QTP for GIS with one Example...

1439






Write a script to customize the test results in PDF and HTML format.

2091


hi in real time who will execute the qtp test scripts? my faculty said, in a companty automation testers are written the test scripts and manual testers are execute the test scripts...IS IT RIGHT OR NOT?

2813


If I give some thousand tests to execute in two days what do you do?

586


What is the syntax for how to call one script from another?

574


Name the properties you would use for identifying a browser and page when using descriptive programming?

530


Approach for Installation,comaptibility,system testing

1717


What is difference between design time and run time data table?

593


What are the advantages of a Hybrid framework?

605


How to customize qtp?

616


I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }

1748