![]() |
T-Plan Robot Enterprise 4.4.7 Doc
Collection |
29/01/19 |
"file://<path>"
.
The URL may be also used together with the -c/--connect CLI option to
establish the connection on the Robot start up. Examples:
The connection by default refuses key events. TPR test scripts relying on this connection report a syntax error in any Press, Type or Typeline commands. This is intended to make it clear that static images do not consume any key events. To suppress this behavior and make the client consume key events (and discard them silently) see the client preferences.TPR test scripts:Connect file://C:/Users/John/myscreenshot.png
Java test scripts:
connect("
file://C:/Users/John/myscreenshot.png
");
"file://<archive_path>!/<image_path_in_archive>"
.
For example, to load an image called "screen.png"
from the "C:\testdata\images.jar"
JAR file where the image is zipped into a folder called "examples"
use:Connect file://C:/testdata/images.jar!/examples/screen.png
"screen.png"
located in the Robot install folder use:Connect file://screen.png
"screen.png"
located in
the "images" folder inside the project directory
use:TPR test scripts:Connect file://{_PROJECT_DIR}/images/screen.png
Java test scripts:
connect("
file://" + getVariableAsString("_PROJECT_DIR") + "/images/screen.png
");