public class WebPageTestBasicContext extends Object
beforePageTests(). Then it will launch Jetty, your webapp and a
Selenium client before running any tests in that suite. To shut them down
afterwards, run afterPageTests().
If you're using TestNG, use the WebPageTestContext subclass.
In your test cases, you can obtain the global Selenium client by
getSelenium(). However, usually you should obtain a
WicketSelenium instead which contains special support for HTML pages
generated by Wicket.
If you'd like to customize the behaviors of WebPageTestBasicContext,
you can create a Configuration object and then pass it to
beforePageTests(Configuration). To do that, just create a wrapper
class with a BeforeSuite method and a AfterSuite method.
These methods should call beforePageTests(Configuration) and
afterPageTests() respectively.
Configuration| Constructor and Description |
|---|
WebPageTestBasicContext() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterPageTests() |
static void |
beforePageTests() |
static void |
beforePageTests(Configuration cfg) |
org.apache.wicket.protocol.http.WebApplication |
getApplication() |
static Configuration |
getConfiguration() |
static org.openqa.selenium.WebDriver |
getSelenium() |
static org.apache.wicket.protocol.http.WebApplication |
getWebApplication() |
static WicketSeleniumDriver |
getWicketSelenium() |
public static void beforePageTests(Configuration cfg) throws Exception
Exceptionpublic static Configuration getConfiguration()
public static WicketSeleniumDriver getWicketSelenium()
public org.apache.wicket.protocol.http.WebApplication getApplication()
public static org.openqa.selenium.WebDriver getSelenium()
public static org.apache.wicket.protocol.http.WebApplication getWebApplication()
Copyright © 2009–2018. All rights reserved.