RemoteLaunchX Regular expressions not working

Tuesday, June 13, 2017 10:21:23 AM

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.

3 Replies
Tuesday, June 13, 2017 7:36:12 PM
Avatar
re: mats.andreasen@ascom.com on Tuesday, June 13, 2017 10:21:23 AM

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?

/Best regards

Thursday, June 15, 2017 2:26:59 PM
Avatar
re: mats.andreasen@ascom.com on Tuesday, June 13, 2017

Hi Mats

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.

Regards

Adam

Thursday, June 15, 2017 2:30:09 PM
Avatar
re: mats.andreasen@ascom.com on Tuesday, June 13, 2017

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.

Statistics
  • Started: Tuesday, June 13, 2017 10:21:23 AM
  • Last Reply: Thursday, June 15, 2017 2:30:09 PM
  • Replies: 3
  • Views: 400