public class GalenSpecRunner
extends org.junit.runner.Runner
@RunWith(GalenSpecRunner.class)
@Exclude("firstExclude", "secondExclude")
@Include("firstInclude", "secondInclude")
@Size(width=640, height=480)
@Spec("/my/package/homepage.gspec")
@Url("http://localhost:13728/")
public void SinglePageTest {
}
This test performs a single page test for the URL
http://localhost:13728/. It starts the browser, sets its size to
640x480 and verifies that the page fulfills the specification
homepage.spec. It excludes the sections firstExclude and
secondExclude of the specification and includes the sections
firstInclude and secondInclude.
The annotations @Size, @Spec and
@Url are mandatory.
| Constructor and Description |
|---|
GalenSpecRunner(Class<?> testClass)
Constructs a new
GalenSpecRunner that will run testClass. |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runner.Description |
getDescription() |
void |
run(org.junit.runner.notification.RunNotifier notifier) |
public GalenSpecRunner(Class<?> testClass) throws org.junit.runners.model.InitializationError
GalenSpecRunner that will run testClass.testClass - the class with the test specification.org.junit.runners.model.InitializationErrorpublic org.junit.runner.Description getDescription()
getDescription in interface org.junit.runner.DescribablegetDescription in class org.junit.runner.Runnerpublic void run(org.junit.runner.notification.RunNotifier notifier)
run in class org.junit.runner.RunnerCopyright © 2016. All rights reserved.