Bug 1041303 - Test scenario doesn't reflect changes in rules until the project is re-built
Summary: Test scenario doesn't reflect changes in rules until the project is re-built
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: CR1
: 6.0.0
Assignee: Toni Rikkola
QA Contact: Jiri Locker
URL:
Whiteboard:
Depends On:
Blocks: 1180074
TreeView+ depends on / blocked
 
Reported: 2013-12-12 14:22 UTC by Jiri Locker
Modified: 2015-01-08 09:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1180074 (view as bug list)
Environment:
Last Closed: 2014-08-06 20:18:53 UTC
Type: Bug


Attachments (Terms of Use)

Description Jiri Locker 2013-12-12 14:22:21 UTC
Description of problem:
When test scenario is run it seems to use rules in the state when the project was last built. That means the test scenario ignores changes in rules *saved* by the user until project build is triggered and can be very confusing or mislead the user to believe that his changes in rules didn't break tests.

Version-Release number of selected component (if applicable):
ER5

How reproducible:
-

Steps to Reproduce:
1. go to mortgages
2. open Underage rule, change applicant age to 100, save the rule
3. open Are they old enough test scenario and run it (success is expected)
4. increase applicant age to 30 and run the test scenario

Actual results:
Test fails although the applicant age interval was increased to 100 and the application should be disapproved. If you build the project now and run the test again it will pass.

Expected results:
Test scenarios should always run with latest version of rules.

Additional info:
I think this may be caused by the change in triggering incremental build that also caused bug 1034785.

Comment 2 Jiri Locker 2014-01-10 13:33:23 UTC
I'm afraid the fix is incomplete because https://github.com/droolsjbpm/guvnor/commit/3f0e996170d50825f650fdf3e130ec0aa0f44c4e has not been cherry-picked to 6.0.x (and it cannot be as it contains changes related to bug 1045314).

Comment 3 Toni Rikkola 2014-01-10 14:23:59 UTC
1045314 is now fixed and cherry-picked into 6.0.x

Comment 4 Jiri Locker 2014-01-10 14:35:45 UTC
I have verified the fix is working for .rdrl and .gdst. I will wait for CR1 to check the rest of rule types.

Comment 5 Jiri Locker 2014-01-22 13:01:41 UTC
Fix completed in CR1.


Note You need to log in before you can comment on or make changes to this bug.