Class AbstractEditorAwareWebDriverTest
- java.lang.Object
-
- com.atlassian.confluence.webdriver.AbstractEditorAwareWebDriverTest
-
- Direct Known Subclasses:
AbstractEditorWebDriverTest
public abstract class AbstractEditorAwareWebDriverTest extends Object
The base-base class for Confluence Editor WebDriver tests.Makes it easier to run all the tests in the same Confluence editor page sequentially, and unlike the
AbstractEditorWebDriverTestit provides the option for subclasses to modify server state before going to the editor; by not having a @BeforeClass-annotated method.
-
-
Field Summary
Fields Modifier and Type Field Description CancelAnyAlertcancelAnyAlertstatic CancelAnyAlertcancelAnyAlertClassRuleprotected static EditorContenteditorContentprotected static EditorPageeditorPagecom.atlassian.webdriver.testing.rule.IgnoreBrowserRuleignoreRulecom.atlassian.webdriver.testing.rule.LogPageSourceRulelogPageSourceRuleLogTimeRulelogTimeRuleprotected static ConfluenceTestedProductproductprotected static ConfluenceRpcrpccom.atlassian.webdriver.testing.rule.WebDriverScreenshotRulewebDriverScreenshotRule
-
Constructor Summary
Constructors Constructor Description AbstractEditorAwareWebDriverTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearContent()static voidclearSession()static voidsetupEditor()Logs the browser in to the instance and loads a new editor page.static voidsetupServer()Creates the common ConfluenceRpc instance and resets server state with common test plugins.
-
-
-
Field Detail
-
product
protected static ConfluenceTestedProduct product
-
rpc
protected static ConfluenceRpc rpc
-
editorPage
protected static EditorPage editorPage
-
editorContent
protected static EditorContent editorContent
-
ignoreRule
public com.atlassian.webdriver.testing.rule.IgnoreBrowserRule ignoreRule
-
webDriverScreenshotRule
public com.atlassian.webdriver.testing.rule.WebDriverScreenshotRule webDriverScreenshotRule
-
logPageSourceRule
public com.atlassian.webdriver.testing.rule.LogPageSourceRule logPageSourceRule
-
logTimeRule
public LogTimeRule logTimeRule
-
cancelAnyAlertClassRule
public static CancelAnyAlert cancelAnyAlertClassRule
-
cancelAnyAlert
public CancelAnyAlert cancelAnyAlert
-
-
Method Detail
-
setupServer
public static void setupServer() throws IOExceptionCreates the common ConfluenceRpc instance and resets server state with common test plugins.Intended for use in a subclass's BeforeClass-annotated method.
- Throws:
IOException
-
setupEditor
public static void setupEditor() throws InterruptedException, IOExceptionLogs the browser in to the instance and loads a new editor page.Intended for use in a subclass's BeforeClass-annotated method.
- Throws:
InterruptedExceptionIOException
-
clearContent
public void clearContent()
-
clearSession
public static void clearSession()
-
-