Acts Quickstart Guide
2. Major Features
In this section, we provide an overview of the major features of Acts.
2.1 T-Way Test Set Generation
This is the core feature of Acts. A system (configuration) is specified by a set of parameters and their values.
A test set is a t-way test set if it satisfies the following property: Given any t parameters (out of all the parameters)
of a system, every combination of values of those t parameters is covered in at least one test in the test set.
Currently, Acts supports t-way test set generation for 2 ≤ t ≤ 6. (We believe that t = 6
is sufficient for most practical applications.) Acts also supports several test generation
algorithms developed by the ACTS group, namely IPOG, IPOG-D, IPOG-F, IPOG-F2,
PaintBall and Base Choice. In general, IPOG, IPOG-F, IPOG-F2, and Base Choice
work best for systems of moderate size (less than 20 parameters and 10 values per
parameter on average), while IPOG-D and PaintBall are preferred for larger systems.
Acts also supports two test generation modes, namely, scratch and extend. The former allows
a test set to be built from scratch, whereas the latter allows a test set to be built by extending
an existing test set. In the extend mode, an existing test set can be a test set that is generated
by Acts, but is incomplete because of some newly added parameters and values, or a test set
that is supplied by the user and imported into Acts. Extending an existing test set can help save
some earlier effort that has already been spent in the testing process.
2.2 Mixed Strength
This feature allows different parameter groups to be created and covered with different strengths.
For example, consider a system consisting of 10 parameters, P1, P2, …, and P10. A default relation
can be created that consists of all the parameters with strength 2. Then, additional relations can be created
if some parameters are found to have a higher degree of interaction, based on the user’s domain knowledge.
For instance, a relation could be created that includes P2, P4, P5, P7 with strength 4 if the four parameters could
potentially interact with each other, and their 4-way interaction may trigger certain software faults.
Acts allows arbitrary parameter relations to be created, where different relations may overlap or subsume each
other. In the latter case, relations that are subsumed by other relations will be automatically ignored by the
test generation engine.
2.3 Constraints Support
Some combinations are not valid from the domain semantics, and must be excluded from the resulting test set.
For example, in a mortgage application management system, the household income of an applicant may have to
be equal to or greater than a certain threshold value to be eligible for a certain type of mortgage loan. A test
including an invalid combination will be rejected by the system (if adequate input validation is performed) or may
cause the system to fail. In either case, the test will not be executed properly, which may compromise test coverage,
if some (valid) combinations are only covered by this test.
Acts allows the user to specify constraints that combinations must satisfy to be valid. The specified constraints
will be taken into account during test generation so that the resulting test set will cover, and only cover, those
combinations that satisfy those constraints. Currently, constraint support is only available for the IPOG algorithm.
Constraint support for other algorithms will be added in a future release.
2.4 Coverage Verification
This feature is used to verify whether a test set satisfies t-way coverage, i.e. whether it covers all the t-way combinations.
A test set to be verified can be a test set generated by Acts or a test set supplied by the user (and then imported into Acts).
2.5 Output Parameters
This feature allows the user to specify the output parameters and values for the test cases. The output parameter can be
specified in the same way as the input parameters are specified but by selecting the output parameter radio button when
the new system is created or modified. The output parameters are distinguished from input parameters with a prefix “out:”
to the parameter name.
3. General Layout of GUI
Figs. 1 and 2 show the general layout of the Acts GUI. The System View component is a tree structure that shows the
configurations of the systems that are currently open in the GUI. In the tree structure, each system is shown as a three-level
hierarchy. That is, each system (top level) consists of a set of parameters (second level), each of which has a set of values
(leaf level). If a system has relations, constraints, and output parameters, the relations, constraints and output Parameters
will be shown in the second level, i.e. the same level as the parameters.
Right to the System View is a tabbed pane consisting of two tabs, namely, Test Result, which is shown in Fig. 1,
and Statistics, which is shown in Fig. 2. The Test Result shows a test set of the currently selected system, where
each row represents a test, and each column represents a parameter. Output parameters are also displayed as
columns. The user can either select to view them or hide. By selecting the appropriate radio button . The Statistics
tab displays some relevant statistical information about the test set. In particular, it includes a graph that plots the growth
rate of the test coverage with respect to the tests in the test set displayed in the Test Result tab. Note that drawing the
graph may involve expensive computations, and thus the graph is shown only on demand, i.e. when the Graph button is clicked.
Figure 1. The Main Window – Test Result Tab
Figure 2. The Main Window - Statistics Tab
4. Major Operations
4.1 Create New System
To create a new system, select menu System -> New, or the first icon in the toolbar, to open the New System window.
The New System window contains a tabbed pane of three tabs, namely, Parameters, Relations, and Constraints. The
three tabs are shown in Figs. 3, 4, and 5, respectively.
The Parameters tab (Fig. 3) allows the user to specify the parameters, as well as the values of those parameters,
in the new system. Currently, four parameter types are supported, Boolean, Enum, Number, and Range. Note that
Range is a convenience feature that allows multiple, consecutive integers to be input quickly.
Figure 3. New System Window – Parameters
The base choice values for a parameter can be selected by checking the checkbox next to the parameter value.
The base choice value will be highlighted in the parameter table and in the system tree.
The output parameters can be entered by selecting the output parameter radio button shown in Fig 3. Currently,
four parameter types are supported, Boolean, Enum, Number, and Range. Entering values for the Enum and Number
Type is optional for output parameter. If the user chooses not to enter the values then the corresponding column in test
set will be editable so that the values can be entered. If the user has entered values for the output parameter than a dropdown
list will be provided from which he can select the value.
The Relations tab (Fig. 4) allows the user to create parameter groups with different strengths. The Parameters list
(on the left side) displays all the parameters that have been specified in the Parameters tab, the Strength field allows
a strength to be specified, and the table on the right side lists all the relations that have already been created. To define a
new relation, the user can select two or more parameters in the Parameters list, specify a strength, and then click the Add
button in the middle. Note that multiple selections can be made in the Parameters list by pressing Ctrl (for non-consecutive
selections) or Shift (for consecutive selections) during selection.
Note that a default relation is automatically created that consists of all the parameters that have been specified in the
Parameters tab with the default strength (which is specified in the Options window, see Section 3.2). This default relation
is provided as a convenience feature (so that the user does not need to do anything in this tab if the user does not want to
specify any relation), and can be removed like other user-defined relations.
Figure 4. New System Window – Relations
The Constraints tab (Fig. 5) allows the user to specify constraints so that invalid combinations can be excluded from
the resulting test set. Generally speaking, a constraint is specified using a restricted form of first-order logical formulas.
In the following, we give a formal syntax of the expressions that can be used to specify a constraint:
<Constraint>::=<Simple_Constraint>|<Constraint><Boolean_Op><Constraint><br>
<Simple_Constraint> ::= <Term><Relational_Op><Term><br>
<Term>:=<Parameter>|<Parameter><Arithmetic_Op><Parameter> | <Parameter><Arithmetic_Op> <Value> <br>
<Boolean_Op>:=“&&” |“||” |“=>”<br>
<Relational_Op> := “=” |“!=” | “>” | “<” | “>=” | “<=”<br>
<Arithmetic_Op> := “+” | “-” | “*” | “/” | “%” <br>
There are three types of operators: (1) Boolean operators (Boolean_Op), including &&, ||, =>; (2) Relational operators
(Relational_Op), including =, !=, >, <, >=, <=; and (3) Arithmetic operators (Arithmetic_OP), including +, -, *, /, %. Note
that all arithmetic operators can appear in a term expression () only if the parameter involved in the term expression
is of type Number or Range. Also note that four of the relational operators, namely, >, <, >=, <=, can appear in a simple constraint
expression (
The following are some examples of various constraints that can be specified:
Constraint 1: (OS = “Windows”) => (Browser = “IE” || Browser = “FireFox” || Browser = “Netscape”), where OS and Browser
are two parameters of type Enum. This constraint specifies that if OS is Windows, then Browser has to be IE, FireFox, or Netscape.
Constraint 2: (P1 > 100) || (P2 > 100), where P1 and P2 are two parameters of type Number or Range. This constraint specifies
that P1 or P2 must be greater than 100.
Constraint 3: (P1 > P2) => (P3 > P4), where P1, P2, P3, and P4 are parameters of type Number or Range. This constraint specifies
that if P1 is greater than P2, then P3 must be greater than P4.
Constraint 4: (P1 = true || P2 >= 100) => (P3 = “ABC”), where P1 is a Boolean parameter, P2 is a parameter of type Number or
Ranger, and P3 is of type Enum. This constraint specifies that if P1 is true and P2 is greater than or equal to 100, then P3 must be “ABC”.
A constraint can be directly typed in the Constraint Editor. A Palette is also provided to facilitate the selection of parameters, values,
and operators when entering a constraint. Note that some operator buttons in the Palette will be disabled if they are not applicable in
the current context. For example, as arithmetic operators such as +, -, *, / only apply to parameters of type Number or Range, those
operator buttons will be disabled if the most recently added parameter is of type Boolean or Enum.
An existing constraint can be removed by selecting the constraint in the Added Constraint table and then clicking on the Remove button. Currently, Acts does not allow an existing constraint to be directly edited. In order to edit an existing constraint, the user needs to remove the constraint first and then add the desired constraint as a new constraint.
Figure 5. New System Window - Constraints
4.2 Build Test Set
To build a test set for a system that is currently open, select the system in the System View, and then select menu
Operations -> Build. The latter selection brings up the Options window, as shown in Fig. 6, which allows the following
options to be specified for the build operation:
- Algorithm:
This option decides which algorithm to be used for test generation. As mentioned in Section 1.1, IPOG, IPOG-F,
IPOG-F2, and Base Choice work best for systems of moderate size, while IPOG-D and PaintBall are preferred for
larger systems. Also note that relations and constraints are currently only supported for IPOG. By default the IPOG algorithm is selected.
- Max Tries:
This option is used by algorithm PaintBall, and specifies the number of candidates to be generated randomly at each step.
- Randomize Don’t Care Values:
If this option is checked, then all the don’t care in the resulting test set will be replaced with a random value. By default this check box is unchecked.
- Strength:
This option specifies the default strength of the test set. This strength is used for the default relation. (Recall that the default
relation consists of all the parameters.) The user selects the strength from a drop-down list. As mentioned earlier, Acts supports
a strength ranging from 2 to 6. Also note that the user may create relations other than the default relation. Different strengths can
be specified for those relations during their creation (in the Relation tab as discussed in section 3.1.) For Base Choice algorithm the strength will be set to 1.
- Mode:
This option can be Scratch or Extend. The former specifies that a test set should be built from scratch; the latter specifies
that a test set should be built by extending an existing test set (shown in the Test Result tab). Recall that the current test set in
the system may not be complete as the system configuration may have changed after the last build or the test set may be imported from outside.
- Progress:
If this option is turned on, progress information will be displayed in the console. Note that in order to obtain the console,
the tool must be started from a command line instead of by double-clicking the executable jar file.
After the build operation is completed, the resulting test set will be displayed in the Test
Result tab of the Main window.
Figure 6. Build Options Window
4.3 Modify System
To modify an existing system, select the system in the tree view, and then select menu Edit -> Modify. The Modify System
window is the same as the New System window except that the name of the system cannot be changed. Note that a parameter
cannot be removed if it is involved in a relation or constraint. In this case, the parameter must be removed from the relation or constraint first.
A parameter or an output parameter can be added in the same way as during the New System operation. A parameter can
be removed by selecting the parameter in the Saved Parameters table on the right hand side, and then clicking on the Remove
button under the table. The values of a parameter can be modified by selecting the parameter on the Saved Parameters table
on the right hand side, and by clicking on the Modify button under the table. The user can change the parameter values in the
Parameter Modification Window.
The user can modify the output parameter values in the same way as modifying the values for the parameters.
Note that a system can also be modified through the tree view. For example, a parameter, or value, or relation, or constraint can be
removed by first selecting the parameter, or value, or relation, or constraint, and then selecting menu Edit -> Delete.
Figure 7. Modify System Window
4.4 Save/Save As/Open System
To save an existing system, select the system in the tree view, and then select menu System -> Save or Save As.
When Save As is selected, a standard file dialog will be brought up, where the user can specify the name of the file to be
saved, as shown in Fig.8.
Figure 8. Save As Window
4.5 Import/Export Test Set
To import a test set of a system, the user must first create the system, in terms of adding its parameters and values
into Acts, as described in section 3.1. Then, select menu Operations -> Import, as shown in Fig. 10, and select the format
of the file containing the test set. Currently, two file formats are supported: CSV-R, which stands for Comma Separated Values
with Row headers, and CSV-RC, which stands for Comma Separated Values with Row and Column headers. The following are t
wo example files, one for each format:
CSV-R format:
P1,P2,P3,P4,P5
0,2,2,3,6
3,2,4,2,2
2,1,2,1,3
3,2,5,0,5
CSV-RC format
:
,P1,P2,P3,P4,P5
Test1,0,2,2,3,6
Test2,3,2,4,2,2
Test3,2,1,2,1,3
Test4,3,2,5,0,5
Note that the parameter values in each row must be separated by “,”. There can be arbitrary space between two values.
After the file format is selected, a standard file selection window appears through which the user can browse through the
system and select the file containing the test set to be imported.
To export a test set that exists in the GUI, first select the corresponding system so that the test set is displayed in the Test
Result tab of the Main window, and then select Operations -> Export. Currently, three formats are supported, namely, NIST
Format, Excel Format and CSV Format. A snippet of an exported test set in the NIST format is shown below:
Degree of interaction coverage: 2
Number of parameters: 12
Number of configurations: 100
-------------------------------------
Configuration #1:
1 = Cur_Vertical_Sep=299
2 = High_Confidence=true
3 = Two_of_Three_Reports_Valid=true
4 = Own_Tracked_Alt=1
5 = Other_Tracked_Alt=1
6 = Own_Tracked_Alt_Rate=600
7 = Alt_Layer_Value=0
8 = Up_Separation=0
9 = Down_Separation=0
10 = Other_RAC=NO_INTENT
11 = Other_Capability=TCAS_TA
12 = Climb_Inhibit=true
-------------------------------------
Configuration #2:
-------------------------------------
0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 0 1 1 1 1
2 0 1 0 1 0 2 0 2 2 1 0
0 1 0 1 0 1 3 0 3 1 0 1
1 1 0 0 0 1 0 0 4 2 1 0
2 1 0 1 1 0 1 0 5 0 0 1
0 1 1 1 0 1 2 0 6 0 0 0
1 0 1 0 1 0 3 0 7 0 1 1
2 0 1 1 0 1 0 0 8 1 0 0
-------------------------------------
A snippet of the CSV format is shown below:
# ACTS Test Suite Generation: Wed Jun 10 02:24:23 CDT 2009
# * represents don't care value
Parameters:
"11:[true, false]"
"22:[true, false]"
"33:[true, false]"
"44:[true, false]"
Relations :
"[2,(11, 22, 33, 44)]"
Tests
11,22,33,44
true,true,true,true
true,false,false,false
......
A snippet of an exported test set in the Excel Format is shown below:
Parameters:
11 [true, false]
22 [true, false]
33 [true, false]
44 [true, false]
Relations:
[2,(11, 22, 33, 44)]
Test Case# 11 22 33 44
0 true true true True
1 true false false false
......
4.6 Verify T-Way Coverage
To verify the t-way coverage of a test set, the user can select menu Operations -> Options, and specify a
desired strength in the Options window. Then, select menu Operations -> Verify. If the test set achieves
he coverage for the specified strength, the message window in Fig. 10 will be displayed; otherwise, the message
window in Fig. 11 will be displayed.
Note that this operation is typically used to verify the coverage of a test set that is imported from outside of Acts.
Figure 10. Coverage Achieved Window
Figure 11. Coverage Not Achieved Window
Back to the beginning