Nanook

Nanook

  • Docs
  • API
  • GitHub

›Data Generator

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

Generator Faker

GeneratorFaker

This is a Generator using Faker to create Data. The Faker function to be used is given as a parameter.

Kind: global class

  • GeneratorFaker
    • .logger
    • .unique
    • .generate(instanceId, testcase, todoGenerator) ⇒ object

generatorFaker.logger

The logger used for logging

Kind: instance property of GeneratorFaker

generatorFaker.unique

Defines if the generated value must be unique. Default is 'false'

Kind: instance property of GeneratorFaker

generatorFaker.generate(instanceId, testcase, todoGenerator) ⇒ object

Generates the value and saves it for the given instance.

Kind: instance method of GeneratorFaker
Returns: object - data The genrated data. If the data could not be generated because of missing data then the generator should return 'undefined'. So it could be called later. This may be the case if the generator needs referenced data which is not generated yet.

ParamTypeDescription
instanceIdstringThe testcase instance id. for the same instance id the same data object will be returned. If this is undefined then always a new value will be created.
testcaseobjectThe already generated testcase data object.
todoGeneratorobjectThe generator todo
← Service RegistryInterface Processor →
  • GeneratorFaker
    • generatorFaker.logger
    • generatorFaker.unique
    • generatorFaker.generate(instanceId, testcase, todoGenerator) ⇒ object
Nanook
Docs
TutorialsGuide
More
ImprintPrivacy PolicyGitHubStar
Copyright © 2022 Nanook.io