Пример #1
0
        public void TestInitialize()
        {
            if (frameworkParameters.StopExecution)
            {
                AssemblyCleanup();
                //throw new SkipException("Aborting all subsequent tests!");
            }
            _startTime = Util.GetCurrentTime();
            string currentScenario = this.GetType().Name;
            string currentTestcase = testContextInstance.TestName;

            testParameters = new SeleniumTestParameters(currentScenario, currentTestcase);
            string[] tcName = Regex.Split(currentTestcase, "_");
            if (tcName.Length == 2)
            {
                int testCase = 0;
                if (int.TryParse(tcName[1], out testCase))
                {
                    testParameters.TestCaseNo = testCase;
                }
            }
        }
Пример #2
0
 /// <summary>
 ///  Constructor to initialize the DriverScript
 /// </summary>
 public DriverScript(SeleniumTestParameters testParameters)
 {
     this.testParameters = testParameters;
 }