Hi Vivek,

You will have to export the QTP datatable to a local path and use QC code to
upload the same to QC.

sample code to upload to QC run attachments below
Public Sub UdsUploadOutput(strPathName)
    Dim obj_Afact
    Dim obj_Att

    Set obj_Afact = QCUtil.Currentrun.Attachments
    Set obj_Att = obj_Afact.AddItem(Null)
    obj_Att.FileName = strPathName
    obj_Att.Type = 1
    obj_Att.Post

    Set obj_Afact = nothing
    Set obj_Att = nothing
End Sub

Here 'Input Parameters : Output file with path

On Mon, Oct 20, 2008 at 10:31 AM, Vivek Prakash <[EMAIL PROTECTED]>wrote:

> Hi All,
>
> I need your help in exporting datatable to an excel file which is there in
> QC.
> I tried datatable.export, however, its giving error that file not found.
> QTP is connected with the appropriate project in QC and other files like
> XML or OR are getting connected properly.
> Just having issues with datatable-excel export in QC.  May be I am not
> doing it correctly.
> Please help.
>
> Regards,
> Vivek
>
> >
>


-- 
Ganesh Muralidharan
Wipro Technologies
Mob. : 9341023574

'God Never Forgets'

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to