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

Set oTestResource = qcConn.TestFactory

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 

Set oTestResourceList = Nothing
Set oTestResource = Nothing
Set qcConn = Nothing
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what frame work you are following?
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.
write script for bitmap image?
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
can any one say that where we can download the QTP trail version ??????????
How will you check a web application for broken links using qtp?
hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.
What is RTM (require ment tracebulity marix) fromate?
what is error and fault in terms of software quality?
How to use checkpoints in qtp ?
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.
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...
hou can we use vb script in qtp could u tell me breafly
Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)
how can i pass a "cript"as a parameter in to a function