Nanook

Nanook

  • Docs
  • API
  • GitHub

›Model Decision

Logger

  • Logger Interface
  • Logger Memory

Model

  • Table Interface
  • Testcase Definition Interface
  • Todo Meta
  • Todo Static
  • Todo Generator
  • Todo Reference

Model Decision

  • Base Section Definition
  • Base Single Row Section Definition
  • Execute Section Definition
  • Never Execute Section Definition
  • Multiplicity Section Definition
  • Summary Section Definition
  • Field Section Definition
  • Field Sub Section Definition
  • Multi Row Section Definition
  • Tag Section Definition
  • Filter Section Definition
  • Generator Switch Section Definition
  • Testcase Definition Decision
  • Table Decision
  • Section Types
  • Validate Double
  • Validate Helper
  • Validate Missing

Model Matrix

  • Testcase Definition Matrix
  • Table Matrix

Importer xlsx

  • Importer xlsx

File Processor

  • Importer Interface
  • Parser Interface
  • Interface Filter
  • Simple Array Filter
  • Simple Array Ignore Filter
  • Parser Constants
  • Parser Decision Constants
  • Parser Decision
  • Parser Matrix Constants
  • Parser Matrix
  • Parser Specification Constants
  • Parser Specification
  • Parser Specification Converter

Data Generator

  • Data Generator Interface
  • Data Generator Base
  • Service Registry
  • Generator Faker

Processor

  • Interface Processor
  • Interface Writer
  • Node
  • Reference
  • Testcase Data
  • Processor
  • writeMetaData
  • writeStaticData
  • utilCartesian

Testcase Definition Decision

TestcaseDefinitionDecision ⇐ TestcaseDefinitionInterface

A test case is one column in the test case part. This is the implementation for the decision table.

Kind: global class
Extends: TestcaseDefinitionInterface

  • TestcaseDefinitionDecision ⇐ TestcaseDefinitionInterface
    • .isPartOfCompletion
    • .data
    • .execute
    • .name
    • .clone() ⇒ object
    • .createTags() ⇒ array
    • .createFilter() ⇒ array
    • .createGeneratorSwitches() ⇒ array
    • ._isTrue(val) ⇒ boolean
    • .createTodos() ⇒ object
    • ._getGeneratorCommandForSubSection(subSection) ⇒ string
    • ._createGeneratorTodo(subSection, generatorCmd, key) ⇒ object
    • ._createReferenceTodo(subSection, generatorCmd, key)
    • ._createStaticValueTodo(subSection, generatorCmd, key) ⇒ object
    • ._createMultirowSectionTodo(section) ⇒ array
    • .calculate(sectionRowId, rowIds) ⇒ number
    • .setValue(rowId, value)
    • .getValue(rowId) ⇒ string
    • .validate(section) ⇒ array

testcaseDefinitionDecision.isPartOfCompletion

Defines if this testcase is included into the completness computation

Kind: instance property of TestcaseDefinitionDecision

testcaseDefinitionDecision.data

The data of this test case

Kind: instance property of TestcaseDefinitionDecision

testcaseDefinitionDecision.execute

Should this test case be executed or is it only for a reference

Kind: instance property of TestcaseDefinitionDecision

testcaseDefinitionDecision.name

The name of this testcase. With this name the testcase could be found in the table

Kind: instance property of TestcaseDefinitionDecision

testcaseDefinitionDecision.clone() ⇒ object

Clone the current testcase definition.

Kind: instance method of TestcaseDefinitionDecision
Returns: object - A clone of this test case definition.

testcaseDefinitionDecision.createTags() ⇒ array

Returns all the tags found in this test case

Kind: instance method of TestcaseDefinitionDecision
Returns: array - tags An Array with all the found tags

testcaseDefinitionDecision.createFilter() ⇒ array

Returns all the filter found in this test case

Kind: instance method of TestcaseDefinitionDecision
Returns: array - filter An Array with all the found filter

testcaseDefinitionDecision.createGeneratorSwitches() ⇒ array

Returns a list of generator names which should not be executed

Kind: instance method of TestcaseDefinitionDecision
Returns: array - generatorNames An Array with alle the generator names to be switched off for this test case

testcaseDefinitionDecision._isTrue(val) ⇒ boolean

Checks if the given string contains a valid true value

Kind: instance method of TestcaseDefinitionDecision
Returns: boolean - res TRUE if the value is a valid boolean true value.

ParamTypeDescription
valstringThe expression to check

testcaseDefinitionDecision.createTodos() ⇒ object

Create all the todos for this testcase definition const todos = { generators :[genTodo,], references: [refTodo,], static: [staticData], }

Kind: instance method of TestcaseDefinitionDecision
Returns: object - todos An object with all the todos by there type

testcaseDefinitionDecision._getGeneratorCommandForSubSection(subSection) ⇒ string

Gets the generator command for a FieldSubSection

Kind: instance method of TestcaseDefinitionDecision
Returns: string - generatorCmd The generator command from the sub section

ParamTypeDescription
subSectionobjectThe FieldSubSection

testcaseDefinitionDecision._createGeneratorTodo(subSection, generatorCmd, key) ⇒ object

Creates the generator todo

Kind: instance method of TestcaseDefinitionDecision
Returns: object - todo A generator Todo

ParamTypeDescription
subSectionobjectThe current FieldSubSection
generatorCmdstringThe generator command
keystringThe key of the value in the subSection

testcaseDefinitionDecision._createReferenceTodo(subSection, generatorCmd, key)

Creates a reference todo

Kind: instance method of TestcaseDefinitionDecision

ParamTypeDescription
subSectionobjectThe current FieldSubSection
generatorCmdstringThe reference command
keystringThe key of the value in the subSection

testcaseDefinitionDecision._createStaticValueTodo(subSection, generatorCmd, key) ⇒ object

Creates the todo for static values

Kind: instance method of TestcaseDefinitionDecision
Returns: object - todo A static Todo

ParamTypeDescription
subSectionobjectThe current FieldSubSection
generatorCmdstringThe generator command
keystringThe key of the value in the subSection

testcaseDefinitionDecision._createMultirowSectionTodo(section) ⇒ array

Create a meta todo

Kind: instance method of TestcaseDefinitionDecision
Returns: array - todos Aa array of meta Todos

ParamTypeDescription
sectionobjectThe current multiRowSection

testcaseDefinitionDecision.calculate(sectionRowId, rowIds) ⇒ number

Claculates how many entries per section are defined

Kind: instance method of TestcaseDefinitionDecision
Returns: number - count The number of entries

ParamTypeDescription
sectionRowIdstringThe id of the section containing these rows
rowIdsarrayAll the arrays of this section

testcaseDefinitionDecision.setValue(rowId, value)

Set a value for a row in this testcase

Kind: instance method of TestcaseDefinitionDecision

ParamTypeDescription
rowIdstringThe rowId for this value
valuestringThe value to be set

testcaseDefinitionDecision.getValue(rowId) ⇒ string

Set a value for a row in this testcase

Kind: instance method of TestcaseDefinitionDecision
Returns: string - value The value of this row id

ParamTypeDescription
rowIdstringThe rowId for this value

testcaseDefinitionDecision.validate(section) ⇒ array

Validates this section definition.

  • A testcase must have a name
  • A fieldSection must have at least one subSection
  • If mandatory = true for a section, it must have at least one entry
  • if multiple = false it must have only one entry per section

Kind: instance method of TestcaseDefinitionDecision
Returns: array - issues An array of issues found

ParamTypeDescription
sectionobjectThe section to be validated
← Generator Switch Section DefinitionTable Decision →
  • TestcaseDefinitionDecision ⇐ TestcaseDefinitionInterface
    • testcaseDefinitionDecision.isPartOfCompletion
    • testcaseDefinitionDecision.data
    • testcaseDefinitionDecision.execute
    • testcaseDefinitionDecision.name
    • testcaseDefinitionDecision.clone() ⇒ object
    • testcaseDefinitionDecision.createTags() ⇒ array
    • testcaseDefinitionDecision.createFilter() ⇒ array
    • testcaseDefinitionDecision.createGeneratorSwitches() ⇒ array
    • testcaseDefinitionDecision._isTrue(val) ⇒ boolean
    • testcaseDefinitionDecision.createTodos() ⇒ object
    • testcaseDefinitionDecision._getGeneratorCommandForSubSection(subSection) ⇒ string
    • testcaseDefinitionDecision._createGeneratorTodo(subSection, generatorCmd, key) ⇒ object
    • testcaseDefinitionDecision._createReferenceTodo(subSection, generatorCmd, key)
    • testcaseDefinitionDecision._createStaticValueTodo(subSection, generatorCmd, key) ⇒ object
    • testcaseDefinitionDecision._createMultirowSectionTodo(section) ⇒ array
    • testcaseDefinitionDecision.calculate(sectionRowId, rowIds) ⇒ number
    • testcaseDefinitionDecision.setValue(rowId, value)
    • testcaseDefinitionDecision.getValue(rowId) ⇒ string
    • testcaseDefinitionDecision.validate(section) ⇒ array
Nanook
Docs
TutorialsGuide
More
ImprintPrivacy PolicyGitHubStar
Copyright © 2022 Nanook.io