Skip to main content
Version: Next

STD: Multiple Wells Combined Outcome Rule (MWCOMBOUT)

Version: v1.0.0 Status: Draft SRS Source: docusaurus/docs/srs/rules/rule-multiple-wells-combined-outcome.md Rule Name: MULTIPLE_WELLS_COMBINED_OUTCOME Domain: RULES-MWCOMBOUT


Overview

This document specifies tests for the Multiple Wells Combined Outcome rule using decision tables and test vectors. The rule gates combined outcome assignment based on whether the combined outcome has multiple mix results (count > 1).

Rule Characteristics:

  • Pure business logic (no UI)
  • Simple threshold check (mix results count > 1)
  • Binary output (allow/deny assignment)
  • Fixed threshold (not configurable)

Test Method: TM-API (per Test Plan - Rules use automated API tests)

Verification Approach: Rule verification is performed using data-driven test vectors. Each row in a decision table represents a complete verification scenario with defined inputs and expected outputs. This format enables exhaustive condition coverage while remaining concise and auditable.


Coverage Summary

REQ IDTitleConditionsTest VectorsCoverageGaps
REQ-RULES-MWCOMBOUT-001Multiple Wells Combined Outcome Rule Execution58100%None

Totals: 1 REQ, 5 Conditions, 8 Test Vectors, 100% Coverage


REQ-RULES-MWCOMBOUT-001: Multiple Wells Combined Outcome Rule Execution

Input Variables

VariableTypeValid ValuesDescription
combined_outcomeobjectConfigured outcomeCombined outcome configuration
wellobjectWell with associationWell associated with combined outcome
mix_results_countint0, 1, 2, 3, ...Number of mix results for the combined outcome

Output Variables

VariableTypeDescription
outcome_assignedboolWhether the combined outcome was assigned to the well

Decision Table: Rule Identification

TVRule NameValidCovers
TV-001-001MULTIPLE_WELLS_COMBINED_OUTCOMEtrueAC: Rule identification

Decision Table: Mix Results Count Threshold

TVmix_results_countoutcome_assignedCovers
TV-001-0020falseAC: Edge case - no results
TV-001-0031falseAC: Single result - no assignment
TV-001-0042trueAC: Boundary - minimum for assignment
TV-001-0053trueAC: Multiple results - assignment
TV-001-006100trueAC: Large count - assignment

Decision Table: Combined Scenarios

TVScenariomix_results_countoutcome_assignedwell_receives_outcomeCovers
TV-001-007Single sample data1falseNoAC: Prevents false-positive combined outcomes
TV-001-008Multi-well aggregation2trueYesAC: Proper multi-sample aggregation

Automation Status

REQ IDTest VectorsAutomation StatusNotes
REQ-RULES-MWCOMBOUT-001TV-001-001 to TV-001-008AutomatedData-driven threshold tests

Traceability to Existing Tests

RequirementJira TestsConfigStatus
REQ-RULES-MWCOMBOUT-001BT-5131v30Existing
REQ-RULES-MWCOMBOUT-001BT-5707v30Existing
REQ-RULES-MWCOMBOUT-001BT-5632v30Existing
REQ-RULES-MWCOMBOUT-001BT-5687v30Existing
REQ-RULES-MWCOMBOUT-001BT-5128v2Existing
REQ-RULES-MWCOMBOUT-001BT-5130v2Existing
REQ-RULES-MWCOMBOUT-001BT-5135v2Existing

Gap Analysis

Identified Gaps

GapRequirementDescriptionPriorityOwner
None-All acceptance criteria covered by test vectors--

Open Questions from SRS

IDQuestionTest Impact
OQ-001Should the >1 threshold be configurable?If made configurable, add test vectors for threshold variation
OQ-002Error handling for count = 0 not specifiedTV-001-002 assumes no assignment; verify behavior