Quantcast
Channel: All Quality Center / ALM Practitioners Forum posts
Viewing all articles
Browse latest Browse all 14708

Re: how to download xlsm file from Test Resource of Quality center to Local machine using QTP.

$
0
0

Thanks Trudy,

 

 

I tried this code and its working fine:

 

QCGetResource "Userform.xlsm","C:\Temp"

Function QCGetResource(resourceName,saveTo)
Set qcConn = QCUtil.QCConnection
Set oResource = qcConn.QCResourceFactory
Set oFilter = oResource.Filter
  oFilter.Filter("RSC_FILE_NAME") = resourceName

Set oResourceList = oFilter.NewList

If oResourceList.Count = 1 Then
  Set oFile = oResourceList.Item(1)
  oFile.FileName = resourceName
  oFile.DownloadResource saveTo, True
End If

Set qcConn = Nothing
Set oResource = Nothing
Set oFilter = Nothing
Set oFlieList = Nothing
 Set oFile = Nothing
End Function


Viewing all articles
Browse latest Browse all 14708

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>