public class DelegatingQUnitTestProduct extends Object implements QUnitTestProduct
Constructor and Description |
---|
DelegatingQUnitTestProduct(ConfluenceTestedProduct product,
Class<? extends QUnitTestPage> testPage)
Create a test product that delegates to another.
|
Modifier and Type | Method and Description |
---|---|
void |
afterTest()
Navigates to a blank page and cleans up any dialogs attempting to block that navigation.
|
com.atlassian.pageobjects.PageBinder |
getPageBinder() |
com.atlassian.pageobjects.ProductInstance |
getProductInstance() |
com.atlassian.webdriver.pageobjects.WebDriverTester |
getTester() |
void |
login(User user) |
void |
logout() |
QUnitTestPage |
runTest(Map<String,Object> args) |
<P extends com.atlassian.pageobjects.Page> |
visit(Class<P> pClass,
Object... objects) |
public DelegatingQUnitTestProduct(ConfluenceTestedProduct product, Class<? extends QUnitTestPage> testPage)
product
- testPage
- the page to navigate to for the testspublic void login(User user)
login
in interface QUnitTestProduct
public void logout()
logout
in interface QUnitTestProduct
public QUnitTestPage runTest(Map<String,Object> args)
runTest
in interface QUnitTestProduct
public void afterTest()
afterTest
in interface QUnitTestProduct
public <P extends com.atlassian.pageobjects.Page> P visit(Class<P> pClass, Object... objects)
visit
in interface com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
public com.atlassian.pageobjects.PageBinder getPageBinder()
getPageBinder
in interface com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
public com.atlassian.pageobjects.ProductInstance getProductInstance()
getProductInstance
in interface com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
public com.atlassian.webdriver.pageobjects.WebDriverTester getTester()
getTester
in interface com.atlassian.pageobjects.TestedProduct<com.atlassian.webdriver.pageobjects.WebDriverTester>
Copyright © 2003–2017 Atlassian. All rights reserved.