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


Please Help Members By Posting Answers For Below Questions

How do we handle run-time errors?

571


What are the major/ important methods, functions in QTP we use realtime testing

2259


Hi, How Accessibility checkpoint in QTP can be implemented in the test script?

1604


How to handle the exceptions using the recovery scenario manager in qtp?

562


what is the frame work in J-meter?

1595






Do you know how to connect database? Can you tell me the procedures?

543


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.

1780


what is error and fault in terms of software quality?

1501


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

1377


what is actually contain test report? can anybody post the test report

1467


Can we run multiple QTP scripts one after the other without manual intervention? How?

590


Which functionalities of QTP used in banking project? pls any say answer?

1435


What are the types of object repository?

574


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

1601


How to run a test using quicktest professional (qtp)?

536