Java GUI Plugins/en: Unterschied zwischen den Versionen
Ani (Diskussion | Beiträge) (→JavaFX) |
Ani (Diskussion | Beiträge) |
||
Zeile 22: | Zeile 22: | ||
Ab Java 11 ist JavaFX nicht mehr im JDK enthalten. Daher müssen Sie zusätzlich ein JavaFX SDK installieren, z.B. von [https://openjfx.io/ OpenJFX]. Kopieren Sie dann die jar-Dateien aus dem lib-Verzeichnis des JavaFX JDKs nach <code>packages\exept\expecco\plugin\javafx\lib</code> im expecco-Installationsverzeichnis. |
Ab Java 11 ist JavaFX nicht mehr im JDK enthalten. Daher müssen Sie zusätzlich ein JavaFX SDK installieren, z.B. von [https://openjfx.io/ OpenJFX]. Kopieren Sie dann die jar-Dateien aus dem lib-Verzeichnis des JavaFX JDKs nach <code>packages\exept\expecco\plugin\javafx\lib</code> im expecco-Installationsverzeichnis. |
||
== |
== Functionality == |
||
The interface establishes a connection to the Java VM and provides functions for reading widget attributes, recording user input, and remotely controlling the application. In addition, a library provides additional building blocks for automating tests. |
|||
Das Interface baut eine Verbindung zur Java VM auf, und stellt Funktionen zum Lesen von Widget-Attributen, Aufnehmen von Benutzereingaben sowie zum Fernsteuern der Anwendung zur Verfügung. Außerdem werden in einer Bibliothek zusätzliche Bausteine zur Automatisierung von Tests bereitgestellt. |
|||
Essentially, the Java Swing plugin consists of two parts, the extension |
|||
for expecco and the application control (agent). To control the Swing application, an agent is loaded into the Java Virtual Machine of the running Java application. A Java Development Kit 1.8 (JDK) or higher is required to load the agent. However, the application to be tested can be run in a normal Java Runtime Edition 1.8 (JRE). |
Version vom 18. April 2019, 14:14 Uhr
Inhaltsverzeichnis
Supported Java technologies[Bearbeiten]
expecco supports the automation of Java applications implemented with Java Swing, Java SWT or JavaFX. Also supported are applications that combine several of these technologies, e.g. a Swing application with embedded JavaFX content.
Java Swing[Bearbeiten]
This extension for expecco enables the user interface test automation for Java applications whose user interfaces were created with Swing. The block library contains blocks for controlling and checking Swing user interfaces. This extension also integrates into the expecco GUI Test Extension. This extension supports the development of test sequences.
Hauptmerkmale[Bearbeiten]
- Automatisierte Bedienung und Überprüfung von Swing Benutzeroberflächen
- Gleichzeitige Bedienung mehrerer Anwendungen
- Steuerung von Swing Benutzeroberflächen auf entfernten Zielsystemen
- Steuerung von bereits eigenständig Laufenden Java Anwendungen (keine Änderung am Quell-Code notwendig, Keine Rekompilierung der Anwendung nötig)
- Adressierung der Bedienelemente durch Pfade ähnliche dem XPath
- Zugriff auf Objektebene durch Java Bridge Interface Library möglich
- Integration in die expecco GUI Tests Extension
- Block-Bibliothek mit Aktionen und Überprüfungen für Swing Komponenten
Java SWT[Bearbeiten]
JavaFX[Bearbeiten]
Ab Java 11 ist JavaFX nicht mehr im JDK enthalten. Daher müssen Sie zusätzlich ein JavaFX SDK installieren, z.B. von OpenJFX. Kopieren Sie dann die jar-Dateien aus dem lib-Verzeichnis des JavaFX JDKs nach packages\exept\expecco\plugin\javafx\lib
im expecco-Installationsverzeichnis.
Functionality[Bearbeiten]
The interface establishes a connection to the Java VM and provides functions for reading widget attributes, recording user input, and remotely controlling the application. In addition, a library provides additional building blocks for automating tests. Essentially, the Java Swing plugin consists of two parts, the extension for expecco and the application control (agent). To control the Swing application, an agent is loaded into the Java Virtual Machine of the running Java application. A Java Development Kit 1.8 (JDK) or higher is required to load the agent. However, the application to be tested can be run in a normal Java Runtime Edition 1.8 (JRE).