示例#1
0
 public static void CreateNewOrganiaztionAction()
 {
     SystemAdminOrganization.OrganizationNavigation();
     WebDriverUtils.ClickAction(OrganizationPageObjects.CreateNewOffice());
 }
示例#2
0
 public void OrganizationNavigationTest()
 {
     try
     {
         SystemAdminOrganization.OrganizationNavigation();
         Assert.AreEqual(TestEnvironment.LoadJson().Organization.LinkLanded, WebDriverUtils.TextChecker(OrganizationPageObjects.OrganizationLink()));
         log.Info(System.Reflection.MethodBase.GetCurrentMethod());
         log.Info(LoginPageObjects.SuccessMessage());
     }
     catch (Exception ex)
     {
         log.Error(System.Reflection.MethodBase.GetCurrentMethod());
         log.Error(LoginPageObjects.FailedMessage() + ex.Message);
         Assert.Fail(ex.Message);
     }
 }
示例#3
0
 public void OrganizationCreateNewTest()
 {
     try
     {
         SystemAdminOrganizationCreateNew.CreateNewOrganiaztionAction();
         Assert.AreEqual(TestEnvironment.LoadJson().Organization.CreateOrg, WebDriverUtils.TextChecker(OrganizationPageObjects.CreateOfficeHeader()));
         log.Info(System.Reflection.MethodBase.GetCurrentMethod());
         log.Info(LoginPageObjects.SuccessMessage());
     }
     catch (Exception ex)
     {
         log.Error(System.Reflection.MethodBase.GetCurrentMethod());
         log.Error(LoginPageObjects.FailedMessage() + ex.Message);
         Assert.Fail(ex.Message);
     }
 }
 public static void OrganizationNavigation()
 {
     LoginAction.Login();
     WebDriverUtils.ClickAction(OrganizationPageObjects.SystemAdminLink());
 }