TruClient 2.0 - Web environment functions
The following environment functions are available:
Function | Description |
---|---|
IO.createDir | Creates the specified folder. |
IO.delete | Deletes the specified folder or file. |
IO.isExist | Checks the existence of a specified folder or file. |
IO.read | Returns all the data from the specified file. Converts the data from the specified charset to unicode. |
IO.write | Writes the string to the specified file. |
TC.getAttr | Returns the value of the command line parameter passed to the test, or its default value. |
Utils.getEnv | Returns the value of the specified environment variable. |
Utils.import | Evaluates the specified JavaScript file in the arguments context. |
Utils.isEnvExists | Checks existence of a specified environment variable. |
Utils.setEnv | Sets the named environment variable to the specified value. |