[jboss-jira] [JBoss JIRA] (DROOLS-1984) Test Scenario Editor does not remove inserted facts

Jozef Marko (Jira) issues at jboss.org
Mon Jan 14 07:30:05 EST 2019


     [ https://issues.jboss.org/browse/DROOLS-1984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jozef Marko closed DROOLS-1984.
-------------------------------
    Resolution: Done


This wont't be implemented due to newer version of Test Scenarios editor (Preview).

> Test Scenario Editor does not remove inserted facts
> ---------------------------------------------------
>
>                 Key: DROOLS-1984
>                 URL: https://issues.jboss.org/browse/DROOLS-1984
>             Project: Drools
>          Issue Type: Bug
>          Components: Test Scenarios Editor
>    Affects Versions: 5.5.0.Final
>            Reporter: Jaroslaw Kijanowski
>            Assignee: Toni Rikkola
>            Priority: Major
>
> I have a declarative model (Person.sex, Policy.value) and a rule:
> rule "r2"
> dialect "mvel"
> when
> Person( sex == "male" )
> then
> Policy fact0 = new Policy();
> fact0.setValue( 100 );
> insert(fact0 );
> end
> The test is:
> insert Person(sex=male)
> expect Policy(value=100)
> Now I go to the QA section and click on "Run all scenarios" - test passed, cool.
> I change the test and set sex to female, go to the QA section and run all scenarios - test failed, cool.
> However if I go to the test scenario editor and run the test from there, I get a false positive:
> - the first time I run the test, it tells me that the test failed, cool
> - I change sex to male and the test passes
> - I change sex to female and the test passes which is bad ;) (however telling me that no rules fired)



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list