Пример #1
0
        public void addNewTestStep(bool isPassed, String category,
                String errimg, String errthumb, String message, String stacktrace,
                String loglvl)
        {
            DateTime date = DateTime.Now;
            String time = date.ToString("h:mm:ss");
            String codefile = "UNKNOWN";
            String codeline = "UNKNOWN";

            testStep = new TestStep(isPassed, time, category, errimg, errthumb,
                    message, stacktrace, codefile, codeline, loglvl);

            testCase.testSteps.Add(testStep);

            if (!isPassed)
            {
                testCase.Result = "Failed";
                testSuite.Result = "Failed";
            }
        }
Пример #2
0
        public void addNewTestStep(bool isPassed, String category,
                String message, String loglvl)
        {
            DateTime date = DateTime.Now;
            String time = date.ToString("h:mm:ss");
            String codefile = "UNKNOWN";
            String codeline = "UNKNOWN";

            testStep = new TestStep(isPassed, time, category, message, codefile,
                    codeline, loglvl);

            testCase.testSteps.Add(testStep);
        }