Viki.LoadRunner.Engine.Executor.Threads.TestExecutorThread.QueueIteration C# (CSharp) Method

QueueIteration() public method

public QueueIteration ( int iteration ) : void
iteration int
return void
        public void QueueIteration(int iteration)
        {
            if (!IsAlive)
                throw new Exception("TestScenarioThread is not started");

            if (_executeIterationQueued)
                throw new Exception("Iteration execution already queued");

            _queuedIterationId = iteration;
            _executeIterationQueued = true;
        }

Usage Example

Exemplo n.º 1
0
        public bool TryEnqueueSingleIteration()
        {
            bool result = false;
            TestExecutorThread thread = TryDequeueFreeThread();

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

            return(result);
        }