Upload files to Quality Center
I have browsed for scripting ideas as how i can upload any file from computer to Quality Center under test plan section in one of the folders.
in my case i am looking for script to upload the log file to quality center to save time of manual intervention.
Appreciate your help in advance
Re: Upload files to Quality Center
How are you going to identify what object in test plan you want to upload to?
Here's how to add an attachment to Step. The step is created brand new from my Run object
<font class="small">Code:</font><hr /><pre>
set stepFact = pRun.StepFactory ' step factory belonging to our run - pRun
set ObStep= stepFact.AddItem(Null) ' Creates a new step with blank fields that must then be populated
Set attf = ObStep.Attachments
Set att = attf.AddItem(Null)
att.Filename = vAttatchmentPath
' adding a file (type = 1. Use type = 2 if you want to add it as a URL
att.Type = 1 ' TDATT_FILE = 1 or TDATT_INTERNET = 2