Statistics
| Revision:

root / tmp / org.txm.core.tests / src / org / txm / scripts / macro / tests / ResetAllTestsMacro.groovy @ 1626

History | View | Annotate | Download (591 Bytes)

1
package org.txm.scripts.macro.tests
2

    
3
import java.io.File
4
import org.kohsuke.args4j.*
5
import groovy.transform.Field
6
import org.txm.rcp.swt.widget.parameters.*
7
import org.txm.Toolbox
8
import org.txm.rcp.commands.tests.*
9

    
10
@Field @Option(name="step", usage="step to execute, 0=all 1=export&test 2=test", widget="Integer", required=true, def="0")
11
int step
12

    
13
// Open the parameters input dialog box
14
if (!ParametersDialog.open(this)) return;
15

    
16
if (step < 0) step = 0;
17
if (step > 3) step = 2;
18

    
19
TestBench bench = GroovyTestBench.getTests();
20
for (Test test : bench.getTests().values()) {
21
        test.reset();
22
}