public class Testspecification extends Object
| Constructor and Description |
|---|
Testspecification(ArrayList<TeststepNode> listOfTestStepNodes,
ArrayList<TeststepRule> listOfTestStepRules)
Creates a test specification from a list of TestStepNodes and a list of TestStepRules.
Note that test specifications from this constructor are always marked as invalid. Because there is no underlying decision table we can not run the tests for checking if the underlying decision table is valid. |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumNodes()
This method returns the number of test step nodes.
|
int |
getNumRules()
This method returns the number of test step rules.
|
static Testspecification |
getTestspecification(Decisiontable dt)
Creates a test specification from a decision table.
|
static Testspecification |
getTestspecification(Decisiontable dt,
boolean runAllChecks,
boolean splitTestStepRules)
Creates a test specification from a decision table.
A test specification consist of the test nodes and one test rule. |
TeststepNode |
getTestStepNode(int nodePos)
This method returns the TeststepNode at given position.
|
TeststepRule |
getTestStepRule(int rulePos)
This method returns the TeststepRule at given position.
|
boolean |
isValid()
This method returns if the decision table (from which the test specification was made) was valid or not.
|
public Testspecification(ArrayList<TeststepNode> listOfTestStepNodes, ArrayList<TeststepRule> listOfTestStepRules)
public static Testspecification getTestspecification(Decisiontable dt, boolean runAllChecks, boolean splitTestStepRules)
dt - decision table to create test specifications fromrunAllChecks - true = check the decision table before create test specifications from; false = skip to check the decision tablesplitTestStepRules - split test step rules if necessarypublic static Testspecification getTestspecification(Decisiontable dt)
dt - decision table to create test specifications frompublic int getNumNodes()
public int getNumRules()
public TeststepNode getTestStepNode(int nodePos)
nodePos - position of the test step node to returnpublic TeststepRule getTestStepRule(int rulePos)
rulePos - position of the test step rule to returnpublic boolean isValid()
Copyright © 2013. All Rights Reserved.