IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester API Reference

Project Version 2.3

com.rational.test.ft.services
Class TestScriptServices

java.lang.Object
  extended by com.rational.test.ft.services.TestScriptServices
All Implemented Interfaces:
IDownloadFiles, ITSSScriptCountProvider

public class TestScriptServices
extends java.lang.Object
implements IDownloadFiles, ITSSScriptCountProvider

Provides access to TSS services, in particular to the TSSSession.connect() method by which we connect to a TSS session. The methods of this class must be synchronized as parallel access to TSS session is not supported.


Constructor Summary
TestScriptServices()
          Constructor.
 
Method Summary
 boolean connect(java.lang.String host, int port, int id)
          Connect to TSS.
 boolean disconnect()
          Disconnect from TSS.
 boolean download(java.lang.String[] fileList)
          Wrapper to call TSSUtility.download(),for use during remote execution.
 int getGlobalScriptIterationCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestScriptServices

public TestScriptServices()
Constructor.

Throws:
java.lang.ClassNotFoundException - TSS not available.
Method Detail

connect

public boolean connect(java.lang.String host,
                       int port,
                       int id)
Connect to TSS. Returns true if successful, false if not.


disconnect

public boolean disconnect()
Disconnect from TSS. Returns true if successful, false if not.


download

public boolean download(java.lang.String[] fileList)
Wrapper to call TSSUtility.download(),for use during remote execution. This is needed when we encounter a callScript during remote execution. fileList is an array of file pathnames (relative to the datastore) to be downloaded from the host machine. They are placed in the same location relative to the datastore on the machine executing the script. If not doing remote execution, this is a no-op. Returns true if successful (including the no-op case). Returns false if unsuccessful. In the latter case the debug log can be consulted for details on why the download failed.

Specified by:
download in interface IDownloadFiles

getGlobalScriptIterationCount

public int getGlobalScriptIterationCount()
Specified by:
getGlobalScriptIterationCount in interface ITSSScriptCountProvider