Validate Helper
Version note: this reference describes Nanook 1.x (JavaScript). Since 2.0 (March 2026) Nanook is TypeScript/ESM; Processor is now TestcaseProcessor, TDGServiceRegistry is DataGeneratorRegistry. The current reference is on this site: API reference, 3.x rows, generated from the repository.
Functions
- buildRowModel(table) ⇒
object -
Create a model containing the rowIds for all the fields. This is a model of the definition columns and rows.
- buildTestcaseModel(table, rowModel) ⇒
object -
Build the tescase model. This model is an array of testcase objects const testcase = { id: testcaseId data : { sectionId : { parentSectionId: parentSecId rows: [rowIds] val: 2324323 if section has more than 31 rows the values are splitted val = [2323213,2323232] } } }
buildRowModel(table) ⇒ object
Create a model containing the rowIds for all the fields. This is a model of the definition columns and rows.
Kind: global function
Returns: object - model The Row model mode[subSectionRowId] = {rows:
rowIds, parentSectionId = sectionRowId};
| Param | Type | Description |
|---|---|---|
| table | object |
The table model |
buildTestcaseModel(table, rowModel) ⇒ object
Build the tescase model. This model is an array of testcase objects const testcase = { id: testcaseId data : { sectionId : { parentSectionId: parentSecId rows: [rowIds] val: 2324323 if section has more than 31 rows the values are splitted val = [2323213,2323232] } } }
Kind: global function
Returns: object - model The testcase model
| Param | Type | Description |
|---|---|---|
| table | object |
The table model |
| rowModel | object |
The row model |