Forum Discussion

mailgsp-sbfrm's avatar
mailgsp-sbfrm
New Contributor
12 years ago

SaveResultsAs Method: XML export is missing index.htm file

Hello fellow Testers,



I use the SaveResultsAs Method in order to export Test Results into specific formats. The .mht export works just fine. However, XML export consistently misses the "index.htm" file, required to present the test results in a web browser.



I have tried to call the method directly (using the Call Object Method Keyword Test Action), and I have also used it in scripts (JScript). Both seem to work fine for .mht export, but still, no "index.htm" during XML export.



Please find below my script. Please also note that I tried using all optional parameters, using all optional parameter formats (integer or string), however without any luck.



function Save_Logs_01_mod_script()

{

  //Set File Name Format to YYYY-MM-DD_HH-MM-SS

  ProjectSuite.Variables.NowValueString = aqConvert.DateTimeToFormatStr(aqDateTime.Now(), "20%y-%m-%d_%H-%M-%S");

Log.SaveResultsAs("C:\\Results\\XML\\" + ProjectSuite.Variables.NowValueString + "\\" + ProjectSuite.Variables.NowValueString + ".xml");

}



The desired path gets built without problem, by the way.



Does anyone know why this is happening? I am not sure if this is a bug, or if I should be doing something differently.



Thanks in advance!



Manolis





  • Additional info:



    Here are the contents of the XML test results directory. As you can see, the index.htm file is missing.



    The filenames with the strange names also seem to be XML files without extension. They seem to correspond to specific tests in in my project. Given their names, however, finding which is which can be tricky!



    2014-03-27_13-02-20.xml    1.332

    Picture1.desc    90

    Picture1.png    39.890

    RootLogData.dat    28.190

    {09C13DBC-60DB-4EE4-8B7D-401BE70B8375}    1.148

    {0C048F27-6F7F-4C0C-8988-2550CA8AFCBE}    12.816

    {144FA2A0-1F69-4DE1-ADBB-63E4DD6BDBEF}    15.364

    {1D695520-2550-49A5-89BE-D23BCA5C2CBD}    1.150

    {3BC20930-3695-48C6-8E6A-D8A634B50CE1}    1.150

    {460F2C9E-59A3-4052-9AB7-17BDB7390F2E}    17.705

    {526AC1C8-36EB-4D23-B4B5-1CAE548B516A}    1.920

    {65551D7F-0E5E-42C0-A126-D56F6DE77184}    1.150

    {723702C7-319A-4565-93FE-B9517CD196E0}    3.792

    {748A1FEB-00C0-4052-864A-1DA1EF628660}    2.432

    {7AA49D7F-1696-41D9-848E-22D463DABF95}    1.133

    {BC4E69D7-580B-4DAC-BA12-BEBE7653AFC1}    1.147

    {C3BBFE66-8DF3-4D7E-9DEA-6FC7109AE520}    45.821

    {C455F30F-AC24-4E03-995D-7E957CF6B4B9}    3.229

    {DC9CC030-D253-460C-8D70-6D59E77A28AE}    1.151

    {E530338A-FD5C-4AE0-BD9D-7BCF129150C0}    12.292

    {E8056CDF-35AD-40C6-8434-5F6E8FFB7792}    76.202

    {FF562D09-7F30-4969-872B-980A52A231F0}    36.202
  • Oops, that was my mistake. XML export saves no index.htm file, I was accidentally reading the field for HTML export...