Nanook

Nanook

  • Docs
  • API
  • 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

ParamTypeDescription
specificationobjectThe specification object

parserSpecificationConverter._createTestcases(table, rowIdObjects, secDataObject)

Creates the default testcases for this decision table

Kind: instance method of ParserSpecificationConverter

ParamTypeDescription
tableobjectThe decision table model
rowIdObjectsarrayAn array with all the primary data rowIdObjects
secDataObjectobjectThe 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

ParamTypeDescription
specificationobjectThe specification object
tableobjectThe 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

ParamTypeDescription
sectionobjectThe primary data field section
fieldNamestringThe name of the field
classesobjectThe 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

ParamTypeDescription
specificationobjectThe specification object. Only the Rules description is neded
tableobjectThe decision table model
fieldDataobjectThe field data from the specification model
fieldRulesobjectAll 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

ParamTypeDescription
tableobjectThe decision table model

parserSpecificationConverter._createSeveritySection(specification, table)

Creates a multirow section for the serverities

Kind: instance method of ParserSpecificationConverter

ParamTypeDescription
specificationobjectThe specification object
tableobjectThe 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

ParamTypeDescription
specificationobjectThe specification object
tableobjectThe decision table model

parserSpecificationConverter._createSummarySection(table)

Creates the summary section for this table

Kind: instance method of ParserSpecificationConverter

ParamTypeDescription
tableobjectThe 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
TutorialsGuide
More
ImprintPrivacy PolicyGitHubStar
Copyright © 2022 Nanook.io