public override void OnTestCaseExecutionBegin(TestCase testCase, TestCaseBeginExecutionArgs args)
        {
            int time = 1;

            Thread.Sleep(time * 1000);
            LogEvent.Debug($"{MethodInfo.GetCurrentMethod().Name} {args.VirtualUser}, sleep time: {time}");
        }
 private void onTestCaseExecutionBegin(TestCase testCase, TestCaseBeginExecutionArgs args)
 {
     _totalRunTestCases++;
     _testStepCounter       = 0;
     _testStepResultBuilder = new StringBuilder();
     _testStepResultBuilder.AppendLine("Test case test steps:");
     _testStepResultBuilder.AppendLine();
 }
 private void TestCase_OnExecutionBegin(TestCase testCase, TestCaseBeginExecutionArgs args)
 {
     if (this.InvokeRequired)
     {
         OnTestScriptObjectExecutionBeginDelegate d = new OnTestScriptObjectExecutionBeginDelegate(onBeginningTestScriptObjectExecution);
         BeginInvoke(d, new object[] { testCase, args });
     }
     else
     {
         onBeginningTestScriptObjectExecution(testCase, args);
     }
 }
        public override void OnTestCaseExecutionBegin(TestCase testCase, TestCaseBeginExecutionArgs args)
        {
            int offset = testObjectDictionary[testCase.ParentID] + 1;

            testObjectDictionary.Add(testCase.SystemID, offset);

            string padding = getPadding(offset);

            using (StreamWriter sw = File.AppendText(resultFile))
            {
                sw.WriteLine(padding + "Test case:  " + testCase.Title);
            }
        }
 public override void OnTestCaseExecutionBegin(TestCase testCase, TestCaseBeginExecutionArgs args)
 {
     try
     {
         if (_validExecution)
         {
             onTestCaseExecutionBegin(testCase, args);
         }
     }
     catch (Exception e)
     {
         _validExecution = false;
         LogEvent.Error(e.ToString());
         throw;
     }
 }
        public override void OnTestCaseExecutionBegin(TestCase testCase, TestCaseBeginExecutionArgs args)
        {
            Debug.Write("OnTestCaseExecutionBegin called, test case id = " + testCase.UserID + ", test plan runid = " + testPlanRunId);
            // Get the test case id from the QTF
            string testCaseId = testCase.UserID;

            // Set the correct test case run Id for each test case executed
            if (!String.IsNullOrEmpty(testCaseId))
            {
                testCaseRunId = getTestCaseRunId(testCaseId);
            }

            if (null == testPlanRunId || testPlanRunId == "")
            {
                var crap = testCase.ParentID;
            }
        }
 public override void OnTestCaseExecutionBegin(TestCase testCase, TestCaseBeginExecutionArgs args)
 {
     throw new NotImplementedException();
 }
示例#8
0
 public override void OnTestCaseExecutionBegin(TestCase testCase, TestCaseBeginExecutionArgs args)
 {
     Debug.WriteLine("SampleTestListener2 method:  " + MethodInfo.GetCurrentMethod().Name);
 }
示例#9
0
 public override void OnTestCaseExecutionBegin(TestCase testCase, TestCaseBeginExecutionArgs args)
 {
 }
示例#10
0
        private void TestCase_OnExecutionBegin(TestScriptObject testScriptObject, TestCaseBeginExecutionArgs args)
        {
            TestProperties.SetPropertyValue("CurrentTestCase", testScriptObject);

            _listenerEventsClient?.OnTestCaseExecutionBegin((TestCase)testScriptObject, args);
        }
 private static void TestCase_OnExecutionBegin(TestCase testCase, TestCaseBeginExecutionArgs args)
 {
     LogEvent.Info(message: $"Beginning test case execution \"{testCase.Title}\"");
 }
示例#12
0
 public abstract void OnTestCaseExecutionBegin(TestCase testCase, TestCaseBeginExecutionArgs args);
示例#13
0
        public override void OnTestCaseExecutionBegin(TestCase testCase, TestCaseBeginExecutionArgs args)
        {
            var testExtent = getExtentTest(testCase.ParentID).CreateNode($"Test case: - {testCase.Title}");

            addToDictionary(testCase.SystemID, testExtent);
        }