예제 #1
0
        public override object DoRun()
        {
            Interpreter.IsAlive = false;

            //TODO : the result should be processed by triage, success/failure evaluation must not be done by reports
            //WriteResults(Interpreter.IsRunningSuite, Interpreter.Plan);

            SharedObjectDataAccess.Instance = new Lazy <SharedObjectDataAccess>();

            if (Interpreter.Plan.Any(x => (x).Status == KeywordStatus.Error.ToString()))
            {
                return(new ResultAnswer(Program.ScenarioFailureStatusCode));
            }

            var objectsToBeWritten = Interpreter.GetLoggedKeywords();

            Selenium.Dispose();

            //new TempFileObjectAccess(Applications.Interpreter.LastScenarioTempFilePath + ".csv", ServiceLocator.Instance.Resolve<ITypeRegistry>())
            //    .Write(objectsToBeWritten);

            return(new ResultAnswer(Program.OkStatusCode));
        }