Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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&#8232;
Set oTestResource = qcConn.TestFactory&#8232;

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 &#8232;

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 to test the login page in different ways in automation testing and i need code?

1916


How to change the priorities of the recovery scenario properties?

1150


If I change the object name in one action will it be updated in all the actions? Or not?

1042


Can we create user defined functions in qtp?

976


How will you check that your test cases covered all the requirements?

1033


Why do we use breakpoints in QTP?

1029


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?

2002


How do we handle run-time errors?

1009


What is the use of text output value in quicktest professional (qtp)?

1014


how do i know how to use tools

1968


What is system testing and what are the different types of tests you perform in system testing?

1133


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

1970


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.

2268


Suppose I want fail that check point? How can you do that?

1078


can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?

1940