Exemplo n.º 1
0
        public NunitGoActionAttribute(string testGuidString = "", string projectName = "", string className = "", 
            string testName = "")
        {
            _guid = testGuidString.Equals("")
                ? Guid.Empty
                : new Guid(testGuidString);
            _projectName = projectName;
            _className = className;
            _testName = testName;
            _configuration = NunitGoHelper.Configuration;

            _outputPath = _configuration.LocalOutputPath;
            _screenshotsPath = Output.GetScreenshotsPath(_outputPath);
            _attachmentsPath = Output.GetAttachmentsPath(_outputPath);
        }
Exemplo n.º 2
0
 static NunitGoHelper()
 {
     try
     {
         var path = GetPath();
         Directory.SetCurrentDirectory(path);
         var configuration = NunitGoConfigurationHelper.Load(@"NUnitGoConfig.xml");
         //var configuration = NunitGoConfigurationHelper.Load(Path.Combine(path, "NUnitGoConfig.xml"));
         Configuration = configuration;
     }
     catch (Exception ex)
     {
         Log.Exception(ex, GetPath(), "Exception in NunitGoHelper constructor");
     }
 }