aa_test::get_test_doc (private)
aa_test::get_test_doc
Defined in packages/acs-automated-testing/tcl/aa-test-procs.tcl
Returns an XML doc with statistics for the most recent test results on the server.
- Author:
- Peter Marklund
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: # Open XML document set xml_doc "<?xml version=\"1.0\"?> <test_report>\n" set testcase_count [llength [nsv_get aa_test cases]] append xml_doc " <testcase_count>$testcase_count</testcase_count>\n" db_foreach result_counts { select result, count(*) as result_count from aa_test_results group by result } { set result_counts($result) $result_count } foreach result [array names result_counts] { append xml_doc " <result_count result=\"$result\">$result_counts($result)</result_count>\n" } db_foreach failure_counts { select testcase_id, count(*) as failure_count from aa_test_results where result = 'fail' group by testcase_id } { set failure_counts($testcase_id) $failure_count } foreach testcase_id [array names failure_counts] { append xml_doc " <testcase_failure testcase_id=\"$testcase_id\">$failure_counts($testcase_id)</testcase_failure>\n" } # Close XML document append xml_doc "</test_report>\n" return $xml_docXQL Not present: Generic, PostgreSQL, Oracle