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

Project Version 2.3

com.rational.test.ft.script
Interface ITestProject

All Superinterfaces:
IDatastore

public interface ITestProject
extends IDatastore

This interface defines the general methods available to a project instance.

Since:
RFT2.1

Method Summary
 void callScript(java.lang.String scriptName)
          Call the specified script relative to this project.
 void callScript(java.lang.String scriptName, java.lang.Object[] args)
          Call the specified script relative to this project.
 void callScript(java.lang.String scriptName, java.lang.Object[] args, int iterationCount)
          Call the specified script relative to this project.
 java.lang.String getLocation()
          The full directory path for the project is returned.
 java.lang.String getName()
          The name associated with the project.
 java.lang.Class loadClass(java.lang.String className)
          Load the specified class relative to this project.
 RationalTestScript loadScript(java.lang.String scriptName)
          Load the specified script relative to this project.
 
Methods inherited from interface com.rational.test.ft.script.IDatastore
getDatapoolScripts, getDefaultMapName, getMajorVersionNumber, getMinorVersionNumber, getObjectMapScripts, getProjectName, getProjectPath, getProjectSubType, getScripts, getScripts, getSharedDatapools, getSharedMaps, getSimplifiedScriptVisuals, getSimplifiedScriptVPs, getTemplates
 

Method Detail

getName

java.lang.String getName()
The name associated with the project. If no name is associated with this project then the project folder name will be returned.

Returns:
The name associated with the project.

getLocation

java.lang.String getLocation()
The full directory path for the project is returned.

Returns:
The full directory path for the project.

callScript

void callScript(java.lang.String scriptName)
Call the specified script relative to this project. Note that the script name is the full class specification. For instance the script name should be com.ibm.testing.ft.CoolScript instead of just CoolScript. An appropriate RationalTestScriptException exception is thrown if the specified scriptName can not be loaded.

Parameters:
scriptName - The name of the script to be called.

callScript

void callScript(java.lang.String scriptName,                 java.lang.Object[] args)
Call the specified script relative to this project. Note that the script name is the full class specification. For instance the script name should be com.ibm.testing.ft.CoolScript instead of just CoolScript. An appropriate RationalTestScriptException exception is thrown if the specified scriptName can not be loaded.

Parameters:
scriptName - The name of the script to be called.

callScript

void callScript(java.lang.String scriptName,                 java.lang.Object[] args,                 int iterationCount)
Call the specified script relative to this project. Note that the script name is the full class specification. For instance the script name should be com.ibm.testing.ft.CoolScript instead of just CoolScript. An appropriate RationalTestScriptException exception is thrown if the specified scriptName can not be loaded.

Parameters:
scriptName - The name of the script to be called.

loadClass

java.lang.Class loadClass(java.lang.String className)
Load the specified class relative to this project. Note that the class name is the full class specification. For instance the class name should be com.ibm.testing.ft.CoolScript instead of just CoolScript.

Parameters:
className - The name of the class to be loaded.
Returns:
The Class object for the specified className. A RationalTestException is thrown if the specified class can not be found.

loadScript

RationalTestScript loadScript(java.lang.String scriptName)
Load the specified script relative to this project. Note that the script name is the full class specification. For instance the script name should be com.ibm.testing.ft.CoolScript instead of just CoolScript.

Parameters:
scriptName - The name of the script to be loaded.
Returns:
The RationalTestScript object for the specified scriptName. A RationalTestException is thrown if the specified script can not be found.