FAQ
Thursday, Oct 17, 2019
How to assert native message boxes?
I want to record the “Information” message box which pops up in my tool. How to use assert in this automation? RCPTT does not show native message dialogs during replay, but instead remembers their results during recording (by adding a command set-dialog-result to a script) and …
Thursday, Jun 23, 2016
Can RCPTT be installed as Eclipse plugin?
RCPTT consists of two parts - RCPTT IDE, which is used for launching AUTs, developing and running test cases, and RCPTT Runtime (hidden), which is automatically put inside AUT in order to provide recording/replaying of user actions. RCPTT IDE can be installed as an Eclipse plug-in (update site), but …
Tuesday, Apr 14, 2015
How to pass a value to a test runtime
In case when it is required to pass some values to a test in command line, it is possible to do it like this: In AUT VM arguments pass desired parameters as Java properties, i.e. add arguments: -DpropertyName=propertyValue Use ECL command substitute-variables (which uses org.eclipse.core.variables …
Thursday, Jan 15, 2015
How to extract an SWT widget with an ECL command?
I am trying to make a custom ECL command to extract a data from table in order to make my custom assertions on that data. I want to use the result of: get-table | ... But when I read an object from process.getInput().read(), I get an object of the class ControlHandlerImpl and I don’t know how …
Thursday, Jan 15, 2015
How to resize a window
Sometimes you may want a window to be a certain size. Maximize To maximize a window you may use maximize ECL command: to maximize main Eclipse window: get-eclipse-window | maximize to maximize any window: either: get-window "WindowTitle" | maximize or get-eclipse-window | get-object | invoke …
Thursday, Jan 15, 2015
Is it possible to order tests in a Test Suite?
Is it possible to change the test case order inside a test suite? Currently it is organized in an alphabetical order… One of core RCPTT principles is test independence (from each other), so you should not rely on test execution order. Test cases independency is one of core principles of …
Thursday, Jan 15, 2015
Verify control sizes
If you need to check a size of control, but it depends on the size of a window or a screen or depends on the size of another control, you might use following approach:
Thursday, Jan 15, 2015
What does each runtime feature stand for?
You can find different Runtime Features in RCPTT Advanced Options. Here you can find the description of the most of them. Logging Feature Description Enable Activity Logging expand activities logging Enable per command image capture take a screenshot after each ECL command Reporting Feature …
Thursday, Jan 15, 2015
What is the difference between Assert and Verify commands or how to get raw property values?
Both commands can be used inside try/catch, however in this case an error message won’t be displayed in a report. It’s a long story how we came to a situation when we have two seemingly the same commands and the primary reason is that we need it because of backward compatibility and a …