public static void ClassInitialize(TestContext context)
 {
     ChassisValidation.Commands.AutoUserManagement.PrepareCMAutoUsers(new Uri(cmUrl).Host, password);
     adminUserCmTest = new CmRestTest(cmUrl, adminUserName, password, testDomainTestUser, testDomainName);
 }
 public static void ClassInitialize(TestContext context)
 {
     adminUserCmTest = new CmRestTest(cmUrl, adminUserName, password, testDomainTestUser, testDomainName);
 }
Пример #3
0
        static CmTestRunner()
        {
            cmurl = ConfigurationManager.AppSettings["CM_URL"];
            username = ConfigurationManager.AppSettings["UserName"];
            password = ConfigurationManager.AppSettings["Password"];

            testDomainTestUser = ConfigurationManager.AppSettings["LabDomainTestUser"];
            testDomainName = ConfigurationManager.AppSettings["LabDomainName"];

            logPath = TestLogName.Instance;

            loggers = new List<ILogger> {
                new TxtFileLogger(logPath),
                new ConsoleLogger()
            };

            cmTest = new CmRestTest(cmurl, username, password,testDomainTestUser,testDomainName, loggers);

            // find all public method ended with Test
            testMethods = (
                from test in cmTest.GetType().GetMethods()
                where test.Name.EndsWith("Test")
                select test
            ).ToList();
        }
 public static void ClassInitialize(TestContext context)
 {
     ChassisValidation.Commands.AutoUserManagement.PrepareCMAutoUsers(new Uri(cmUrl).Host, password);
     adminUserCmTest = new CmRestTest(cmUrl, adminUserName, password, testDomainTestUser, testDomainName);
 }