Пример #1
0
        public override void OnTestStepExecutionBegin(TestStep testStep, TestStepBeginExecutionArgs args)
        {
            var testExtent = getExtentTest(testStep.ParentID).CreateNode($"Step: - {testStep.Title}");

            //var testExtent = getExtentTest(testStep.SystemID)[testStep.ParentID].CreateNode($"Step - {testStep.Title}");
            addToDictionary(testStep.SystemID, testExtent);
        }
        public override void OnTestStepExecutionBegin(TestStep testStep, TestStepBeginExecutionArgs args)
        {
            int time = 500;

            Thread.Sleep(time);
            LogEvent.Debug($"{MethodInfo.GetCurrentMethod().Name} {args.VirtualUser}, sleep time: {time} seconds");
        }
        public override void OnTestStepExecutionBegin(TestStep testStep, TestStepBeginExecutionArgs args)
        {
            //throw new InvalidOperationException();

            int time = 1;

            Thread.Sleep(time * 1000);
            LogEvent.Debug($"{MethodInfo.GetCurrentMethod().Name} {args.VirtualUser}, sleep time: {time} seconds");
        }
 private void TestStep_OnExecutionBegin(TestStep testStep, TestStepBeginExecutionArgs args)
 {
     if (this.InvokeRequired)
     {
         OnTestScriptObjectExecutionBeginDelegate d = new OnTestScriptObjectExecutionBeginDelegate(onBeginningTestScriptObjectExecution);
         BeginInvoke(d, new object[] { testStep, args });
     }
     else
     {
         onBeginningTestScriptObjectExecution(testStep, args);
     }
 }
        public override void OnTestStepExecutionBegin(TestStep testStep, TestStepBeginExecutionArgs args)
        {
            int offset = testObjectDictionary[testStep.ParentID] + 2;

            testStepKey = testStep.SystemID;
            testObjectDictionary.Add(testStep.SystemID, offset);

            string padding = getPadding(offset);

            using (StreamWriter sw = File.AppendText(resultFile))
            {
                sw.WriteLine(padding + "Test step:  " + testStep.Title);
            }
        }
 public override void OnTestStepExecutionBegin(TestStep testStep, TestStepBeginExecutionArgs args)
 {
     try
     {
         if (_validExecution)
         {
             onTestStepExecutionBegin(testStep, args);
         }
     }
     catch (Exception e)
     {
         _validExecution = false;
         LogEvent.Error(e.ToString());
         throw;
     }
 }
 public override void OnTestStepExecutionBegin(TestStep testStep, TestStepBeginExecutionArgs args)
 {
     throw new NotImplementedException();
 }
Пример #8
0
 public override void OnTestStepExecutionBegin(TestStep testStep, TestStepBeginExecutionArgs args)
 {
     Debug.WriteLine("SampleTestListener2 method:  " + MethodInfo.GetCurrentMethod().Name);
 }
Пример #9
0
 public override void OnTestStepExecutionBegin(TestStep testStep, TestStepBeginExecutionArgs args)
 {
 }
Пример #10
0
        private void TestStep_OnExecutionBegin(TestScriptObject testScriptObject, TestStepBeginExecutionArgs args)
        {
            TestProperties.SetPropertyValue("CurrentTestStep", testScriptObject);

            _listenerEventsClient?.OnTestStepExecutionBegin((TestStep)testScriptObject, args);
        }
 private static void TestStep_OnExecutionBegin(TestStep testStep, TestStepBeginExecutionArgs args)
 {
     LogEvent.Info(message: $"Beginning test step execution \"{testStep.Title}\"");
 }
Пример #12
0
 public abstract void OnTestStepExecutionBegin(TestStep testStep, TestStepBeginExecutionArgs args);
 private void onTestStepExecutionBegin(TestStep testStep, TestStepBeginExecutionArgs args)
 {
     _totalRunTestSteps++;
     _testStepChecksPass = _testStepChecksFail = _testStepChecksError = 0;
 }