internal TMXGetTestResultDetailsCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal TMXNewTestPlatformCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal TMXSetCurrentTestResultCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal TmxInvokeTestSuiteCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
internal TMXInvokeTestCaseCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal TMXGetTestScenarioStatusCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal TMXAddTestResultDetailCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal BDDAddScenarioCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal TmxGetTestSuiteStatusCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
internal TMXNewTestSuiteCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal TMXOpenTestScenarioCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal TMXGetTestResultStatusCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal TMXAddSimpleTestResultCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal BDDNewFeatureCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal TMXRemoveTestCaseCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
public static void InitializeStorage(CommonCmdletBase cmdlet) { //Console.WriteLine("-0005"); if (!string.IsNullOrEmpty(TMX.Preferences.StorageUsername)) { // if (null != TMX.Preferences.StorageUsername && string.Empty != TMX.Preferences.StorageUsername) { //Console.WriteLine("-0004"); TMX.Preferences.StorageConnectionString = //@"Data Source=" + @"Server=" + TMX.Preferences.StorageServer + //";Initial Catalog=" + ";Database=" + TMX.Preferences.StorageDatabase + ";Username="******";Password="******";"; } else { //Console.WriteLine("-0003"); TMX.Preferences.StorageConnectionString = //@"Data Source=" + @"Server=" + TMX.Preferences.StorageServer + //";Initial Catalog=" + ";Database=" + TMX.Preferences.StorageDatabase + ";Integrated Security=SSPI;"; } try { //Console.WriteLine("-0002"); cmdlet.WriteVerbose("building configuration..."); //Console.WriteLine("-0001"); //Console.WriteLine(TMX.Preferences.StorageConnectionString); if (null == Fluently.Configure()) { Console.WriteLine("Fluently == null"); } Console.WriteLine("Fluently != null"); Fluently.Configure(); // .Database(MsSqlConfiguration // .MsSql2008 // //.ConnectionString(TMX.Preferences.StorageConnectionString)) // //.ConnectionString(x => x.Is(connString))) // .ConnectionString(x => x.Is(TMX.Preferences.StorageConnectionString))) // //.Mappings(m => m.FluentMappings.AddFromAssemblyOf<ProductMap>()) // .Mappings(m => m.FluentMappings // .AddFromAssemblyOf<TestSuiteMap>()) // //.AddFromAssemblyOf<System.Object>()) // .ExposeConfiguration(CreateSchema) // .BuildConfiguration(); Console.WriteLine("storage 00001"); cmdlet.WriteVerbose("creating session factory..."); SessionFactory = Fluently.Configure() .Database(MsSqlConfiguration .MsSql2008 .ConnectionString(TMX.Preferences.StorageConnectionString)) .Mappings(m =>m.FluentMappings //.AddFromAssembly(Assembly.GetExecutingAssembly())) .AddFromAssemblyOf<TestSuiteMap>()) //.AddFromAssemblyOf<System.Object>()) .BuildSessionFactory(); Console.WriteLine("00002"); cmdlet.WriteVerbose("session factory has been created..."); } catch (Exception eSession) { cmdlet.WriteError( cmdlet, eSession.InnerException.Message, "SessionFailed", ErrorCategory.InvalidOperation, true); } }
internal TMXSetTestCaseCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal TMXInvokeTestScenarioCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal TMXCloseTestResultCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal TMXNewLoggerCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal TMXCommand(CommonCmdletBase cmdlet) { this.Cmdlet = cmdlet; }
internal TmxStartLoggingCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }