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 Specification Converter

ParserSpecificationConverter

Converts a specification object into a decision table model. It takes a loaded specification table and converts it.

Kind: global class

  • ParserSpecificationConverter
    • .convert(specification) ⇒ object
    • ._createTestcases(table, rowIdObjects, secDataObject)
    • ._createPrimaryDataSection(specification, table) ⇒ array
    • ._createFieldSubSection(section, fieldName, classes) ⇒ object
    • ._getClassesForRules(specification, table, fieldData, fieldRules) ⇒ object
    • ._createExecutionMultirowSection(table)
    • ._createSeveritySection(specification, table)
    • ._createSecondaryDataSection(specification, table) ⇒ object
    • ._createSummarySection(table)

parserSpecificationConverter.convert(specification) ⇒ object

Do the conversion

Kind: instance method of ParserSpecificationConverter
Returns: object - table The created decision table model

Param Type Description
specification object The specification object

parserSpecificationConverter._createTestcases(table, rowIdObjects, secDataObject)

Creates the default testcases for this decision table

Kind: instance method of ParserSpecificationConverter

Param Type Description
table object The decision table model
rowIdObjects array An array with all the primary data rowIdObjects
secDataObject object The secondary rowidObjewct

parserSpecificationConverter._createPrimaryDataSection(specification, table) ⇒ array

Creates the primary data section and returns an array of rowIdObjects

Kind: instance method of ParserSpecificationConverter
Returns: array - rowIdObjects an array of rowIdObjects

Param Type Description
specification object The specification object
table object The decision table model

parserSpecificationConverter._createFieldSubSection(section, fieldName, classes) ⇒ object

Create one field of the primary data section. Also adds the rowId to the class. Returns an object of the following format: obj = { valid : [rowIds] error : [rowIds] }

Kind: instance method of ParserSpecificationConverter
Returns: object - rowIdObj The object containing all the rowIds by there type

Param Type Description
section object The primary data field section
fieldName string The name of the field
classes object The equivalenceClasses for this field

parserSpecificationConverter._getClassesForRules(specification, table, fieldData, fieldRules) ⇒ object

Create all the equivalenceClasses for one field

Kind: instance method of ParserSpecificationConverter
Returns: object - classes The created equivalenceClasses for this field

Param Type Description
specification object The specification object. Only the Rules description is neded
table object The decision table model
fieldData object The field data from the specification model
fieldRules object All the rules for this field

parserSpecificationConverter._createExecutionMultirowSection(table)

Creates a multirow section which defines if a testcase should be executed or is testdata only

Kind: instance method of ParserSpecificationConverter

Param Type Description
table object The decision table model

parserSpecificationConverter._createSeveritySection(specification, table)

Creates a multirow section for the serverities

Kind: instance method of ParserSpecificationConverter

Param Type Description
specification object The specification object
table object The decision table model

parserSpecificationConverter._createSecondaryDataSection(specification, table) ⇒ object

Creates a secondary data section if the specification has a primary key rule. Adds two fields to it Returns an object of the following format: rowIdObj = { valid : [rowIds] error : [rowIds] }

Kind: instance method of ParserSpecificationConverter
Returns: object - rowIdObj An object with the rowIds

Param Type Description
specification object The specification object
table object The decision table model

parserSpecificationConverter._createSummarySection(table)

Creates the summary section for this table

Kind: instance method of ParserSpecificationConverter

Param Type Description
table object The decision table model
← Parser SpecificationData Generator Interface →
  • ParserSpecificationConverter
    • parserSpecificationConverter.convert(specification) ⇒ object
    • parserSpecificationConverter._createTestcases(table, rowIdObjects, secDataObject)
    • parserSpecificationConverter._createPrimaryDataSection(specification, table) ⇒ array
    • parserSpecificationConverter._createFieldSubSection(section, fieldName, classes) ⇒ object
    • parserSpecificationConverter._getClassesForRules(specification, table, fieldData, fieldRules) ⇒ object
    • parserSpecificationConverter._createExecutionMultirowSection(table)
    • parserSpecificationConverter._createSeveritySection(specification, table)
    • parserSpecificationConverter._createSecondaryDataSection(specification, table) ⇒ object
    • parserSpecificationConverter._createSummarySection(table)
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