Forum Discussion
Hi,
I am trying to get the below Information once the Test Suite Execution is completed.Is their any built in function available? I am exporting test log against each test case. one unit may contain 3 test case. such a way i scripted to export the test log in HTML format. Test Log result folder consist of test.xml and root.xml thru this i can get status of the test log result and test script name after XML parsing but I couldn't get error, pass and warning counts. How do i get those informations?
function AppExportResultsHTML(scriptName)
{
var FileName;
var FilePath;
var CompleteFileName;
FileName = scriptName + Utilities.FormatDateTime("mm_dd_yyyy_hh_mm_ss_zz_z_", Utilities.Now());
FilePath = "C:\\TestResults\\";
CompleteFileName = FilePath + FileName ;
if (!(Log["SaveResultsAs"](CompleteFileName, 1)))
{
Log["Message"]("CompleteFileName: " + CompleteFileName);
Log["Error"]("Could not generate unique log file.");
}
}
Test logs are getting displayed in accumalated fasion.
Unit-name | Testcase-Name | no.of.steps | no.of.steps in Test-Log Results |
Driver Script | login | 3 | 3 |
| Transaction | 5 | 3+5 |
| log-off | 7 | 3+5+7 |
Once test logs are exported as HTML under Test result -> Testcase-Name+TimeStamp folder which contains Testlog.xml (having step wise execution information) and root.xml (having unit name and status of test log).
Obstacle
1. Accumalated test log results.
2. Lack of test summary information.
Related Content
Recent Discussions
- 2 days ago
- 2 days ago
- 6 days ago