public ReportConfiguration(IReportSettingsProvider configurationProvider)
        {
            provider = configurationProvider;

            ReportablePageObjectActions = provider.GetPageObjectMethodNames();
            ReportableElementActions    = provider.GetWebElementMethodNames();
        }
Beispiel #2
0
        public Reporter(IReportSettingsProvider provider, string className, string methodName)
        {
            configuration = new ReportConfiguration(provider);

            if (className != InternalReporter.PreviousClassName)
            {
                InternalReporter.PreviousClassName = className;
                InternalReporter.PreviousTimeStamp = Regex.Replace(DateTime.Now.ToString(), @"[^0-9a-zA-Z]+", "");
            }

            string directory = $@"{provider.ReportFilesDropDirectory}\{className}.{InternalReporter.PreviousTimeStamp}";

            Directory.CreateDirectory(directory);
            debugFile = $@"{directory}\{methodName}.txt";
            File.AppendAllText(debugFile, "Test run log" + Environment.NewLine + Environment.NewLine);
        }