TruClient 2.0 - Web environment functions

The following environment functions are available:

FunctionDescription
IO.createDirCreates the specified folder.
IO.deleteDeletes the specified folder or file.
IO.isExistChecks the existence of a specified folder or file.
IO.readReturns all the data from the specified file. Converts the data from the specified charset to unicode.
IO.writeWrites the string to the specified file.
TC.getAttrReturns the value of the command line parameter passed to the test, or its default value.
Utils.getEnvReturns the value of the specified environment variable.
Utils.importEvaluates the specified JavaScript file in the arguments context.
Utils.isEnvExistsChecks existence of a specified environment variable.
Utils.setEnvSets the named environment variable to the specified value.