[JBoss JIRA] (DROOLS-2010) Add queries w/assign variables in "Expect" section of Test Scenario editor
by Toni Rikkola (Jira)
[ https://issues.jboss.org/browse/DROOLS-2010?page=com.atlassian.jira.plugi... ]
Toni Rikkola commented on DROOLS-2010:
--------------------------------------
Adding link to the new test scenarios in case this idea needs to be taken under consideration there.
> Add queries w/assign variables in "Expect" section of Test Scenario editor
> --------------------------------------------------------------------------
>
> Key: DROOLS-2010
> URL: https://issues.jboss.org/browse/DROOLS-2010
> Project: Drools
> Issue Type: Enhancement
> Components: Scenario Simulation and Testing, Test Scenarios Editor
> Affects Versions: 6.5.0.Final
> Environment: Tomcat 9 (CLI), Win7 x64, Google Chrome
> Reporter: Russell Morrisey
> Assignee: Toni Rikkola
> Priority: Major
>
> In the Test Scenario editor, I want to be able to set up "Expect" clauses that chain together, like this:
> {code:java}
> $r1: A fact of type FieldValidation has values:
> - fieldCode = "countryCode"
> A fact of type FactAttributeValue has values:
> - fieldValidation = $r1
> - type = "allowedValue"
> - value = "US"
> {code}
> In this case, I want to query for the 1st object, store it in a variable, and use the variable value to verify the 2nd clause of the test. This is necessary to verify relationships between objects, such as master-detail relationships. It seems like the current Test Scenario editor interface does not support this.
> The following rule snippet produces facts like those above, which seem untestable in the current Test Scenario editor:
> {code:java}
> when
> ...
> then
> FieldValidation $r1 = new FieldValidation("countryCode")
> insertLogical( $r1 )
> insertLogical( new FactAttributeValue($r1, "allowedValue", "US") )
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 6 months
[JBoss JIRA] (DROOLS-2010) Add queries w/assign variables in "Expect" section of Test Scenario editor
by Toni Rikkola (Jira)
[ https://issues.jboss.org/browse/DROOLS-2010?page=com.atlassian.jira.plugi... ]
Toni Rikkola updated DROOLS-2010:
---------------------------------
Component/s: Scenario Simulation and Testing
> Add queries w/assign variables in "Expect" section of Test Scenario editor
> --------------------------------------------------------------------------
>
> Key: DROOLS-2010
> URL: https://issues.jboss.org/browse/DROOLS-2010
> Project: Drools
> Issue Type: Enhancement
> Components: Scenario Simulation and Testing, Test Scenarios Editor
> Affects Versions: 6.5.0.Final
> Environment: Tomcat 9 (CLI), Win7 x64, Google Chrome
> Reporter: Russell Morrisey
> Assignee: Toni Rikkola
> Priority: Major
>
> In the Test Scenario editor, I want to be able to set up "Expect" clauses that chain together, like this:
> {code:java}
> $r1: A fact of type FieldValidation has values:
> - fieldCode = "countryCode"
> A fact of type FactAttributeValue has values:
> - fieldValidation = $r1
> - type = "allowedValue"
> - value = "US"
> {code}
> In this case, I want to query for the 1st object, store it in a variable, and use the variable value to verify the 2nd clause of the test. This is necessary to verify relationships between objects, such as master-detail relationships. It seems like the current Test Scenario editor interface does not support this.
> The following rule snippet produces facts like those above, which seem untestable in the current Test Scenario editor:
> {code:java}
> when
> ...
> then
> FieldValidation $r1 = new FieldValidation("countryCode")
> insertLogical( $r1 )
> insertLogical( new FactAttributeValue($r1, "allowedValue", "US") )
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 6 months
[JBoss JIRA] (DROOLS-2013) BRM QA and automated rules testing
by Toni Rikkola (Jira)
[ https://issues.jboss.org/browse/DROOLS-2013?page=com.atlassian.jira.plugi... ]
Toni Rikkola closed DROOLS-2013.
--------------------------------
Resolution: Explained
New Test scenarios has this on the road map. The work will cover all the test types the workbench supports.
> BRM QA and automated rules testing
> ----------------------------------
>
> Key: DROOLS-2013
> URL: https://issues.jboss.org/browse/DROOLS-2013
> Project: Drools
> Issue Type: Enhancement
> Components: Test Scenarios Editor
> Affects Versions: 5.5.0.Final
> Environment: Mac OS X 5, JVM6, JBoss BRMS 5.1
> Reporter: Serge Emmanuel Pagop
> Assignee: Toni Rikkola
> Priority: Major
>
> There is possible in BRM QA Tab in JBoss BRMS to create test scenarios. Will be great to give the possible to configure all these test scenarios to run automatically like in hudson or jenkins (e.g. in the midnight)
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 6 months
[JBoss JIRA] (DROOLS-2017) Running Test Scenarios : Facility Needed to Output Results to File for Historical Reporting
by Toni Rikkola (Jira)
[ https://issues.jboss.org/browse/DROOLS-2017?page=com.atlassian.jira.plugi... ]
Toni Rikkola closed DROOLS-2017.
--------------------------------
Resolution: Explained
The new Test Scenarios editor has this feature on the todo list.
> Running Test Scenarios : Facility Needed to Output Results to File for Historical Reporting
> -------------------------------------------------------------------------------------------
>
> Key: DROOLS-2017
> URL: https://issues.jboss.org/browse/DROOLS-2017
> Project: Drools
> Issue Type: Enhancement
> Components: Test Scenarios Editor
> Environment: Mac OS X 10.5.5, Firefox 3.0.3
> Reporter: Ralph Jeffery
> Assignee: Toni Rikkola
> Priority: Major
>
> When running Test Scenarios, a facility is required to output the results to a file. This is needed so that testing results can be retained as evidence of tests run. Taking screen shots from the browser is not a solution.
> The output would need to show the version numbers of the Test Scenarios used and the Rules fired.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 6 months