Jetif v1.8.0

jetif
Class ProxyAgent

java.lang.Object
  extended byjetif.ProxyAgent

public class ProxyAgent
extends Object

This class ProxyAgent represents an agent to invoke test case inside application JVM (where the application to be tested running) actually. For example, run test cases in J2EE application server. This class cooperate with the Proxy implementation to accomplish the remote testing.
A custom ProxyAgent may use this class as reference while not a inherited parent.

Author:
Vicky Wang
See Also:
Proxy

Constructor Summary
ProxyAgent()
           
 
Method Summary
 void close()
          Close this test agent for current suite.
 void open(Object data)
          Open this agent for testing, prepare test environment.
 Serializable runCase(Object data)
          Run test case with input case data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyAgent

public ProxyAgent()
Method Detail

open

public void open(Object data)
          throws FrameworkException
Open this agent for testing, prepare test environment.

Parameters:
data - The data to initialize test agent for current suite.
Throws:
FrameworkException - if any error occurs.

runCase

public Serializable runCase(Object data)
                     throws FrameworkException
Run test case with input case data. The data is transferred from proxy side by the Proxy transport layer.

Parameters:
data - the test data of current test case.
Returns:
the serializable test result.
Throws:
FrameworkException - if any error occurs.

close

public void close()
Close this test agent for current suite.


Jetif v1.8.0

Copyright © 2004,2005 Vicky Wang - All Rights Reserved.