Forum Discussion

sanjay0288's avatar
sanjay0288
Frequent Contributor
13 years ago

Help needed in saving the test results to an xml file programatically

Hi,

   I tried using the Log.saveResults as method; but i can save only the execution summary as a xml file. What I want is to save the Test Log items the verification points to be saved in the xm l format. Is there any method to achive this programatically?

1 Reply

  • You can add a new event function for the onLogCheckpoint (or any other log event for that matter).

    And then you can save the results in whatever format you like via the function that triggers from this event.



    Heres a function I use to log events in a table (table columns are [Time][Error message]):




    function OnError_OnLogError(Sender, LogParams)


    {




    Project.Variables.ErrorDescription.RowCount = Project.Variables.ErrorDescription.RowCount+1;


      Project.Variables.ErrorDescription.Item(0,Project.Variables.ErrorDescription.RowCount-1) = aqConvert.DateTimeToStr(aqDateTime.Now());


      Project.Variables.ErrorDescription.Item(1,Project.Variables.ErrorDescription.RowCount-1) = LogParams.Str;


      


    }