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

what frame work you are following?

1874


HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.

2115


write script for bitmap image?

1984


Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?

3808


can any one say that where we can download the QTP trail version ??????????

1703


How will you check a web application for broken links using qtp?

972


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

2302


What is RTM (require ment tracebulity marix) fromate?

1978


what is error and fault in terms of software quality?

1910


How to use checkpoints in qtp ?

958


When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.

2024


I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...

2144


hou can we use vb script in qtp could u tell me breafly

2141


Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)

3652


how can i pass a "cript"as a parameter in to a function

1934