Validate Missing
Functions
- combineTestcases(table) ⇒
object
Combines the existing testcases. So it could be easier to find the open ones Compares each field of a testcase, if all the feields are the same except one, then this field could be combined in one if the values of one field do not exists in the other one. XOR logic. The testcases could be combiened as long as in one loop no new combination was possible
- combineTestcasesIsDisjunct(val1, val2)
Checks if the both given values are bitwise disjunct. The parameters are integers. But it could also be an Array of integers.
- combineTestcasesSub(tc1, tc2) ⇒
boolean
Combines two testcases into one. This could be done if only one field is different between two testcases. This one field must also be disjunct. Then it will be combined. The tescase2 will be combined with testcase1 into testcase1. Testcase1.skip will be set to true;
Format: 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] } } }
object
combineTestcases(table) ⇒ Combines the existing testcases. So it could be easier to find the open ones Compares each field of a testcase, if all the feields are the same except one, then this field could be combined in one if the values of one field do not exists in the other one. XOR logic. The testcases could be combiened as long as in one loop no new combination was possible
Kind: global function
Returns: object
- testCaseModel The combined testcase model
Param | Type | Description |
---|---|---|
table | object | The table model |
combineTestcasesIsDisjunct(val1, val2)
Checks if the both given values are bitwise disjunct. The parameters are integers. But it could also be an Array of integers.
Kind: global function
Param | Type | Description |
---|---|---|
val1 | integer | The first value. |
val2 | integer | The second value |
boolean
combineTestcasesSub(tc1, tc2) ⇒ Combines two testcases into one. This could be done if only one field is different between two testcases. This one field must also be disjunct. Then it will be combined. The tescase2 will be combined with testcase1 into testcase1. Testcase1.skip will be set to true;
Format: 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: boolean
- isCombined True if the testcases where combined
Param | Type | Description |
---|---|---|
tc1 | object | The first testcase |
tc2 | object | The second testcase |