コード例 #1
0
 public static void CreateNewAction()
 {
     ProgramAdmin.ProgramsNavigation();
     WebDriverUtils.HoldDriver();
     WebDriverUtils.ClickAction(ProgramsPageObjects.CreateNewProgramLink());
     WebDriverUtils.HoldDriver();
 }
コード例 #2
0
        public static void FundingSourceSearchTest()
        {
            var data = TestEnvironment.LoadJson();

            WebDriverUtils.InputValues(LoginPageObjects.EmailField(), data.Login.Username);
            WebDriverUtils.ClickAction(LoginPageObjects.NextButtonEmail());
            WebDriverUtils.InputValues(LoginPageObjects.PasswordField(), data.Login.Password);
            WebDriverUtils.ClickAction(LoginPageObjects.SignInButton());
            WebDriverUtils.ClickAction(LoginPageObjects.YesButton());
            WebDriverUtils.ClickAction(LoginPageObjects.DoneButton());
            WebDriverUtils.ClickAction(ProgramsPageObjects.ProgramHeaderLink());
            WebDriverUtils.ClickAction(FundingSourcePageObjects.FundingSourceLink());
            WebDriverUtils.InputValues(FundingSourcePageObjects.SearchFundingSourceField(), data.FundingSource.FundSearchKeyword);
            WebDriverUtils.ClickAction(FundingSourcePageObjects.FundingSourceRunSearch());
        }
コード例 #3
0
        public static void PartnerSearchAction()
        {
            var data = TestEnvironment.LoadJson();

            WebDriverUtils.InputValues(LoginPageObjects.EmailField(), data.Login.Username);
            WebDriverUtils.ClickAction(LoginPageObjects.NextButtonEmail());
            WebDriverUtils.InputValues(LoginPageObjects.PasswordField(), data.Login.Password);
            WebDriverUtils.ClickAction(LoginPageObjects.SignInButton());
            WebDriverUtils.ClickAction(LoginPageObjects.YesButton());
            WebDriverUtils.ClickAction(LoginPageObjects.DoneButton());
            WebDriverUtils.ClickAction(ProgramsPageObjects.ProgramHeaderLink());
            WebDriverUtils.ClickAction(PartnerPageObjects.PartnerLink());
            WebDriverUtils.InputValues(PartnerPageObjects.PartnerSearchField(), data.Partners.PartnerKeyword);
            WebDriverUtils.ClickAction(PartnerPageObjects.SearchPartnerIncludeInactiveCheckbox());
            WebDriverUtils.ClickAction(PartnerPageObjects.PartnerSearchButton());
        }
コード例 #4
0
        public static void ProgramSearchAction()
        {
            var data = TestEnvironment.LoadJson();

            WebDriverUtils.InputValues(LoginPageObjects.EmailField(), data.Login.Username);
            WebDriverUtils.ClickAction(LoginPageObjects.NextButtonEmail());
            WebDriverUtils.InputValues(LoginPageObjects.PasswordField(), data.Login.Password);
            WebDriverUtils.ClickAction(LoginPageObjects.SignInButton());
            WebDriverUtils.ClickAction(LoginPageObjects.YesButton());
            WebDriverUtils.ClickAction(LoginPageObjects.DoneButton());
            WebDriverUtils.ClickAction(ProgramsPageObjects.ProgramHeaderLink());
            WebDriverUtils.HoldDriver();
            WebDriverUtils.InputValues(ProgramsPageObjects.ProgramSearchField(), data.Programs.ProgramKeyword);
            WebDriverUtils.HoldDriver();
            WebDriverUtils.ClickAction(ProgramsPageObjects.RunSearch());
        }
コード例 #5
0
 public void ProgramsOverviewNavigationTest()
 {
     try
     {
         ProgramOverview.ProgramOverviewNavigation();
         WebDriverUtils.HoldDriver();
         Assert.AreEqual(TestEnvironment.LoadJson().Programs.ProgramOverviewGenDetails, WebDriverUtils.TextChecker(ProgramsPageObjects.ProgramOverviewGenDetails()));
         Assert.AreEqual(TestEnvironment.LoadJson().Programs.ProgramOverviewEligReq, WebDriverUtils.TextChecker(ProgramsPageObjects.ProgramOverviewEligibilityHeader()));
         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);
     }
 }
コード例 #6
0
 public void ProgramsCreateNewTest()
 {
     try
     {
         ProgramAdminCreateNew.CreateNewAction();
         Assert.AreEqual(TestEnvironment.LoadJson().Programs.CreateNewHeader, WebDriverUtils.TextChecker(ProgramsPageObjects.CreateNewProgramHeader()));
         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);
     }
 }
コード例 #7
0
 public void ProgramsSearchTest()
 {
     try
     {
         ProgramsSearchAction.ProgramSearchAction();
         WebDriverUtils.HoldDriver();
         Assert.AreNotEqual(TestEnvironment.LoadJson().Programs.ResultCount, WebDriverUtils.TextChecker(ProgramsPageObjects.SeachResultCount()));
         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);
     }
 }
コード例 #8
0
 public static void ProgramsNavigation()
 {
     LoginAction.Login();
     WebDriverUtils.ClickAction(ProgramsPageObjects.ProgramHeaderLink());
 }
コード例 #9
0
 public static void ProgramOverviewNavigation()
 {
     ProgramsSearchAction.ProgramSearchAction();
     WebDriverUtils.ClickAction(ProgramsPageObjects.ProgramOverviewNavigation());
 }