]
Michael Anstis moved GUVNOR-1589 to DROOLS-1984:
------------------------------------------------
Project: Drools (was: Guvnor)
Key: DROOLS-1984 (was: GUVNOR-1589)
Workflow: GIT Pull Request workflow (was: classic default workflow)
Component/s: Test Scenarios Editor
(was: Test Scenarios)
Affects Version/s: 5.5.0.Final
(was: drools-5.2.0.Final)
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
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)