Class AbstractBaseGetFixture
java.lang.Object
de.latlon.ets.wms13.core.dgiwg.testsuite.AbstractBaseGetFixture
- Direct Known Subclasses:
AbstractBaseGetCapabilitiesFixture,BaseGetFeatureInfoFixture,BaseGetMapFixture
A supporting base class that provides common configuration methods and data providers.
The configuration methods are invoked before any that may be defined in a subclass.
- Author:
- Lyn Goltz
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DocumentBuilderprotected static final de.latlon.ets.core.util.NamespaceBindingsprotected WmsKvpRequestprotected Documentprotected Documentprotected WmsClient -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttributesOnTestFailure(org.testng.ITestResult result) Augments the test result with supplementary attributes in the event that a test method failed.voidaddAttributesOnTestSuccess(org.testng.ITestResult result) Augments the test result with supplementary attributes in the event that a test method succeeded.voidinitBaseFixture(org.testng.ITestContext testContext) Sets up the base fixture.voidInitializes the (namespace-aware) DOM parser.voidsetWmsClient(WmsClient wmsClient)
-
Field Details
-
NS_BINDINGS
protected static final de.latlon.ets.core.util.NamespaceBindings NS_BINDINGS -
wmsCapabilities
-
wmsClient
-
docBuilder
-
reqEntity
-
rspEntity
-
layerInfo
-
-
Constructor Details
-
AbstractBaseGetFixture
public AbstractBaseGetFixture()
-
-
Method Details
-
setWmsClient
-
initBaseFixture
@BeforeClass(alwaysRun=true) public void initBaseFixture(org.testng.ITestContext testContext) Sets up the base fixture. The service metadata document is obtained from the ISuite context. The suite attributetestSubjectshould yield a DOM Document node having {http://www.opengis.net/wms}WMS_Capabilities as the document element.- Parameters:
testContext- the test (set) context, nevernull
-
initParser
@BeforeClass public void initParser()Initializes the (namespace-aware) DOM parser. -
addAttributesOnTestFailure
@AfterMethod public void addAttributesOnTestFailure(org.testng.ITestResult result) Augments the test result with supplementary attributes in the event that a test method failed. The "request" attribute contains a String representing the query component (GET method). The "response" attribute contains the content of the response entity.- Parameters:
result- the result to add the attributes, nevernull
-
addAttributesOnTestSuccess
@AfterMethod public void addAttributesOnTestSuccess(org.testng.ITestResult result) Augments the test result with supplementary attributes in the event that a test method succeeded. The "request" attribute contains a String representing the query component (GET method).- Parameters:
result- the result to add the attributes, nevernull
-