RCPTT Documentation Center
  • User Guide
  • FAQ
  • Back to RCPTT Main Site
  • Eclipse.org
  • Get Started
  • Test Case Editor
  • Control Panel
  • Assertions
  • Eclipse Command Language
    • New ECL Command Guide
    • ECL commands for Excel import and export
    • ECL commands for XML import and export
  • Contexts
    • Workspace
    • Workbench
    • Launch
    • Preferences
    • Parameters
    • Group
    • Folder
    • Default
    • Super
    • ECL Script
  • Verifications
    • Text
    • Table/Tree
    • Error Log
    • Time
  • Procedures and Variables
  • Test Runner
    • Arguments
  • Maven plugin
  • RAP
    • Install instructions
    • Record and Replay
    • Capability Contexts
    • ECL commands
    • Maven plugin
  • Integration
    • TestRail
    • Zephyr

Specific ECL commands for RAP

To support RAP more smooth we added following RCL commands.

Command Description
get-runtime-target The command returns information about runtime id.
Returns value:
“rap” or “swt”
Example:
​if [get-runtime-target | eq "rap" ] {
   //some code
}
mark-download-handler The command notes a download handlers. This command is necessary because the RAP has no the standardized approach for the description of download files.
Arguments:
-handler - a string array with download handler ids.
Example:
​mark-download-handler "example.id.download.handler"
run-js The command run java script code at the time of execution test.
Arguments:
-jsCode - a string with JS code.
Example:
​run-js "alert(‘Hello world’)"
exec-without-js The statement command which blocks method JavaScriptExecutor.execute.
Example:
​exec-without-js {
   // this command will be call, but JS code not executed
   // redirect will be ignored
   run-js "window.location=http://127.0.0.1"  
}
download-file The command download file by url
Arguments:
-url - url for downloading file
-handlerId - a downloading handlerId
Example:
​download-file "PGh0bWwgeG1sbnM6ZGF…."
match-binary The command matching an array of bytes with file or base64 content
Arguments:
-filePath - a string to file for mathing.
-base64 - a string with base64 contef for mathing
Example:
​match-binary
   -filePath "workspace://file.text"
upload-file The command matching an array of bytes with file or base64 content
Arguments:
-file - a path to file.
-base64 - a string which contains encoded file on Base64 format.
Example:
​upload-file -base64 "PGh0bWwgeG1sbnM6ZGF…."
to-string The command upload file from base64 format or file.
Arguments:
-encode - a character format (default UTF-8).
Example:
​download-file -handler "example.id.download.handler" 
-url "http://download.example.web/file.html"  
| to-string | conteins “searching string” | verify-true