예제 #1
0
  public void VerifyDateShowInfoColumn() throws Exception {

    Reporter.log("Verify column headers present of 'Date', 'Show', and 'Information'.");
    List<WebElement> allColumns = waitFor.ElementsVisible(ProgramGuideTbl_Cls);
    Assert.assertTrue(allColumns.get(0).getText().contains("Date"));
    Assert.assertTrue(allColumns.get(1).getText().contains("Show"));
    Assert.assertTrue(allColumns.get(2).getText().contains("Information"));
  }
예제 #2
0
  public void VerifyProgramGuideContainsShows() throws Exception {

    Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
    if (calendar.get(Calendar.HOUR_OF_DAY) < 18 && calendar.get(Calendar.HOUR_OF_DAY) > 14) {
      Reporter.log("Verify that there is at least one show in the program guide table.");
      List<WebElement> allRows = waitFor.ElementsVisible(ProgramGuideTbl_Rws);
      boolean showPresent = false;
      for (WebElement row : allRows) {
        if (!row.getText().contains("Network Programming")) {
          showPresent = true;
          break;
        }
      }
      if (showPresent == false) {
        Assert.fail("No shows present in the Program Guide.");
      }
    } else {
      Reporter.log("After 8pm, show availability limited.");
    }
  }