Exemplo n.º 1
0
 private void NewThread_ScenarioSetupSucceeded(TestExecutorThread sender)
 {
     if (!_disposing && !sender.QueuedToStop)
     {
         _idleThreads.Enqueue(sender);
         _initializedThreads.TryAdd(sender.ThreadId, sender);
     }
 }
Exemplo n.º 2
0
        private void ExecutorThread_ThreadFailed(TestExecutorThread sender, IterationResult result, Exception ex)
        {
            if (!_disposing)
            {
                TryRemoveThread(sender.ThreadId);

                _threadErrors.Add(ex);
            }
        }
Exemplo n.º 3
0
        public bool TryEnqueueSingleIteration()
        {
            bool result = false;
            TestExecutorThread thread = TryDequeueFreeThread();

            if (thread != null)
            {
                thread.QueueIteration(_nextIterationId++);
                result = true;
            }

            return(result);
        }
Exemplo n.º 4
0
        private void ExecutorThreadScenarioIterationFinished(TestExecutorThread sender, IterationResult result)
        {
            if (!_disposing)
            {
                result.CreatedThreads = _allThreads.Count;
                result.WorkingThreads = _initializedThreads.Count - _idleThreads.Count;

                OnScenarioExecutionFinished(result);

                if (!sender.QueuedToStop)
                {
                    _idleThreads.Enqueue(sender);
                }
            }
        }
Exemplo n.º 5
0
        private void ExecutorThread_ThreadFailed(TestExecutorThread sender, IterationResult result, Exception ex)
        {
            if (!_disposing)
            {
                TryRemoveThread(sender.ThreadId);

                _threadErrors.Add(ex);
            }
        }
Exemplo n.º 6
0
        private void ExecutorThreadScenarioIterationFinished(TestExecutorThread sender, IterationResult result)
        {
            if (!_disposing)
            {
                result.CreatedThreads = _allThreads.Count;
                result.WorkingThreads = _initializedThreads.Count - _idleThreads.Count;

                OnScenarioExecutionFinished(result);

                if (!sender.QueuedToStop)
                    _idleThreads.Enqueue(sender);
            }
        }
Exemplo n.º 7
0
 private void NewThread_ScenarioSetupSucceeded(TestExecutorThread sender)
 {
     if (!_disposing && !sender.QueuedToStop)
     {
         _idleThreads.Enqueue(sender);
         _initializedThreads.TryAdd(sender.ThreadId, sender);
     }
 }