[jboss-jira] [JBoss JIRA] (DROOLS-4878) Test Scenario: fix support for default stateless kieSession

Daniele Zonca (Jira) issues at jboss.org
Thu Jan 23 08:06:22 EST 2020


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

Daniele Zonca updated DROOLS-4878:
----------------------------------
    Description: 
How to reproduce:
- edit kmodule.xml and create only a default stateless session
{code:java}
<kmodule xmlns="http://www.drools.org/xsd/kmodule" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <kbase name="myKieBase">
    <ksession name="mySession" type="stateless" default="true"/>
  </kbase>
</kmodule>
{code}
- create a Rule test scenario and specify in Setting panel {{stateless}}
- run

Without the fix:
Test failed with this exception "Impossible to find a KieSession with name null"

With the fix:
The test should be able to run because that kmodule configuration is valid

  was:
How to reproduce:
- edit kmodule.xml and create only a default stateless session
{code:java}
<kmodule xmlns="http://www.drools.org/xsd/kmodule" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <kbase name="myKieBase">
    <ksession name="mySession" type="stateless" default="true"/>
  </kbase>
</kmodule>
{code}
- create a Rule test scenario and specify in Setting panel {{stateless}}
- run



> Test Scenario: fix support for default stateless kieSession
> -----------------------------------------------------------
>
>                 Key: DROOLS-4878
>                 URL: https://issues.redhat.com/browse/DROOLS-4878
>             Project: Drools
>          Issue Type: Bug
>          Components: Scenario Simulation and Testing
>            Reporter: Daniele Zonca
>            Assignee: Daniele Zonca
>            Priority: Major
>              Labels: drools-tools
>
> How to reproduce:
> - edit kmodule.xml and create only a default stateless session
> {code:java}
> <kmodule xmlns="http://www.drools.org/xsd/kmodule" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>   <kbase name="myKieBase">
>     <ksession name="mySession" type="stateless" default="true"/>
>   </kbase>
> </kmodule>
> {code}
> - create a Rule test scenario and specify in Setting panel {{stateless}}
> - run
> Without the fix:
> Test failed with this exception "Impossible to find a KieSession with name null"
> With the fix:
> The test should be able to run because that kmodule configuration is valid



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list