com.togethersoft.testing.testserver
Interface ITestServer


public interface ITestServer

Provides access to test server services.


Method Summary
 ITestServerAssetgetAsset(String requestorRefid, String requestedRefid)
           
 ClassLoadergetClassLoader(String requestorRefid)
           
 ICommandControllergetCommandController()
           
 IConfiggetConfig()
           
 InputStreamgetFileAsStream(String requestorRefid, String fileName)
          Returns an InputStream to a file on host.
 IRunnerRegistrygetRunnerRegistry()
           
 ISessiongetSession(String refid)
           

Method Detail

getAsset

public ITestServerAsset getAsset(String requestorRefid, String requestedRefid)
throws TestServerException
Parameters:
requestorRefid - reference id of test asset which requests information
requestedRefid - reference id of requested test asset.
Allows to obtain test asset from host

getClassLoader

public ClassLoader getClassLoader(String requestorRefid)
throws TestServerException
Parameters:
requestorRefid = reference id of test asset which requests class loader.
Allows to obtain classloader to load classes from host.

getCommandController

public ICommandController getCommandController()

getConfig

public IConfig getConfig()

getFileAsStream

public InputStream getFileAsStream(String requestorRefid, String fileName)
Returns an InputStream to a file on host. Filename can contain together macros

getRunnerRegistry

public IRunnerRegistry getRunnerRegistry()

getSession

public ISession getSession(String refid)
throws TestServerException
Parameters:
refid - reference id of asset for which session is obtained
Allows to obtain session for specific test asset