org.jboss.portal.test.framework.driver.web
Class WebTestCase

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

public abstract class WebTestCase
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.lang.String path
          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
WebTestCase(java.lang.String testCaseId, java.lang.String path)
           
 
Method Summary
 DriverResponse execute(DriverCommand driverCommand, TestContext testContext)
           
 DriverResponse invoke(java.lang.String testId, DriverCommand cmd)
          The implementation will return an GetPageResponse 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

path

protected final java.lang.String path
The test path.

Constructor Detail

WebTestCase

public WebTestCase(java.lang.String testCaseId,
                   java.lang.String path)
Method Detail

invoke

public DriverResponse invoke(java.lang.String testId,
                             DriverCommand cmd)
                      throws TestDriverException
The implementation will return an GetPageResponse 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