Class LatestBuildsPortlet

All Implemented Interfaces:
CapybaraPortingLayer, Control.Owner, PageArea

public class LatestBuildsPortlet extends AbstractDashboardViewPortlet
The basic latest builds portlet shipped with the dashboard view plugin.
Author:
Rene Zarwel
  • Field Details

    • PORTLET_NAME

      public static final String PORTLET_NAME
      Default name of this Portlet.
      See Also:
    • NUMBER_OF_BUILDS

      public static final int NUMBER_OF_BUILDS
      Default number of latest builds to show.
      See Also:
  • Constructor Details

    • LatestBuildsPortlet

      public LatestBuildsPortlet(DashboardView parent, String path)
      Constructs a new latest builds portlet.
      Parameters:
      parent - Parent dashboard view this portlet is scoped to.
      path - Absolute path to the area.
  • Method Details

    • getTable

      public org.openqa.selenium.WebElement getTable()
      Gets the latest builds table as WebElement.
      Returns:
      latest builds table
    • setNumberOfBuilds

      public void setNumberOfBuilds(int number)
      Sets the number of builds of the portlet.
      Parameters:
      number - the number of builds of the portlet
    • getNumberOfBuilds

      public int getNumberOfBuilds()
      Returns the number of builds of the portlet.
      Returns:
      the number of builds of the portlet
    • hasJob

      public boolean hasJob(String jobName)
      Returns true if this Portlet contains a job with the given name.
      Parameters:
      jobName - Name of the job to look for.
      Returns:
      True, if this Portlet contains a job with the given name.
    • hasBuild

      public boolean hasBuild(int buildNr)
      Returns true if this Portlet contains a build with the given number.
      Parameters:
      buildNr - Number of the build to look for.
      Returns:
      True, if this Portlet contains a build with the given number.
    • openJob

      public void openJob(String jobName)
      Opens the job with the given name, if it exists in the Portlet.
      Parameters:
      jobName - Name of the job to open.
    • openBuild

      public void openBuild(int buildNr)
      Opens the build with the given number, if it exists in the Portlet.
      Parameters:
      buildNr - number of the build to open.