| || |
How to Upload a txt file to the Quality Center ?
I am Using QTP 9.5 with QC 9.2.
I need to upload txt files to QC.
Can you please tell me How this can be done?
Thanks in Advance
Re: How to Upload a txt file to the Quality Center ?
'''''Try this code'''''
Public Function SaveAttachment(LocalFilePath, FileDescription)
Set TestList =TDUtil.TDConnection.TestFactory.NewList("SELECT * FROM TEST WHERE TS_NAME = '" & TestName & "'")
If TestList.Count = 0 Then
Set Attachments = TestList(1).Attachments
Set Attachment = Attachments.AddItem(Null)
Attachment.FileName = LocalFilePath
Attachment.Description = FileDescription
Attachment.Type = 1'TDATT_FILE
Attachment.Post ' Commit changes