Class LatestBuildsPortlet

    • Field Detail

      • NUMBER_OF_BUILDS

        public static final int NUMBER_OF_BUILDS
        Default number of latest builds to show.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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 Detail

      • 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.