Esempio n. 1
0
 @Test(priority = 6, dataProvider = "pageNavDataProvider")
 public void verifyPersonHpPageNavigation(String recordsToDisplay) {
   Assert.assertTrue(
       person.pageNavigation(recordsToDisplay), "person home page navigation does not work");
   logger.info("Test case passed: verify person home page pagination works fine");
   Reporter.log("Test case passed: verify person home page pagination works fine");
 }
Esempio n. 2
0
 @Test(priority = 2)
 public void verifyShowEntriesDropdownvalues() {
   Assert.assertTrue(person.getDropDownEntries(), "Show Entries drop down values does not match");
   logger.info(
       "Test case passed: verify user able to see values 10, 25, 50, 100 in 'Show entries' dropdown");
   Reporter.log(
       "Test case passed: verify user able to see values 10, 25, 50, 100 in 'Show entries' dropdown");
 }
Esempio n. 3
0
 @Test(priority = 7)
 public void verifyDiffPageNavLinkWorks() {
   Assert.assertTrue(
       person.clickOnDiffPageNavLinks(), "Different page navigation links do not work");
   logger.info(
       "Test case passed: verify page navigation links like First, Previous, Next and Last links work properly");
   Reporter.log(
       "Test case passed: verify page navigation links like First, Previous, Next and Last links work properly");
 }
Esempio n. 4
0
 @Test(priority = 3)
 public void verifyDefaultSelectedValueOfShowEntiresDropdown() {
   Assert.assertEquals(
       person.getdefaultSelectedShowEntriesOption(),
       "10",
       "By default, 10 is not selected in 'Show entries' dropdown");
   logger.info("Test case passed: verify by default, 10 is selected in 'Show entries' dropdown");
   Reporter.log("Test case passed: verify by default, 10 is selected in 'Show entries' dropdown");
 }
Esempio n. 5
0
 @Test(priority = 5)
 public void verifyRecordsDisplayedAsPerSelValInDropdown() {
   Assert.assertTrue(
       person.adjustNumberOfRecordsToBeDisplayedOnPersonHp(),
       "Incorrect number of records displayed on Person home page");
   logger.info(
       "Test case passed: verify correct number of records display on person home page as per value selected in the show entries drop down");
   Reporter.log(
       "Test case passed: verify correct number of records display on person home page as per value selected in the show entries drop down");
 }
Esempio n. 6
0
 @Test(priority = 10, dataProvider = "filterOptionDataProvider")
 public void verifyFilterFunctionality(String filterByOption) {
   Assert.assertTrue(
       person.filterByFunctionality(filterByOption),
       "Records filter functionality does not work on person home page");
   logger.info(
       "Test case passed: verify user able to filter records by Person ID, Person Name and Updated User");
   Reporter.log(
       "Test case passed: verify user able to filter records by Person ID, Person Name and Updated User");
 }
Esempio n. 7
0
 @Test(priority = 9)
 public void verifyDefaultFilterWorksOnPersonHp() {
   Assert.assertTrue(
       person.filterRecordsByUpdatedDate(),
       "By default records are not filtered by Last Updated Date on Person Home page");
   logger.info(
       "Test case passed: verify by default records are filtered by Last Updated Date in descending  order on Person Home page");
   Reporter.log(
       "Test case passed: verify by default records are filtered by Last Updated Date in descending order on Person Home page");
 }
Esempio n. 8
0
 @Test(priority = 8, dataProvider = "searchOptionDataProvider")
 public void verifySearchOnPersonHp(String searchByType) {
   Assert.assertTrue(
       person.diffSearchOnPersonHp(searchByType),
       "Search functionality does not work on person home page");
   logger.info(
       "Test case passed: verify user able to search records by person Id, Company Name, Deal Types, Updated User, From-To Date, Published");
   Reporter.log(
       "Test case passed: verify user able to search records by person Id, Company Name, Deal Types, Updated User, From-To Date, Published");
 }
Esempio n. 9
0
 @Test(priority = 4)
 public void verifyDefaultNumberOfRecordsDispOnPersonHp() {
   Assert.assertEquals(
       person.getNumberOfRecordsDisplayedOnPersonHp(),
       10,
       "Not 10 records are displayed per page");
   logger.info(
       "Test case passed: verify if 10 is selected in Show Entries, only 10 records are displayed per page");
   Reporter.log(
       "Test case passed: verify if 10 is selected in Show Entries, only 10 records are displayed per page");
 }
Esempio n. 10
0
 @Test(priority = 1)
 public void verifyAllColumnsDisplayedOnPersonHp() {
   loginPage = new LoginPage(driver);
   homePage = loginPage.clickLoginBtn(logger);
   person = homePage.clickOnPersonHome();
   Assert.assertTrue(
       person.verifyDifferentColumnsOnPersonHP(),
       "Not all columns are displayed on Person home page");
   logger.info(
       "Test case passed: verify all the person columns are displayed on Person home page");
   Reporter.log(
       "Test case passed: verify all the person columns are displayed on Person home page");
 }