Exemplo n.º 1
0
 public void resume() {
   if (state.isRecordingPaused()) {
     runtime.startRecording(recorder);
     setState(State.RECORDING);
   } else {
     script.getDebugger().resume();
     setState(State.PLAYING);
   }
 }
Exemplo n.º 2
0
 public void omapCreate(IConsole console) {
   try {
     createRuntime(getFixtureHeader(), console, MarathonMode.RECORDING);
     runtime.createScript(getFixtureHeader(), "Objectmap Creation", false, true);
     startApplicationIfNecessary();
     runtime.startRecording(new DummyRecorder());
     setState(State.STOPPED_WITH_APP_OPEN);
   } catch (ScriptException e) {
     setState(State.STOPPED_WITH_APP_CLOSED);
     destroyRuntime();
     stopApplicationIfNecessary();
     reportException(e);
   }
 }
Exemplo n.º 3
0
 public void record(IConsole console) {
   logHeader(console, "Record");
   String scriptText = displayView.getScript();
   if (!validTestCase(scriptText)) {
     scriptText = getFixtureHeader() + scriptText;
   }
   try {
     createRuntime(scriptText, console, MarathonMode.RECORDING);
     displayView.startInserting();
     runtime.createScript(scriptText, displayView.getFilePath(), false, true);
     recorder = recorderProvider.get();
     startApplicationIfNecessary();
     runtime.startRecording(recorder);
     setState(State.RECORDING);
   } catch (Throwable e) {
     setState(State.STOPPED_WITH_APP_CLOSED);
     destroyRuntime();
     displayView.stopInserting();
     stopApplicationIfNecessary();
     reportException(e);
   }
 }