test update

This commit is contained in:
bancika
2020-04-19 19:32:59 +02:00
parent 7df07c2bd1
commit 3c72fc5168
2 changed files with 4 additions and 4 deletions
@@ -15,7 +15,7 @@ public class TestPlayer {
private static final Logger LOG = Logger.getLogger(TestPlayer.class);
public static final int DELAY_MS = 5;
public static final int DELAY_MS = 2;
public List<StepResult> play(IPlugInPort plugInPort, DIYTest test) {
LOG.info("Playing test: " + test.getName());
@@ -177,7 +177,7 @@ public class TestMenuPlugin implements IPlugIn {
final File file = DialogFactory.getInstance().showOpenDialog(FileFilterEnum.TEST.getFilter(),
null, FileFilterEnum.TEST.getExtensions()[0], null);
final Presenter presenter = new Presenter(new MockView());
plugInPort.createNewProject();
if (file != null) {
swingUI.executeBackgroundTask(new ITask<List<StepResult>>() {
@@ -185,7 +185,7 @@ public class TestMenuPlugin implements IPlugIn {
@Override
public List<StepResult> doInBackground() throws Exception {
DIYTest test = projectFileManager.deserializeTestFromFile(file.getAbsolutePath());
List<StepResult> testResults = testPlayer.play(presenter, test);
List<StepResult> testResults = testPlayer.play(plugInPort, test);
return testResults;
}