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...

Hi, i want download attached files in test plan area from
QC to local drive in my system using QTP script. Please
help me

Answer Posted / ashok kumar

TestResPath = "Subject/BPT/..."
SaveTo = "C:/TestPlan/"
Set qcConn = QCUtil.QCConnection&#8232;
Set oTestResource = qcConn.TestFactory&#8232;

Set oTestResourceList = oTestResource.NewList

For i = 1 to oTestResourceList.count
QCTestPath = oTestResourceList.item(i).Path

if instr(1,TestResPath,QCTestPath)> 0 Then
oTestResourceList.DownloadResource saveTo, True
End if

Next &#8232;

Set oTestResourceList = Nothing
Set oTestResource = Nothing
Set qcConn = Nothing

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the concept of object repository?

991


what could go wrong with test automation?

2071


explain structured testing? plz guys with exp. do answer

1888


Is text area check point supports for web applications?

977


How do know the number of browsers opened?

1083


QTP 10.0 is not identifying web objects for IE 8.it is identifying like winObject.I installed HP patch QTPWEB_00037.Still getting issue

6235


What is the use of ordinal identifier in qtp?

1022


How to handle dynamic objects in quicktest professional?

949


How many types of parameters are available in quicktest professional?

1006


How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?

1939


How the exception handling can be done using quicktest professional (qtp)?

1119


Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?

2389


Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)

2114


How do client side image and server side image work?

1863


Hi Samrat, Thank u very much, what u said it is right.

1903