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

Classes

ImporterSpecification ⇐ ParserBase

The parser implementation to parse specification tables.

SpecificationModel

The model for a specification object

ImporterSpecification ⇐ ParserBase

The parser implementation to parse specification tables.

Kind: global class
Extends: ParserBase

  • ImporterSpecification ⇐ ParserBase
    • .parseSpecification(sheetName, importer) ⇒ object
    • .checkForUnusedRules(sheetName, importer, severityStartRow, sheetEndColumn, rules)
    • .parseFields(sheetName, importer, severityStartRow, ruleStartRow, sheetEndColumn) ⇒ object
    • .parseSeverities(sheetName, importer, severityStartRow, ruleStartRow, sheetEndColumn) ⇒ map
    • .parseRules(sheetName, importer, ruleStart, endRow) ⇒ object
    • .checkSheetRows(sheetName, importer) ⇒ object
    • .getEndColumn(importer, sheetName) ⇒ number

importerSpecification.parseSpecification(sheetName, importer) ⇒ object

Parses a single Spreadsheet

Kind: instance method of ImporterSpecification
Returns: object - specification The created specification model for the sheet

ParamTypeDescription
sheetNamestringThe name of the sheet
importerobjectThe importer

importerSpecification.checkForUnusedRules(sheetName, importer, severityStartRow, sheetEndColumn, rules)

Each rule defined must be used. Unused rules should be deleted from the table

Kind: instance method of ImporterSpecification

ParamTypeDescription
sheetNamestringThe name of the sheet
importerobjectThe importer
severityStartRownumberThe start row of the severities
sheetEndColumnnumberThe last column of the sheet
rulesobjectAll the existing rules stored by there rule name

importerSpecification.parseFields(sheetName, importer, severityStartRow, ruleStartRow, sheetEndColumn) ⇒ object

Parses the fields out of the Spreadsheet. This is the section where the fields of the interface are defined

Kind: instance method of ImporterSpecification
Returns: object - data on object with the fields and the fieldOrder

ParamTypeDescription
sheetNamestringThe name of the sheet
importerobjectThe importer
severityStartRownumberThe start row of the severities
ruleStartRownumberThe start row of the rules
sheetEndColumnnumberThe last column of the sheet

importerSpecification.parseSeverities(sheetName, importer, severityStartRow, ruleStartRow, sheetEndColumn) ⇒ map

Load the rules defined in the rule section

Kind: instance method of ImporterSpecification
Returns: map - severities A map of the existing severities

ParamTypeDescription
sheetNamestringThe name of the sheet
importerobjectThe importer
severityStartRownumberThe severity start row
ruleStartRownumberThe rule start row
sheetEndColumnnumberThe last column of the sheet

importerSpecification.parseRules(sheetName, importer, ruleStart, endRow) ⇒ object

Load the rules defined in the rule section

Kind: instance method of ImporterSpecification
Returns: object - rules An object with the rules

ParamTypeDescription
sheetNamestringThe name of the sheet
importerobjectThe importer
ruleStartnumberThe rule start row
endRownumberThe last row of the sheet

importerSpecification.checkSheetRows(sheetName, importer) ⇒ object

Checks that the specification contains all the needed sections

Kind: instance method of ImporterSpecification
Returns: object - rows The following parameters {severityStartRow, ruleStartRow}

ParamTypeDescription
sheetNamestringThe name of the sheet
importerobjectThe importer

importerSpecification.getEndColumn(importer, sheetName) ⇒ number

Parses the sheet to get the last row of the table.

Kind: instance method of ImporterSpecification
Returns: number - endRow The last row of the table

ParamTypeDescription
importerobjectThe importer
sheetNamestringThe name of the sheet

SpecificationModel

The model for a specification object

Kind: global class

← Parser Specification ConstantsParser Specification Converter →
  • Classes
  • ImporterSpecification ⇐ ParserBase
    • importerSpecification.parseSpecification(sheetName, importer) ⇒ object
    • importerSpecification.checkForUnusedRules(sheetName, importer, severityStartRow, sheetEndColumn, rules)
    • importerSpecification.parseFields(sheetName, importer, severityStartRow, ruleStartRow, sheetEndColumn) ⇒ object
    • importerSpecification.parseSeverities(sheetName, importer, severityStartRow, ruleStartRow, sheetEndColumn) ⇒ map
    • importerSpecification.parseRules(sheetName, importer, ruleStart, endRow) ⇒ object
    • importerSpecification.checkSheetRows(sheetName, importer) ⇒ object
    • importerSpecification.getEndColumn(importer, sheetName) ⇒ number
  • SpecificationModel
Nanook
Docs
TutorialsGuide
More
ImprintPrivacy PolicyGitHubStar
Copyright © 2022 Nanook.io