Java GUI Plugins/en

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen

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).



Copyright © 2014-2024 eXept Software AG