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
Explain the concept of object repository?
what could go wrong with test automation?
explain structured testing? plz guys with exp. do answer
Is text area check point supports for web applications?
How do know the number of browsers opened?
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
What is the use of ordinal identifier in qtp?
How to handle dynamic objects in quicktest professional?
How many types of parameters are available in quicktest professional?
How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
How the exception handling can be done using quicktest professional (qtp)?
Where is the resultset of a sqlquery (which is fired by rsobj.open sqlquery,xxxx,xxxx) stored ?
Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)
How do client side image and server side image work?
Hi Samrat, Thank u very much, what u said it is right.