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 StashVcsComponent
doOAuthDance()
StashVcsComponent
doOAuthDance(Consumer<String> logger)
StashVcsComponent
doOAuthDanceIfNeeded()
StashVcsComponent
doOAuthDanceIfNeeded(Consumer<String> logger)
List<String>
getAvailableMirrorsNames(boolean expectingActualSelection)
@NotNull String
getDisplayName()
text use in repository selection (option field or link text)String
getErrorMessage()
List<String>
getErrorMessages()
String
getInfo()
String
getMirrorName()
String
getSelectedBranchValue()
String
getSelectedRepositoryValue()
@NotNull List<String>
getVisibleBranches()
String
getWarning()
boolean
hasErrorMessage(String text)
com.atlassian.pageobjects.elements.query.TimedCondition
hasErrorMessages()
com.atlassian.pageobjects.elements.query.TimedCondition
hasFormErrors()
com.atlassian.pageobjects.elements.query.TimedCondition
hasInfo()
com.atlassian.pageobjects.elements.query.TimedCondition
hasWarnings()
com.atlassian.pageobjects.elements.query.TimedCondition
isRepositoryAjaxCompleted()
com.atlassian.pageobjects.elements.query.TimedCondition
isWebRepositorySetToStash()
void
mustHaveErrorMessage()
void
openBranchSelector()
StashVcsComponent
populateStashDetails(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 selectorStashVcsComponent
populateStashDetails(TestBuildDetails plan)
StashVcsComponent
populateStashDetails(String projectName, String repositoryName, @Nullable String branchName)
boolean
requiresApplinkCreation()
boolean
requiresOAuthDance()
StashVcsComponent
selectBranch(@NotNull String branchName)
StashVcsComponent
selectMirror(@NotNull String mirrorName)
StashVcsComponent
selectRepository(@NotNull String repositoryName)
StashVcsComponent
selectRepository(@NotNull String projectKey, @NotNull String repositoryName)
StashVcsComponent
waitUntilBranchSelected()
StashVcsComponent
waitUntilRepositorySelected()
StashVcsComponent
waitUntilServerSelected()
StashVcsComponent
withAdvancedOptions()
-
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: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 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:
withAdvancedOptions
in classAbstractVcsComponent
-
-