コード例 #1
0
ファイル: SmokeTests.cs プロジェクト: surf78/CMS-Automation
 public void SMK04_VerifyArtistCreation()
 {
     TestGroupName = GetType().Name;
     TestName      = TestContext.TestName;
     CreateFolders(TestGroupName, TestName);
     try
     {
         var tmp = File.ReadAllText(@datapath + "\\path.txt");
         ArtistModule.VerifyAddArtist(tmp, TestGroupName, TestName);
     }
     catch (Exception e)
     {
         _verificationErrors.Append(e.Message);
         Assert.Fail(e.Message);
     }
 }
コード例 #2
0
        public static void Setup()
        {
            Console.WriteLine("E3");
            Driver = GetWebDriver(ConfigurationSettings.AppSettings["browser"]);
            string baseUrl = ConfigurationSettings.AppSettings["baseUrl"];

            Console.WriteLine("E4");
            Driver.Manage().Window.Maximize();
            Driver.Navigate().GoToUrl(baseUrl);
            LoginModule        = new LoginModule(Driver);
            CompanyModule      = new CompanyModule(Driver);
            DashboardModule    = new DashboardModule(Driver);
            ArtistModule       = new ArtistModule(Driver);
            GroupModule        = new GroupModule(Driver);
            ContentModule      = new ContentModule(Driver);
            ElementPresentTest = new ElementPresentTest(Driver);
        }