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 to test the login page in different ways in automation testing and i need code?
How to change the priorities of the recovery scenario properties?
If I change the object name in one action will it be updated in all the actions? Or not?
Can we create user defined functions in qtp?
How will you check that your test cases covered all the requirements?
Why do we use breakpoints in QTP?
hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?
How do we handle run-time errors?
What is the use of text output value in quicktest professional (qtp)?
how do i know how to use tools
What is system testing and what are the different types of tests you perform in system testing?
requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how
How can I open a EXCEL file from QTP Resultviewer with reporter.ReportEvent function call. Example: Test files for details click "here". And clicking "Here" in the resultviewer will open a local EXCEL FILE.
Suppose I want fail that check point? How can you do that?
can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?