TestExecute and Jenkins (Test Result)
Current I'm using the TestComplete plugin on Jenkins to execute a pipeline with tests being executed using TestExecute.
And I use the Jenkins API to get the JSON with the results, parse and store that in a Database, where I want to create a live dashboard.
The API is not getting the error message return from the TestExecute as the image:
I'm wondering if and how it's possible to fix that because the console of Jenkins receives the correct return. Does someone have any clue about that?
Also, I want to know if it is possible to return a "custom" message instead of the TestExecute default messages?
The idea was returning a customized message that makes clear where the test stopped without having to access the test report.
Solved! Go to Solution.
If I understand it properly, the Jenkins plugin for TestComplete/TestExecute is that it builds a wrapper around the command-line execution of tests via TestComplete/TestExecute. The command-line only returns certain exit codes based upon the execution. The actual error message, warning, etc., is not included in that return. So, a short answer to your question, as it stands right now, I don't think there is a way to get the actual error message that caused a failure.
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider