Hello,<div>There is a choice button that says &quot;allows these rules to fire&quot; and you give a list of rules =&gt; It will load only these rules in the session</div><div>there is no way to tell : &quot;fail if other rules then the one specified is fired&quot;</div>
<div>You should fill a jira for these functionnality</div><div>Nicolas<br><br><div class="gmail_quote">2010/4/15 AndreaLee <span dir="ltr">&lt;<a href="mailto:alee369@gmail.com">alee369@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I am evaluating Drools 5 and Guvnor for a project and have a question<br>
regarding Test Scenarios created in Guvnor.<br>
<br>
Is it possible to configure a Test Scenario in Guvnor to fail if a rule that<br>
is not explicitly expected is fired? I can not find a way of achieving this<br>
without creating another expectation that specifies Rule X is not fired.<br>
<br>
Example:<br>
<br>
I have rules Rule A, Rule B, Rule C.<br>
<br>
I have a Test Scenario which has the following expectation: Expect Rule A to<br>
fire once.<br>
<br>
I want this Test Scenario to fail if any other rule in addition to Rule A is<br>
fired without having to specify the following additional expectations:<br>
Expect Rule B to not fire, Expect Rule C to not fire.<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://n3.nabble.com/Guvnor-Test-Scenario-Expectations-tp722429p722429.html" target="_blank">http://n3.nabble.com/Guvnor-Test-Scenario-Expectations-tp722429p722429.html</a><br>
Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br></div>