Class StashVcsComponent
- 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
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.pageobjects.pages.plan.configuration.repository.AbstractVcsComponent
convertToLinkedButton, driver, elementFinder, globalRepositoryDetails, pageBinder, repositoryDisplayName
-
-
Constructor Summary
Constructors Constructor Description StashVcsComponent()StashVcsComponent(VcsConfigurationComponent vcsConfigurationComponent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StashVcsComponentdoOAuthDance()StashVcsComponentdoOAuthDance(Consumer<String> logger)StashVcsComponentdoOAuthDanceIfNeeded()StashVcsComponentdoOAuthDanceIfNeeded(Consumer<String> logger)List<String>getAvailableMirrorsNames(boolean expectingActualSelection)@NotNull StringgetDisplayName()text use in repository selection (option field or link text)StringgetErrorMessage()List<String>getErrorMessages()StringgetInfo()StringgetMirrorName()StringgetSelectedBranchValue()StringgetSelectedRepositoryValue()@NotNull List<String>getVisibleBranches()StringgetWarning()booleanhasErrorMessage(String text)com.atlassian.pageobjects.elements.query.TimedConditionhasErrorMessages()com.atlassian.pageobjects.elements.query.TimedConditionhasFormErrors()com.atlassian.pageobjects.elements.query.TimedConditionhasInfo()com.atlassian.pageobjects.elements.query.TimedConditionhasWarnings()com.atlassian.pageobjects.elements.query.TimedConditionisRepositoryAjaxCompleted()com.atlassian.pageobjects.elements.query.TimedConditionisWebRepositorySetToStash()voidmustHaveErrorMessage()voidopenBranchSelector()StashVcsComponentpopulateStashDetails(com.atlassian.bamboo.specs.model.repository.bitbucket.server.BitbucketServerRepositoryProperties repository)We're usingVcsRepositoryProperties.getDescription()to define "Project-name / repository-name" value to choose in the UI selectorStashVcsComponentpopulateStashDetails(TestBuildDetails plan)StashVcsComponentpopulateStashDetails(String projectName, String repositoryName, @Nullable String branchName)booleanrequiresApplinkCreation()booleanrequiresOAuthDance()StashVcsComponentselectBranch(@NotNull String branchName)StashVcsComponentselectMirror(@NotNull String mirrorName)StashVcsComponentselectRepository(@NotNull String repositoryName)StashVcsComponentselectRepository(@NotNull String projectKey, @NotNull String repositoryName)StashVcsComponentwaitUntilBranchSelected()StashVcsComponentwaitUntilRepositorySelected()StashVcsComponentwaitUntilServerSelected()StashVcsComponentwithAdvancedOptions()-
Methods inherited from class com.atlassian.bamboo.pageobjects.pages.plan.configuration.repository.AbstractVcsComponent
canConvertToLinked, configureBambooSpecs, convertToLinked, isConvertToLinkedButtonEnabled, isConvertToLinkedButtonPresent, isLinkedRepository, save, saveCreate, saveUpdate, setDisplayName, supportsRss, withChangeDetectionOptions, withCommitIsolation, withDefaultRepositoryPermission
-
-
-
-
Constructor Detail
-
StashVcsComponent
public StashVcsComponent()
-
StashVcsComponent
public StashVcsComponent(VcsConfigurationComponent vcsConfigurationComponent)
-
-
Method Detail
-
getDisplayName
@NotNull public @NotNull String getDisplayName()
Description copied from interface:VcsComponenttext 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 usingVcsRepositoryProperties.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()
-
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()
-
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:
withAdvancedOptionsin classAbstractVcsComponent
-
-