NanookNanook
  • [ DOCS ]
  • [ API ]
  • [ BLOG ]
  • [ GITHUB ]

›File Processor

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

Parser Decision

ParserDecision ⇐ ParserBase

The parser implementation to parse decision tables.

Kind: global class
Extends: ParserBase

  • ParserDecision ⇐ ParserBase
    • .sectionHandler
    • .fieldNameSequence
    • .parse(sheetName, importer) ⇒ object
    • .getFieldName() ⇒ string
    • .parseForTestcases(table, sheetName, importer, testCaseStartColumn, startRow) ⇒ number
    • ._updateTestcaseExecute(table)
    • ._updateTestcaseNeverExecute(table)
    • ._getBoolean(val) ⇒ boolean
    • ._updateTestcaseMultiplicity(table)
    • ._getMultiplicityFromValue(val) ⇒ boolean
    • .handleMultiRowSection(table, sheetName, importer, sectionName, startRow, endRow)
    • .handleTagSection(table, sheetName, importer, sectionName, startRow, endRow)
    • .handleFilterSection(table, sheetName, importer, sectionName, startRow, endRow)
    • .handleGeneratorSwitchSection(table, sheetName, importer, sectionName, startRow, endRow)
    • .handleMultiplicitySection(table, sectionName)
    • .handleExecuteSection(table, sectionName)
    • .handleNeverExecuteSection(table, sectionName)
    • .handleSummarySection(table, sectionName)
    • .handleFieldSection(table, sheetName, importer, sectionName, startRow, endRow)
    • ._readTestcaseValues(table, sheetName, importer, row, rowId)
    • .getNextSubSection(sheetName, importer, startRow, sectionEndRow) ⇒ object
    • .getNextSection(sheetName, importer, startRow, sheetEndRow) ⇒ object

parserDecision.sectionHandler

Stores the handler for the different kind of sections.

Kind: instance property of ParserDecision

parserDecision.fieldNameSequence

This sequence is used to give each field a unique name.

Kind: instance property of ParserDecision

parserDecision.parse(sheetName, importer) ⇒ object

Parses the sheet with the given name und uses the given importer to access the data.

Kind: instance method of ParserDecision
Returns: object - tableModel The created tablemodel

Param Type Description
sheetName string The name of the sheet
importer object The importer

parserDecision.getFieldName() ⇒ string

Creates a unique field name.

Kind: instance method of ParserDecision
Returns: string - fieldName New generated fieldName

parserDecision.parseForTestcases(table, sheetName, importer, testCaseStartColumn, startRow) ⇒ number

Reads the first line until no testcase name found. This column is the last column which will be read. By the way create emtpy testcases and add them to the table.

Kind: instance method of ParserDecision
Returns: number - The testcase end column

Param Type Description
table object The table object. The new model
sheetName string The name of the worksheet
importer object The importer
testCaseStartColumn number The coumn in which the testcases starts
startRow number The row in which the testcase names are defined

parserDecision._updateTestcaseExecute(table)

After the table was loaded it must be checked if there is a 'ExecuteSection'. If so the values must be set in the testcase.execute property

Kind: instance method of ParserDecision

Param Type Description
table object The table to be updated

parserDecision._updateTestcaseNeverExecute(table)

After the table was loaded it must be checked if there is a 'ExecuteSection'. If so the values must be set in the testcase.execute property

Kind: instance method of ParserDecision

Param Type Description
table object The table to be updated

parserDecision._getBoolean(val) ⇒ boolean

Converts a string value into a boolen value

Kind: instance method of ParserDecision
Returns: boolean - bool true is the string is a true value else false

Param Type Description
val string The value to be checked for a boolean

parserDecision._updateTestcaseMultiplicity(table)

If this section exists the multiplicity of an testcase must be updated

Kind: instance method of ParserDecision

Param Type Description
table object The table to be updated

parserDecision._getMultiplicityFromValue(val) ⇒ boolean

Tries to convert a string into a multiplicity value

Kind: instance method of ParserDecision
Returns: boolean - bool true is the string is a true value else false

Param Type Description
val string The value to be checked for a boolean

parserDecision.handleMultiRowSection(table, sheetName, importer, sectionName, startRow, endRow)

Adds a new MultiRowSection to the table. Updates the data for all the testcases

Kind: instance method of ParserDecision

Param Type Description
table object The table to store the current sheet data
sheetName string The name of the sheet
importer object The importer
sectionName string The name of this section
startRow number The row the section begins
endRow number The row the next section begins

parserDecision.handleTagSection(table, sheetName, importer, sectionName, startRow, endRow)

Adds a new TagSection to the table. Updates the data for all the test cases

Kind: instance method of ParserDecision

Param Type Description
table object The table to store the current sheet data
sheetName string The name of the sheet
importer object The importer
sectionName string The name of this section
startRow number The row the section begins
endRow number The row the next section begins

parserDecision.handleFilterSection(table, sheetName, importer, sectionName, startRow, endRow)

Adds a new TagSection to the table. Updates the data for all the test cases

Kind: instance method of ParserDecision

Param Type Description
table object The table to store the current sheet data
sheetName string The name of the sheet
importer object The importer
sectionName string The name of this section
startRow number The row the section begins
endRow number The row the next section begins

parserDecision.handleGeneratorSwitchSection(table, sheetName, importer, sectionName, startRow, endRow)

Adds a new GeneratorSwitch to the table. Updates the data for all the test cases

Kind: instance method of ParserDecision

Param Type Description
table object The table to store the current sheet data
sheetName string The name of the sheet
importer object The importer
sectionName string The name of this section
startRow number The row the section begins
endRow number The row the next section begins

parserDecision.handleMultiplicitySection(table, sectionName)

Adds a new SummarySection to the table. Updates the data for all the testcases

Kind: instance method of ParserDecision

Param Type Description
table object The table to store the current sheet data
sectionName string The name of this section

parserDecision.handleExecuteSection(table, sectionName)

Adds a new ExecuteSection to the table. Updates the data for all the testcases

Kind: instance method of ParserDecision

Param Type Description
table object The table to store the current sheet data
sectionName string The name of this section

parserDecision.handleNeverExecuteSection(table, sectionName)

Adds a new NeverExecuteSection to the table. Updates the data for all the testcases

Kind: instance method of ParserDecision

Param Type Description
table object The table to store the current sheet data
sectionName string The name of this section

parserDecision.handleSummarySection(table, sectionName)

Adds a new SummarySection to the table. Updates the data for all the testcases

Kind: instance method of ParserDecision

Param Type Description
table object The table to store the current sheet data
sectionName string The name of this section

parserDecision.handleFieldSection(table, sheetName, importer, sectionName, startRow, endRow)

Adds a new FieldSection to the table. Updates the data for all the testcases

Kind: instance method of ParserDecision

Param Type Description
table object The table to store the current sheet data
sheetName string The name of the sheet
importer object The importer
sectionName string The name of this section
startRow number The row the section begins
endRow number The row the next section begins

parserDecision._readTestcaseValues(table, sheetName, importer, row, rowId)

reads the data for the testcases from the spreadsheet

Kind: instance method of ParserDecision

Param Type Description
table object The table to store the current sheet data
sheetName string The name of the sheet
importer object The importer
row nuber The row where to read the data
rowId string The uuid of this row

parserDecision.getNextSubSection(sheetName, importer, startRow, sectionEndRow) ⇒ object

Get the definition of the next sub section

Kind: instance method of ParserDecision
Returns: object - table A definition/boundaries of this subSection { startRow, endRow, fieldName }

Param Type Description
sheetName string The name of the sheet
importer object The importer
startRow nuber The row where to start searching
sectionEndRow number The last row in the parent section

parserDecision.getNextSection(sheetName, importer, startRow, sheetEndRow) ⇒ object

Get the definition of the next section

Kind: instance method of ParserDecision
Returns: object - table The created table model for the sheet

Param Type Description
sheetName string The name of the sheet
importer object The importer
startRow nuber The row where to start searching
sheetEndRow number The last row in this sheet
← Parser Decision ConstantsParser Matrix Constants →
  • ParserDecision ⇐ ParserBase
    • parserDecision.sectionHandler
    • parserDecision.fieldNameSequence
    • parserDecision.parse(sheetName, importer) ⇒ object
    • parserDecision.getFieldName() ⇒ string
    • parserDecision.parseForTestcases(table, sheetName, importer, testCaseStartColumn, startRow) ⇒ number
    • parserDecision._updateTestcaseExecute(table)
    • parserDecision._updateTestcaseNeverExecute(table)
    • parserDecision._getBoolean(val) ⇒ boolean
    • parserDecision._updateTestcaseMultiplicity(table)
    • parserDecision._getMultiplicityFromValue(val) ⇒ boolean
    • parserDecision.handleMultiRowSection(table, sheetName, importer, sectionName, startRow, endRow)
    • parserDecision.handleTagSection(table, sheetName, importer, sectionName, startRow, endRow)
    • parserDecision.handleFilterSection(table, sheetName, importer, sectionName, startRow, endRow)
    • parserDecision.handleGeneratorSwitchSection(table, sheetName, importer, sectionName, startRow, endRow)
    • parserDecision.handleMultiplicitySection(table, sectionName)
    • parserDecision.handleExecuteSection(table, sectionName)
    • parserDecision.handleNeverExecuteSection(table, sectionName)
    • parserDecision.handleSummarySection(table, sectionName)
    • parserDecision.handleFieldSection(table, sheetName, importer, sectionName, startRow, endRow)
    • parserDecision._readTestcaseValues(table, sheetName, importer, row, rowId)
    • parserDecision.getNextSubSection(sheetName, importer, startRow, sectionEndRow) ⇒ object
    • parserDecision.getNextSection(sheetName, importer, startRow, sheetEndRow) ⇒ object
Nanook
[ DOCS ] Tutorials Guide
[ MORE ] About Imprint Privacy Policy GitHub Manage Cookies
© 2018-2026 NANOOK.XHUB.IO — An Open Source Project by BeeBack UG.
[ COOKIE PREFERENCES ]

We use cookies to analyze site usage and improve your experience. You can choose which cookies to allow below. See our Privacy Policy for details.

ESSENTIALAlways active
Provider nanook.xhub.io (First Party)
Cookies nanook-theme — Stores your theme preference (CRT/INK)
Duration Persistent (localStorage)
Purpose Remember your display preferences across visits
ANALYTICS
Provider Google LLC (Google Analytics 4)
Cookies _ga, _ga_PMNJR2G9ZH — Distinguish unique visitors and sessions
Duration _ga: 2 years, _ga_*: 2 years
Purpose Measure site usage, page views, and traffic sources to improve the site. IP addresses are anonymized.
Privacy Google Privacy Policy