You write the C_Nr value in a DataTable.Value
("ActionName","SheetName")

Later Export the entire excel sheet to a local drive
DataTable.ExportSheet "<Path\FileName.xls>" ,<DataSheetName>

-------------------------------------------------------------------------------------------------------------------------------------

Some earlier responses regarding the same issue

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

Hope this helps
Vikas


On Feb 10, 10:02 am, "[email protected]" <[email protected]>
wrote:
> Hi Friends,
>
> Can any one tell, I am using BPt framework..
>
> Data Table Componenrt - where I declared all the input parameters of
> excel columns.
>
> Component 2 - Eod of the Execution, I get C_Nr, which is  output for
> my next xomponent.
>
> I need to capture that C_Nr and at the same time I need to write it in
> excel.. Please Can any one help me on this.
>
> Thanx

--~--~---------~--~----~------------~-------~--~----~
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