public static API_Eclipse stopInNSeconds(this API_Eclipse eclipse, int seconds)
 {
     O2Thread.mtaThread(
         () => {
         eclipse.sleep(seconds * 1000);
         "Stopping eclipse process".info();
         eclipse.stop();
     });
     return(eclipse);
 }
예제 #2
0
		public string startAndStopEclipse()
		{
			stopAllEclipseProcesses();
			var eclipse = new API_Eclipse();
			eclipse.start();
			this.sleep(1000);
			Assert.That(Processes.getProcessesCalled("eclipse").size()==1, "there should only be one eclipse process");
			eclipse.stop();
			Assert.That(Processes.getProcessesCalled("eclipse").size()==1, "the eclipse process was still there");
			return "ok";
    	}
        public string startAndStopEclipse()
        {
            stopAllEclipseProcesses();
            var eclipse = new API_Eclipse();

            eclipse.start();
            this.sleep(1000);
            Assert.That(Processes.getProcessesCalled("eclipse").size() == 1, "there should only be one eclipse process");
            eclipse.stop();
            Assert.That(Processes.getProcessesCalled("eclipse").size() == 1, "the eclipse process was still there");
            return("ok");
        }
예제 #4
0
		public string startAndAcceptDefaultWorkspaceLocation()
		{
			var eclipse = new API_Eclipse();
			eclipse.start();
			Assert.That(eclipse.Eclipse_Process.notNull(), "eclipse.Eclipse_Process was null");
			var workSpaceLauncher = eclipse.getWindow_WorkspaceLauncher();
			Assert.That(workSpaceLauncher.notNull(), "workSpaceLauncher was null");
			var textBox = workSpaceLauncher.workspaceLauncher_get_WorkspaceLocation_TextBox ();
			var button = workSpaceLauncher.workspaceLauncher_get_Ok_Button(); 
			Assert.That(textBox.notNull() && button.notNull(), "failed to get workSpaceLauncher textbox or button");
			button.Click(); 
			var windows = eclipse.GuiAutomation.windows(); 
			Assert.That(windows.size()==1, "There should only be one window openned");
			eclipse.stop();
			Assert.That(eclipse.Eclipse_Process.HasExited,"Eclipse process should had exited");
			return "ok";
		}
        public string startAndAcceptDefaultWorkspaceLocation()
        {
            var eclipse = new API_Eclipse();

            eclipse.start();
            Assert.That(eclipse.Eclipse_Process.notNull(), "eclipse.Eclipse_Process was null");
            var workSpaceLauncher = eclipse.getWindow_WorkspaceLauncher();

            Assert.That(workSpaceLauncher.notNull(), "workSpaceLauncher was null");
            var textBox = workSpaceLauncher.workspaceLauncher_get_WorkspaceLocation_TextBox();
            var button  = workSpaceLauncher.workspaceLauncher_get_Ok_Button();

            Assert.That(textBox.notNull() && button.notNull(), "failed to get workSpaceLauncher textbox or button");
            button.Click();
            var windows = eclipse.GuiAutomation.windows();

            Assert.That(windows.size() == 1, "There should only be one window openned");
            eclipse.stop();
            Assert.That(eclipse.Eclipse_Process.HasExited, "Eclipse process should had exited");
            return("ok");
        }