org.jboss.portal.test.framework.driver.http
Class HTTPTestCase

java.lang.Object
  extended by org.jboss.portal.test.framework.driver.remote.RemoteTestCase
      extended by org.jboss.portal.test.framework.driver.http.HTTPTestCase
All Implemented Interfaces:
RemoteTestDriver, TestDriver

public abstract class HTTPTestCase
extends RemoteTestCase

Defines an http test case working from the server side point of view.

Version:
$Revision: 5636 $
Author:
Julien Viet

Field Summary
protected  java.net.URI uri
          The test path.
 
Fields inherited from class org.jboss.portal.test.framework.driver.remote.RemoteTestCase
context, testCaseId, testDriverContainer, testInfo
 
Fields inherited from interface org.jboss.portal.test.framework.driver.remote.RemoteTestDriver
SERVICE_ID
 
Constructor Summary
HTTPTestCase(java.lang.String testCaseId, java.lang.String uri)
           
 
Method Summary
 DriverResponse execute(DriverCommand driverCommand, TestContext testContext)
           
 DriverResponse invoke(java.lang.String testId, DriverCommand cmd)
          The implementation will return an InvokeGetResponse response in reaction to the StartTestCommand.
 
Methods inherited from class org.jboss.portal.test.framework.driver.remote.RemoteTestCase
create, destroy, getInfo, getTestCaseId, getTestDriverRegistry, popContext, pushContext, setTestDriverRegistry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uri

protected final java.net.URI uri
The test path.

Constructor Detail

HTTPTestCase

public HTTPTestCase(java.lang.String testCaseId,
                    java.lang.String uri)
Method Detail

invoke

public DriverResponse invoke(java.lang.String testId,
                             DriverCommand cmd)
                      throws TestDriverException
The implementation will return an InvokeGetResponse response in reaction to the StartTestCommand. All other commands will be delegated to the execute(DriverCommand,TestContext)

Throws:
TestDriverException

execute

public DriverResponse execute(DriverCommand driverCommand,
                              TestContext testContext)
                       throws java.lang.Exception
Throws:
java.lang.Exception