mathare
12 years agoContributor
Emailing summary results at end of test run
I have a project suite containing several projects and would like to email a summary of the test results at the end of the test run. I have read the help topics on emailing test results and also on programmatically obtaining the status of test logs so my plan was to have a script that runs after all the proper tests have been run, looping over the individual test logs recording the status to the log of the currently running test and then at the end programmatically email that final test log (summarising the status of other tests).
So I would run Test_A, Test_B etc then have a Summary test that records the status of Test_A, Test_B etc in the Summary test log and emails that Summary test log out.
However, I don't know how to loop through all the projects in my project suite. I can loop through all the logs within a given project but I don't know how to loop through the projects themselves. Can anyone help?
Alternatively has anyone any better suggestions for creating a summary report? I don't want all the log details, just an OK/Warning/Error status for each test really.
So I would run Test_A, Test_B etc then have a Summary test that records the status of Test_A, Test_B etc in the Summary test log and emails that Summary test log out.
However, I don't know how to loop through all the projects in my project suite. I can loop through all the logs within a given project but I don't know how to loop through the projects themselves. Can anyone help?
Alternatively has anyone any better suggestions for creating a summary report? I don't want all the log details, just an OK/Warning/Error status for each test really.