Validate Helper
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 |