com.atlassian.bamboo.pageobjects.utils
Class ApplicationLinkUtils

java.lang.Object
  extended by com.atlassian.bamboo.pageobjects.utils.ApplicationLinkUtils

public class ApplicationLinkUtils
extends java.lang.Object


Constructor Summary
ApplicationLinkUtils()
           
 
Method Summary
 void createTwoWayApplicationLink(BambooTestedProduct bamboo, com.atlassian.pageobjects.TestedProduct<? extends com.atlassian.pageobjects.Tester> other)
          Create two way application link between Bamboo and another product and verifies it afterwards.
 void createTwoWayApplicationLink(BambooTestedProduct bamboo, com.atlassian.pageobjects.TestedProduct<? extends com.atlassian.pageobjects.Tester> other, boolean verifyOnBoth)
          Create two way application link between Bamboo and another product.
 void createTwoWayApplicationLinkWithTrustedApps(BambooTestedProduct bamboo, com.atlassian.pageobjects.TestedProduct<? extends com.atlassian.pageobjects.Tester> other)
           
 void deleteApplink(BambooTestedProduct bamboo, com.atlassian.pageobjects.TestedProduct other)
          Delete application link between Bamboo and other product
static org.hamcrest.Matcher<com.atlassian.webdriver.applinks.page.AbstractApplicationLinkPage.ApplicationLinkEntryRow> hasUrl(java.lang.String expectedUrl)
           
static org.hamcrest.Matcher<com.atlassian.webdriver.applinks.page.AbstractApplicationLinkPage.ApplicationLinkEntryRow> hasUrlThat(org.hamcrest.Matcher<java.lang.String> urlMatcher)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationLinkUtils

public ApplicationLinkUtils()
Method Detail

createTwoWayApplicationLink

public void createTwoWayApplicationLink(BambooTestedProduct bamboo,
                                        com.atlassian.pageobjects.TestedProduct<? extends com.atlassian.pageobjects.Tester> other)
Create two way application link between Bamboo and another product and verifies it afterwards. Prior to calling this method test should open both applications and authenticate with administrative credentials. Inspired by ApplicationLinkCreationTestHelper#createTwoWayLink in applinks-tests.

Parameters:
bamboo - Bamboo tested product
other - Other tested product, eg. Stash or Refapp

createTwoWayApplicationLink

public void createTwoWayApplicationLink(BambooTestedProduct bamboo,
                                        com.atlassian.pageobjects.TestedProduct<? extends com.atlassian.pageobjects.Tester> other,
                                        boolean verifyOnBoth)
Create two way application link between Bamboo and another product. Prior to calling this method test should open both applications and authenticate with administrative credentials. Inspired by ApplicationLinkCreationTestHelper#createTwoWayLink in applinks-tests.

Parameters:
bamboo - Bamboo tested product
other - Other tested product, eg. Stash or Refapp
verifyOnBoth - Verify if the applink has been added on both products

createTwoWayApplicationLinkWithTrustedApps

public void createTwoWayApplicationLinkWithTrustedApps(BambooTestedProduct bamboo,
                                                       com.atlassian.pageobjects.TestedProduct<? extends com.atlassian.pageobjects.Tester> other)

deleteApplink

public void deleteApplink(BambooTestedProduct bamboo,
                          com.atlassian.pageobjects.TestedProduct other)
Delete application link between Bamboo and other product


hasUrl

public static org.hamcrest.Matcher<com.atlassian.webdriver.applinks.page.AbstractApplicationLinkPage.ApplicationLinkEntryRow> hasUrl(java.lang.String expectedUrl)

hasUrlThat

public static org.hamcrest.Matcher<com.atlassian.webdriver.applinks.page.AbstractApplicationLinkPage.ApplicationLinkEntryRow> hasUrlThat(org.hamcrest.Matcher<java.lang.String> urlMatcher)


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.