Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to use command prompt using qtp?

Answer Posted / shobhit kaul

hi frnds in the above answer(by king) there is only one
change

as inspite of creating object of quicktest.applicaton
you should create object of wscript.shell
The code is as::

Set app=CreateObject("Wscript.shell")
SystemUtil.run("cmd.exe")
app.sendkeys "cd\"
app.sendkeys "~" 'its for enter key
app.sendkeys "default.xls" 'this xls should be any where
your c drive

app.sendkeys "~"



Please correct me if i am wrong any where
my emai id is
kaul.shobhit@gmail.com

Is This Answer Correct ?    13 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Cross browser testing? Does UFT support it?

1204


How will you report the bug and explain the defect tracking sheet you handled?

3152


How do we handle run-time errors?

1100


How you are developing the script? Using record and play back or manual?

1133


What is the difference between qtp and selenium?

1091


Explain the concept of object repository and how QTP recognizes objects?

1131


How to interact tool & application build in QTP?

2002


What is parameter in qtp?

1144


Can we record using all the modes in a single script? Explanation with example is appreciated

1918


wht type of User defined functions or Java Releated functions do we write in VB scripting

2290


How to use the object spy in quicktest professional 8.0 version?

1030


how to test load test and block box testing an a web based application pls give ans briefly

1909


What is action?

1050


what is the difference btn risks & Therads in the Test plan documentation?

2171


Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance

2256