[jboss-jira] [JBoss JIRA] (DROOLS-2008) Test Scenarios: Ability to fail a Guvnor Test Scenario if any unexpected rules are fired when the test scenario is executed
Daniele Zonca (Jira)
issues at jboss.org
Tue Jan 15 11:35:08 EST 2019
[ https://issues.jboss.org/browse/DROOLS-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13682451#comment-13682451 ]
Daniele Zonca commented on DROOLS-2008:
---------------------------------------
[~kkufova]
We cannot add assertion on rule fired or not. You can check the consequences of a rule but not just the fact that has been executed.
So yes it is still valid in new Test Scenario too.
[~ibek] [~tirelli] What do you think about that? Is it something to be planned? If yes, I think we should do it after the "coverage" page ( https://issues.jboss.org/browse/DROOLS-3516 ) as evolution of it. We can think about add there conditions/assertions on rule execution like "I expect the rule XYZ will be fired", "I expect the rule XYZ will be fired once", "Rule XYZ once and ABC never" etc.
> Test Scenarios: Ability to fail a Guvnor Test Scenario if any unexpected rules are fired when the test scenario is executed
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: DROOLS-2008
> URL: https://issues.jboss.org/browse/DROOLS-2008
> Project: Drools
> Issue Type: Enhancement
> Components: Scenario Simulation and Testing, Test Scenarios Editor
> Reporter: Andrea Lee
> Assignee: Toni Rikkola
> Priority: Minor
>
> Example scenario:
> Existing Rules: Rule A, Rule B, Rule C.
> Test Scenario expectation: Expect Rule A to fire once.
> I would like to have the ability to specify that this Test Scenario should fail if any other rule in addition to Rule A is fired WITHOUT having to specify the following additional expectations: Expect Rule B to not fire, Expect Rule C to not fire.
> I have posted this in the user mailing list as well: http://n3.nabble.com/Guvnor-Test-Scenario-Expectations-td722429.html#a722429
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list