mailgsp-sbfrm
12 years agoNew Contributor
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
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