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
How do we handle run-time errors?
What are the major/ important methods, functions in QTP we use realtime testing
Hi, How Accessibility checkpoint in QTP can be implemented in the test script?
How to handle the exceptions using the recovery scenario manager in qtp?
what is the frame work in J-meter?
Do you know how to connect database? Can you tell me the procedures?
How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.
what is error and fault in terms of software quality?
Which advantages helping QTP to hold the position of "Market Leader" for such a long period?
what is actually contain test report? can anybody post the test report
Can we run multiple QTP scripts one after the other without manual intervention? How?
Which functionalities of QTP used in banking project? pls any say answer?
What are the types of object repository?
i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework
How to run a test using quicktest professional (qtp)?