Skip Navigation LinksHome Page > Forums > RemoteLaunch Forums > RemoteLaunch Issues & Que... > RemoteLaunchX Regular exp...
How can I interpret 'Success' as Success using regex in config.properties?
I have tried the following in config.properties:
fail-regex = .*
pass-regex = .*(Success).*
caution-regex = .*(Warning|Caution).*
blocked-regex = .*(Blocked).*
But, Spira then interprets 'Success' as failed.
I noticed that I was a bit brief in my original post.
So, the problem is that I am running RemoteLaunchX.jar. In config.properties there is a set of regex that interprets result from the tests being run. Default is that Fail, Caution and Blocked all have defined results, e.g. 'Error'|'Fail' etc. And everything else is interpreted as Success. This is strange since e.g. running an Python-script that goes wrong, throws an excpetion or whatever, will be interpreted as Success.
I have therefore tried to specify Sucess, and default everything else to Fail, which is a more useful configuration. This does not work however, as I wrote in the original post.
Anyone has an idea why this does not work as expected?
The default status for RemoteLaunchX is 'Not Run', unless any of the regex's match, in which case that status is used.
However 'Not Run' test runs don't get listed in SpiraTest / SpiraTeam, which caused the confusion, because there were prior 'Passed' test runs.
Here's a follow-up to this issue:
Here's the way RemoteLaunchX and Spira interpret the test run results: The test run will get Pass, Fail, Caution, or Blocked if the corresponding regex matches. The status will default to Not Run if none of the regex expressions match.