com.atlassian.jira.pageobjects
Class JiraTestedProduct

java.lang.Object
  extended by com.atlassian.jira.pageobjects.JiraTestedProduct
All Implemented Interfaces:
com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>

public class JiraTestedProduct
extends Object
implements com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>

JIRA implementation of TestedProduct.

Since:
4.4

Field Summary
static String TEST_ONDEMAND_PROPERTY
           
static String TEST_SKIP_INSTANCE_SETUP_PROPERTY
           
 
Constructor Summary
JiraTestedProduct(com.atlassian.pageobjects.ProductInstance productInstance)
           
JiraTestedProduct(com.atlassian.pageobjects.TestedProductFactory.TesterFactory<com.atlassian.webdriver.pageobjects.WebDriverTester> testerFactory, com.atlassian.pageobjects.ProductInstance productInstance)
           
 
Method Summary
 Backdoor backdoor()
           
 JIRAEnvironmentData environmentData()
           
 UserCredentials getAdminCredentials()
           
protected  String getEnvironmentProperty(String key, String defaultValue)
           
protected  String getEnvironmentProperty(String key, String defaultValue, boolean allowEmpty)
           
 com.atlassian.pageobjects.PageBinder getPageBinder()
           
 com.atlassian.pageobjects.ProductInstance getProductInstance()
           
 UserCredentials getSysadminCredentials()
           
 com.atlassian.webdriver.pageobjects.WebDriverTester getTester()
           
<P extends com.atlassian.pageobjects.Page>
P
goTo(Class<P> pageClass, Object... params)
          Synonyme to visit(Class, Object...).
 JiraAdminHomePage goToAdminHomePage()
           
 DashboardPage gotoHomePage()
           
 AdvancedSearch goToIssueNavigator()
           
 JiraLoginPage gotoLoginPage()
           
 ViewIssuePage goToViewIssue(String issueKey)
           
 com.google.inject.Injector injector()
           
 boolean isAt(Class<? extends com.atlassian.pageobjects.Page> page)
           
 boolean isOnDemand()
           
 JiraTestedProduct logout()
           
 void quickLogin(String username, String password)
           
<P extends com.atlassian.pageobjects.Page>
P
quickLogin(String username, String password, Class<P> pageClass, Object... args)
           
 void quickLoginAsAdmin()
           
<P extends com.atlassian.pageobjects.Page>
P
quickLoginAsAdmin(Class<P> pageClass, Object... args)
           
 void quickLoginAsSysadmin()
           
<P extends com.atlassian.pageobjects.Page>
P
quickLoginAsSysadmin(Class<P> pageClass, Object... args)
           
 boolean shouldSkipSetup()
           
<P extends com.atlassian.pageobjects.Page>
P
visit(Class<P> pageClass, Object... args)
           
<P extends com.atlassian.pageobjects.Page>
com.atlassian.pageobjects.DelayedBinder<P>
visitDelayed(Class<P> pageClass, Object... args)
           
 WindowSession windowSession()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEST_ONDEMAND_PROPERTY

public static final String TEST_ONDEMAND_PROPERTY
See Also:
Constant Field Values

TEST_SKIP_INSTANCE_SETUP_PROPERTY

public static final String TEST_SKIP_INSTANCE_SETUP_PROPERTY
See Also:
Constant Field Values
Constructor Detail

JiraTestedProduct

public JiraTestedProduct(com.atlassian.pageobjects.TestedProductFactory.TesterFactory<com.atlassian.webdriver.pageobjects.WebDriverTester> testerFactory,
                         com.atlassian.pageobjects.ProductInstance productInstance)

JiraTestedProduct

public JiraTestedProduct(com.atlassian.pageobjects.ProductInstance productInstance)
Method Detail

getEnvironmentProperty

protected String getEnvironmentProperty(String key,
                                        String defaultValue)

getEnvironmentProperty

protected String getEnvironmentProperty(String key,
                                        String defaultValue,
                                        boolean allowEmpty)

gotoHomePage

public DashboardPage gotoHomePage()

goToAdminHomePage

public JiraAdminHomePage goToAdminHomePage()

quickLogin

public void quickLogin(String username,
                       String password)

quickLogin

public <P extends com.atlassian.pageobjects.Page> P quickLogin(String username,
                                                               String password,
                                                               Class<P> pageClass,
                                                               Object... args)

quickLoginAsSysadmin

public void quickLoginAsSysadmin()

quickLoginAsSysadmin

public <P extends com.atlassian.pageobjects.Page> P quickLoginAsSysadmin(Class<P> pageClass,
                                                                         Object... args)

quickLoginAsAdmin

public void quickLoginAsAdmin()

quickLoginAsAdmin

public <P extends com.atlassian.pageobjects.Page> P quickLoginAsAdmin(Class<P> pageClass,
                                                                      Object... args)

gotoLoginPage

public JiraLoginPage gotoLoginPage()

goToViewIssue

public ViewIssuePage goToViewIssue(String issueKey)

goToIssueNavigator

public AdvancedSearch goToIssueNavigator()

goTo

public <P extends com.atlassian.pageobjects.Page> P goTo(Class<P> pageClass,
                                                         Object... params)
Synonyme to visit(Class, Object...).

Type Parameters:
P - page type
Parameters:
pageClass - page class
params - params
Returns:
page instance

logout

public JiraTestedProduct logout()

visit

public <P extends com.atlassian.pageobjects.Page> P visit(Class<P> pageClass,
                                                          Object... args)
Specified by:
visit in interface com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>

visitDelayed

public <P extends com.atlassian.pageobjects.Page> com.atlassian.pageobjects.DelayedBinder<P> visitDelayed(Class<P> pageClass,
                                                                                                          Object... args)

isAt

public boolean isAt(Class<? extends com.atlassian.pageobjects.Page> page)

getPageBinder

public com.atlassian.pageobjects.PageBinder getPageBinder()
Specified by:
getPageBinder in interface com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>

getProductInstance

public com.atlassian.pageobjects.ProductInstance getProductInstance()
Specified by:
getProductInstance in interface com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>

getTester

public com.atlassian.webdriver.pageobjects.WebDriverTester getTester()
Specified by:
getTester in interface com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>

environmentData

public JIRAEnvironmentData environmentData()

backdoor

public Backdoor backdoor()

injector

public com.google.inject.Injector injector()

windowSession

public WindowSession windowSession()

shouldSkipSetup

public boolean shouldSkipSetup()

isOnDemand

public boolean isOnDemand()

getAdminCredentials

public UserCredentials getAdminCredentials()

getSysadminCredentials

public UserCredentials getSysadminCredentials()


Copyright © 2002-2015 Atlassian. All Rights Reserved.