Uploading resource (OTA)
I've been trying to upload a resource file to QC using the OTA but I've run into a problem. The error that I'm getting is as follows:
[ QUOTE ]
The external resource could not be uploaded to the QualityCenter server repository.
[/ QUOTE ]
The resource itself is version controlled but it is being checked out every time. Here is the code that's doing the uploading:
<font class="small">Code:</font><hr /><pre>
TDAPIOLELib.IResourceStorage res = (TDAPIOLELib.IResourceStorage)resource;
It appears that's it doesn't matter what language it's in. I tried this example using QTP to upload a resource and got the same error
Any help is greatly appreciated
Re: Uploading resource (OTA)
I think I know your issue. You have to specify the FileName & Path separately as below.
Let's say your file is located here. "C:\Test\UploadFile.txt"
QCResource.FileName = "UploadFile.txt"
ResourcePath = "C:\Test"
res.UploadResource ResourcePath, true