Beispiel #1
0
        public void StartScript(LightScript lightScript)
        {
            InitializeNewRun();

            TestData.TestFixture = lightScript;
            RunnerFactory.PassDependencies(TestData);

            new Thread(delegate()
            {
                Task.Delay(150).Wait(); // make sure first screenshot is taken before starting running commands

                var runner = RunnerFactory.GetFor(lightScript.GetType());
                runner.Run(lightScript);

                ScreenStateThread.Stop();
                FeatureDetectionThread.Stop();

                TestRunEnd?.Invoke();
            }).Start();
        }
Beispiel #2
0
 private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     ScreenStateThread.Stop();
     FeatureDetectionThread.Stop();
     Application.Exit();
 }