站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

TestRunner - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.test.framework.container.client
Class TestRunner

java.lang.Object
  extended byorg.jboss.portal.test.framework.container.client.TestSuite
      extended byorg.jboss.portal.test.framework.container.client.TestRunner

public class TestRunner
extends TestSuite

Version:
$Revision: 5448 $
Author:
Julien Viet

Field Summary
protected  Deployer deployer
          The injected deployer.
protected  NodeId[] nodeIds
          The node id list used for this test suite.
protected  NodeManager nodeManager
          The injected node manager.
protected  TestRuntimeContext runtimeContext
          .
protected  TestAgentFactory testAgentFactory
          The test agent factory.
protected  java.net.URL url
          .
 
Fields inherited from class org.jboss.portal.test.framework.container.client.TestSuite
testSuiteId
 
Constructor Summary
TestRunner(java.lang.String beansDescriptorLocation)
           
TestRunner(java.lang.String beansDescriptorLocation, NodeId[] nodeIds)
           
 
Method Summary
 void addTest(Test test)
           
 void deploy()
          Subclass to perform deployment.
 java.lang.String getArchivePath()
          Returns a path where the deployable archives are.
 Deployer getDeployer()
           
 NodeManager getNodeManager()
           
 TestAgent getTestAgent(Node node)
          Returns the test agent for a specified node.
 TestAgentFactory getTestAgentFactory()
           
 void run(TestResult testResult)
           
 void setDeployer(Deployer deployer)
           
 void setNodeManager(NodeManager nodeManager)
           
 void setTestAgentFactory(TestAgentFactory testAgentFactory)
           
 void undeploy()
          Subclass to perform undeployment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runtimeContext

protected TestRuntimeContext runtimeContext
.


url

protected java.net.URL url
.


deployer

protected Deployer deployer
The injected deployer.


nodeManager

protected NodeManager nodeManager
The injected node manager.


nodeIds

protected NodeId[] nodeIds
The node id list used for this test suite.


testAgentFactory

protected TestAgentFactory testAgentFactory
The test agent factory.

Constructor Detail

TestRunner

public TestRunner(java.lang.String beansDescriptorLocation)

TestRunner

public TestRunner(java.lang.String beansDescriptorLocation,
                  NodeId[] nodeIds)
Method Detail

getTestAgentFactory

public TestAgentFactory getTestAgentFactory()

setTestAgentFactory

public void setTestAgentFactory(TestAgentFactory testAgentFactory)

getNodeManager

public NodeManager getNodeManager()

setNodeManager

public void setNodeManager(NodeManager nodeManager)

getDeployer

public Deployer getDeployer()

setDeployer

public void setDeployer(Deployer deployer)

getArchivePath

public java.lang.String getArchivePath()
Returns a path where the deployable archives are.

Returns:
the path to the archive that are deployable

addTest

public void addTest(Test test)

run

public void run(TestResult testResult)

getTestAgent

public TestAgent getTestAgent(Node node)
                       throws java.lang.Exception
Returns the test agent for a specified node.

Parameters:
node - the target node
Returns:
the specified node
Throws:
java.lang.Exception

deploy

public void deploy()
            throws java.lang.Exception
Subclass to perform deployment.

Overrides:
deploy in class TestSuite
Throws:
java.lang.Exception

undeploy

public void undeploy()
Subclass to perform undeployment.

Overrides:
undeploy in class TestSuite