Beispiel #1
0
        public void UnloadTests()
        {
            Runner.Unload();
            Tests    = null;
            _package = null;
            _files   = null;
            _resultIndex.Clear();

            TestUnloaded?.Invoke(new TestEventArgs(TestAction.TestUnloaded));
        }
Beispiel #2
0
        private static void Unload(DataLayer.Test test, IEnumerable <Actor> actors)
        {
            foreach (Actor actor in actors)
            {
                switch (actor.Type)
                {
                case ActorType.Port:
                    QFManager.Port.Close(actor.Name);
                    break;

                case ActorType.Process:
                    QFManager.Process.Kill(actor.Name);
                    break;

                case ActorType.Prompt:
                    break;

                case ActorType.Recorder:
                    QFManager.Recorder.Close(actor.Name);
                    break;

                default:
                    throw new NotImplementedException();
                }
            }

            try
            {
                QFManager.Test.End(test.Name);
                Debug.Print("<Event=Test successfully unloaded,\tTest=" + test.Name + ">");
                if (TestUnloaded != null)
                {
                    TestUnloaded.BeginInvoke(null, new TestUnloadedEventArgs(test.Name), null, null);
                }
            }
            catch (Exception ex)
            {
                QFManager.Test.Abort(test.Name, ex.Message);
            }
        }
Beispiel #3
0
 public void FireTestUnloaded()
 {
     TestUnloaded?.Invoke(new TestEventArgs());
 }
 public void FireTestUnloaded()
 {
     TestUnloaded?.Invoke(new TestEventArgs(TestAction.TestUnloaded));
 }