Test Execution Monitor Window/en: Unterschied zwischen den Versionen

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen
Zeile 14: Zeile 14:
* now - for a simple example, drag a simple "OK" button (found in the "Buttons"section) and a ListView (in the "Lists"section) from the gallery into the canvas. Don't care for layout details now - we'll fix this later.
* now - for a simple example, drag a simple "OK" button (found in the "Buttons"section) and a ListView (in the "Lists"section) from the gallery into the canvas. Don't care for layout details now - we'll fix this later.
* press "Save"and close the editor.
* press "Save"and close the editor.
* place a simple "Delay for a few seconds" action into the action's activity diagram, so the UI will show itself for a while, while the action is active.
* the UI will later be shown during the action's execution; therefore, we make sure that it will run for some time. Place a simple "''Delay for a few seconds''" action into the action's activity diagram, so the UI will not be closed immediately.
* press "Run"
* press "Run"


You will now probably get an error outcome, stating the the UI was disabled in the project. This is the default, and you should enable this first in the project's "Execution" tab.
You will now probably get an error outcome, stating the the UI was disabled in the project. This is the default, and you should enable this first in the project's "''Execution''" tab (in the "''User Interface''" section near the bottom).


Run it again.
Run it again.

Version vom 18. Februar 2021, 08:41 Uhr

Introduction[Bearbeiten]

Expecco can be configured to present a custom dynamic GUI while executing. This user interface is defined and controlled by the action being executed, and can vary (i.e. changed) dynamically. Useful scenarios for this are test stands, where you want to hide the internals of the execution from the test operator, or to present additional data (monitoring) or to ask interactively for parameters or other input values.

Of course, the simple dialog requests can also be used for parameter questions, but a custom UI can both provide a better look and allow for more complex user interaction to be defined.

The general mechanism is based on attaching a UI individual (compound) actions, which is shown whenever the action is active.

Getting Started[Bearbeiten]

  • First, create a new compound action, and go to its schema tab.
  • at the bottom, find the button named "GUI"and click on it. A UI-editor will open, showing 3 views:
    • the main view, containing the widget hierarchy and attributes,
    • a drawing canvas, which shows how the UI will look
    • and a widget gallery, from which UI elements can be dragged into the widget hierarchy to into the drawing canvas.
  • now - for a simple example, drag a simple "OK" button (found in the "Buttons"section) and a ListView (in the "Lists"section) from the gallery into the canvas. Don't care for layout details now - we'll fix this later.
  • press "Save"and close the editor.
  • the UI will later be shown during the action's execution; therefore, we make sure that it will run for some time. Place a simple "Delay for a few seconds" action into the action's activity diagram, so the UI will not be closed immediately.
  • press "Run"

You will now probably get an error outcome, stating the the UI was disabled in the project. This is the default, and you should enable this first in the project's "Execution" tab (in the "User Interface" section near the bottom).

Run it again.

Your UI should now show up, while the compound action is active, and disappear later. Of course, we did not yet connect any data or callback actions with the UI's elements.



Copyright © 2014-2024 eXept Software AG