Jetif v1.8.0

jetif
Class LwProxyAgent

java.lang.Object
  extended byjetif.LwProxyAgent

public class LwProxyAgent
extends Object

The LwProxyAgent is a lightweight proxy agent. It is similar to TestAgent but all data are encoded with Base64 encoding. It's recommended to use this class with LwProxy.

Author:
Vicky Wang
See Also:
ProxyAgent, LwProxy

Constructor Summary
LwProxyAgent()
          Default constructor.
 
Method Summary
 void close()
          Close this test agent for current suite.
 void open(String data)
          Open this agent for testing, prepare test environment.
 String runCase(String input)
          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

LwProxyAgent

public LwProxyAgent()
Default constructor.

Method Detail

open

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

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

runCase

public String runCase(String input)
               throws FrameworkException
Run test case with input case data.

Parameters:
input - the test data of current test case encoded in Base64.
Returns:
test result encoded in Base64.
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.