public class TeststepNode extends Object
| Constructor and Description |
|---|
TeststepNode(boolean condition,
String name,
float probability)
Create a test step node.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
This method returns the name (or description) of this teststep.
|
float |
getProbability()
This method returns the probability in percent (%).
Please note: Since the probability is provided in percent a value of 0.01 means 1%, 0.1 means 10% and 1.0 means 100%! Otherwise it would be impossible to compute correct results without additional operations. |
boolean |
isCondition()
Tells if this teststep node is either a condition or an action.
Decision tables are about "if (condition) then (action)". |
public TeststepNode(boolean condition,
String name,
float probability)
condition - true = this is a condition; false = this is an actionname - name of the test step (i.e. "press return key")probability - How much is the probability that this step with Decision.Yes becomes true?public boolean isCondition()
public String getName()
public float getProbability()
Copyright © 2013. All Rights Reserved.