NanookNanook
  • [ DOCS ]
  • [ API ]
  • [ BLOG ]
  • [ GITHUB ]

›Modules

Quickstart

  • The 5 minute Quickstart

Tutorials

  • Overview
  • Create an equivalence class table
  • Transform into data generator
  • Create data generator
  • Create writer
  • Create filter processor

Guides

  • Nanook Table Overview
  • Equivalence class table

    • Overview
    • Section

    Matrix table

    • Overview

    Generator commands

    • Static Data
    • Generator
    • References

    Advanced

    • Instance IDs

Modules

  • Model
  • Logger
  • File Processor
  • Data Generator
  • Writer

Writer

The writer is responsible for exporting the generated data in the required format. It is best practice to create one writer for each format or type.

Constructor

constructor of a writer.

constructor(opts = {}) {
    this.logger = opts.logger || getLoggerMemory()
}

The constructor will get the logger. So to write any logs you could use:

this.logger.info('My important info')

before

This method is called when the processor start working on the test cases. This is meant for set up the writer.

async before() {
    console.log(`Start a new processing`)
}

after

This method is called when the processor has finished all the test cases. This is meant for tear down the writer.

async after() {
    console.log(`End processing`)
}

write

This is the method doing the work. It will be called for each test case. It will get the test case data object which contains all the data generated for one test case.

It is up to the writer to extract the needed.

async write(testcaseData) {
    console.log(
        `Write testcase '${testcaseData.name}' for table '${
            testcaseData.tableName
        }'`
    )
}
← Data Generator
  • Constructor
  • before
  • after
  • write
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