I'm trying to create a vbscript file to do an hourly backup of my object repository.
The script should be done using the OTA API and accomplish the following:
1) Authenticate with QC username, password, server, domain and project.
2) Download the object repository in the test resources module to the local filesystem
I have been unable to find any sample code related to this so far and I would appreciate any guidance.
You'd have to look at the "HP Quality Center Entity Dependencies API Reference" help file, but I can't say more as I haven't used that API (yet).
If you never used it, then how do you know that's the API I need? lol Sorry, having a bad day.
What kind of repository do you have..?
-- Here to Learn and share ---
That's QTP's Object Repository.
<font class="small">Code:</font><hr /><pre>
strResourceName = """Object Repository.tsr"""
Set QC = QCUtil.QCConnection
Set QCResource = QC.QCResourceFactory
Set ResourceFilter = QCResource.Filter
ResourceFilter.Filter("RSC_NAME") = strResourceName
Set ResourceList = QCResource.NewList(ResourceFilter.Text)
Set theResource = ResourceList.Item(1)
theResource.DownloadResource "C:\Repository", True