I have an XML results input that is indexed on per Test Suite. Each Test Suite has many Test Cases, and each Test Case has many Test Steps.
I am trying to create a report where we would like to find out which Test Suite, Case, and Steps failed and what was the error message. However, my search is coming back with all the test case names, and all messages regardless of failure or success. Is there a way to filter out just the failed status for a specific node?
Current search:
sourcetype=test_suite_result_xml testRunnerResults.testCase.status=FAILED | stats values(testSuiteName) values(testRunnerResults.testCase.testCaseName) values(testRunnerResults.testCase.testStepResults.result.message) by testRunnerResults.testCase.testCaseName
Sample XML data:
15:33:18 FAILED UserLifecycleManager 399799 Failing due to failed test step 15:33:18 FAILED f1d9066c-6744-462e-bf76-6eed9b610a5a CreateUser 1881 [GetApplicationAndBaseUrl] OK: took 279 ms GetApplicationAndBaseUrl 2 15:33:18.431 OK 279 [CreateNewUser] FAILED: took 281 ms
-> [Valid HTTP Status Codes] Response status code:400 is not in acceptable list of status codes CreateNewUser 9 15:33:20.622 FAILED 281 15:33:21 FINISHED f72a96f9-64f5-4ce4-861a-151e3aadd41f VerifyGroup 598 [GetApplicationAndBaseUrl] OK: took 256 ms GetApplicationAndBaseUrl 2 15:33:21.568 OK 256
↧