Nanook

Nanook

  • Docs
  • API
  • GitHub

›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

Node

Node

When traversing the tables we first build a graph representing the data generation order. The graph is build out of this nodes

Kind: global class

  • Node
    • .todosGenerator ⇒ array
    • ._buildTodos()
    • .createReferenceInstanceId(referenceCmd) ⇒ string
    • .isSelfReference(referenceCmd) ⇒ boolean
    • .clone()
    • .getCloneFor(nodeToClone) ⇒ object

node.todosGenerator ⇒ array

returns an array with all the todos. It will crawl all the referenced nodes and adds the todos of them

Kind: instance property of Node
Returns: array - todos An array of todos

node._buildTodos()

Build a local variable with all the todos

Kind: instance method of Node

node.createReferenceInstanceId(referenceCmd) ⇒ string

Creates the instanceId for a reference. The instanceId is unique for each target object. If two reference points to the same intance of a target the same instanceId is used. If no suffix is given

Kind: instance method of Node
Returns: string - instanceId The reference instance id

ParamTypeDescription
referenceCmdobjectThe reference command

node.isSelfReference(referenceCmd) ⇒ boolean

Checks if the given reference is a self reference.

Rules: No instanceIdSuffix The test case name is same as node test case name The TableName is same as node table name

Kind: instance method of Node
Returns: boolean - status True, if the reference is a self reference

ParamTypeDescription
referenceCmdobjectThe reference command

node.clone()

Clones the node

Kind: instance method of Node

node.getCloneFor(nodeToClone) ⇒ object

Clones a node for this parent. If this node where already cloned, the previous clone will be returned.

Kind: instance method of Node
Returns: object - clone The clone of the node

ParamTypeDescription
nodeToCloneobjectThe node to be cloned
← Interface WriterReference →
  • Node
    • node.todosGenerator ⇒ array
    • node._buildTodos()
    • node.createReferenceInstanceId(referenceCmd) ⇒ string
    • node.isSelfReference(referenceCmd) ⇒ boolean
    • node.clone()
    • node.getCloneFor(nodeToClone) ⇒ object
Nanook
Docs
TutorialsGuide
More
ImprintPrivacy PolicyGitHubStar
Copyright © 2022 Nanook.io