java.lang.Object
com.atlassian.bamboo.pageobjects.pages.plan.configuration.repository.AbstractVcsComponent
com.atlassian.bamboo.pageobjects.pages.plan.configuration.repository.stash.StashVcsComponent
All Implemented Interfaces:
VcsComponent

public class StashVcsComponent extends AbstractVcsComponent
  • Constructor Details

    • StashVcsComponent

      public StashVcsComponent()
    • StashVcsComponent

      public StashVcsComponent(VcsConfigurationComponent vcsConfigurationComponent)
  • Method Details

    • getDisplayName

      @NotNull public @NotNull String getDisplayName()
      Description copied from interface: VcsComponent
      text use in repository selection (option field or link text)
    • populateStashDetails

      public StashVcsComponent populateStashDetails(TestBuildDetails plan) throws Exception
      Throws:
      Exception
    • populateStashDetails

      public StashVcsComponent populateStashDetails(com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties repository) throws Exception
      We're using VcsRepositoryProperties.getDescription() to define "Project-name / repository-name" value to choose in the UI selector
      Throws:
      Exception
    • populateStashDetails

      public StashVcsComponent populateStashDetails(String projectName, String repositoryName, @Nullable @Nullable String branchName) throws Exception
      Throws:
      Exception
    • waitUntilServerSelected

      public StashVcsComponent waitUntilServerSelected()
    • selectRepository

      public StashVcsComponent selectRepository(@NotNull @NotNull String repositoryName)
    • selectMirror

      public StashVcsComponent selectMirror(@NotNull @NotNull String mirrorName)
    • getAvailableMirrorsNames

      public List<String> getAvailableMirrorsNames(boolean expectingActualSelection)
    • getMirrorName

      public String getMirrorName()
    • selectRepository

      public StashVcsComponent selectRepository(@NotNull @NotNull String projectKey, @NotNull @NotNull String repositoryName)
    • getSelectedRepositoryValue

      public String getSelectedRepositoryValue()
    • waitUntilRepositorySelected

      public StashVcsComponent waitUntilRepositorySelected()
    • openBranchSelector

      public void openBranchSelector()
    • getVisibleBranches

      @NotNull public @NotNull List<String> getVisibleBranches()
    • selectBranch

      public StashVcsComponent selectBranch(@NotNull @NotNull String branchName)
    • getSelectedBranchValue

      public String getSelectedBranchValue()
    • waitUntilBranchSelected

      public StashVcsComponent waitUntilBranchSelected()
    • doOAuthDanceIfNeeded

      public StashVcsComponent doOAuthDanceIfNeeded() throws Exception
      Throws:
      Exception
    • doOAuthDanceIfNeeded

      public StashVcsComponent doOAuthDanceIfNeeded(Consumer<String> logger) throws Exception
      Throws:
      Exception
    • doOAuthDance

      public StashVcsComponent doOAuthDance() throws Exception
      Throws:
      Exception
    • doOAuthDance

      public StashVcsComponent doOAuthDance(Consumer<String> logger) throws Exception
      Throws:
      Exception
    • mustHaveErrorMessage

      public void mustHaveErrorMessage()
    • hasErrorMessages

      public com.atlassian.pageobjects.elements.query.TimedCondition hasErrorMessages()
    • getErrorMessage

      public String getErrorMessage()
    • getErrorMessages

      public List<String> getErrorMessages()
    • hasErrorMessage

      public boolean hasErrorMessage(String text)
    • hasFormErrors

      public com.atlassian.pageobjects.elements.query.TimedCondition hasFormErrors()
    • requiresApplinkCreation

      public boolean requiresApplinkCreation()
    • requiresOAuthDance

      public boolean requiresOAuthDance()
    • hasWarnings

      public com.atlassian.pageobjects.elements.query.TimedCondition hasWarnings()
    • isRepositoryAjaxCompleted

      public com.atlassian.pageobjects.elements.query.TimedCondition isRepositoryAjaxCompleted()
    • getWarning

      public String getWarning()
    • hasInfo

      public com.atlassian.pageobjects.elements.query.TimedCondition hasInfo()
    • getInfo

      public String getInfo()
    • isWebRepositorySetToStash

      public com.atlassian.pageobjects.elements.query.TimedCondition isWebRepositorySetToStash()
    • withAdvancedOptions

      public StashVcsComponent withAdvancedOptions()
      Overrides:
      withAdvancedOptions in class AbstractVcsComponent