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 many types of recording modes in qtp?
What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)
RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?
what is error and fault in terms of software quality?
in a web page How to check and display a particular word from a paragraph?
What is the expert view?
am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)
How to use output values in qtp ?
How to create a standard checkpoint ?
Is it possible to switch between recording modes during a test creation?
wht is Manual Testing Frame work. Pls anybody can give appropriate answers
Explain the features and benefits of quick test pro(qtp)?
Explain advantages and disadvantages kdf?
What is the latest version of qtp?
What are the advantages of a Hybrid framework?