Example of using the TestFX library to perform E2E tests in a Maven project

Related tags

GUI demoTestFX
Overview

demoTestFX

Ejemplo de uso de la librería TestFX para realizar pruebas E2E en un proyecto Maven.

El principal problema para conseguir ejecutar los tests es configurar las librerías necesarias. Partiendo de un proyecto JavaFX existente hay que añadir al fichero POM:

  1. Las librerías. (En nuestro caso se usa Junit 5. En caso contrario habría que cambiarlo.)

      
         
         
          
           org.testfx
          
         
          
           testfx-core
          
         
          
           4.0.16-alpha
          
         
          
           test
          
     
         
     
         
         
          
           org.testfx
          
         
          
           testfx-junit5
          
         
          
           4.0.16-alpha
          
         
          
           test
          
     
         
    
     
         
         
          
           org.hamcrest
          
         
          
           hamcrest
          
         
          
           2.1
          
         
          
           test
          
     
         
    
  2. Añadir una opción para la ejecución de los test utilizando el plugin Surefire.

          
         
             
          
           org.apache.maven.plugins
          
             
          
           maven-surefire-plugin
          
             
          
           2.22.2
          
             
          
                 
           
            
                     --add-exports javafx.graphics/com.sun.javafx.application=ALL-UNNAMED
                 
           
             
          
         
         
    
You might also like...

ITI TicTacToe Server project

TicTacToeClient ITI TicTacToe Client project Steps Clone project Create local branch name Development command git branch Development Checkout to the D

Jan 27, 2022

ldts-project-assignment-g0103 created by GitHub Classroom

ldts-project-assignment-g0103 created by GitHub Classroom

LDTS_T01_G03 - Maze Conqueror Game Description The game consists of solving procedurally generated mazes as fast as possible while avoiding any obstac

May 23, 2022

The goal of this project is to create AssertJ assertions for JavaFX (8).

The goal of this project is to create AssertJ assertions for JavaFX (8).

Jul 30, 2021

OOP course final project - Group: Leon Baiocchi, Federico Brunelli, Alessandro Pioggia, Luca Rengo

OOP course final project - Group: Leon Baiocchi, Federico Brunelli, Alessandro Pioggia, Luca Rengo

Bullet Ballet Bullet Ballet is a 2D platformer developed for a University Project at the Alma Mater Studiorum of Bologna by Leon Baiocchi, Alessandro

Dec 8, 2022

Project for "Software Engineering" Course, University of Macedonia (UoM).

CovIDetect CovIDetect is a dashboard application for universities that aims to facilitate the process of managing covid cases and provide statistical

Dec 21, 2022

Tray Icon implementation for JavaFX applications. Say goodbye to using AWT's SystemTray icon, instead use a JavaFX Tray Icon.

Tray Icon implementation for JavaFX applications. Say goodbye to using AWT's SystemTray icon, instead use a JavaFX Tray Icon.

FXTrayIcon Library intended for use in JavaFX applications that makes adding a System Tray icon easier. The FXTrayIcon class handles all the messy AWT

Dec 30, 2022

🌄 Image editor using native modules for iOS and Android. Inherit from 2 available libraries, Brightroom (iOS) and PhotoEditor (Android)

🌄 Image editor using native modules for iOS and Android. Inherit from 2 available libraries, Brightroom (iOS) and PhotoEditor (Android)

React Native Photo Editor (RNPE) 🌄 Image editor using native modules for iOS and Android. Inherit from 2 available libraries, Brightroom (iOS) and Ph

Jan 4, 2023

Lobby System Template for a multiplayer java game, with chat and other features, using JavaFX and socket TCP (will be extended to UDP).

Lobby System Template for a multiplayer java game, with chat and other features, using JavaFX and socket TCP (will be extended to UDP).

JavaFX-MultiplayerLobbySystem JavaFX lobby system for multiplayer games with chat, ready toggle and kick buttons, using socket TCP by default. Demo Cr

May 8, 2022

CSGO cheat made in Java using JavaFX as the overlay and JNA for memory manipulation

CSGO cheat made in Java using JavaFX as the overlay and JNA for memory manipulation

CSGO-CHEAT CSGO cheat made in Java using JavaFX as the overlay and JNA for memory manipulation FEATURES RCS Triggerbot No Flash Third Person Rank Reve

Dec 28, 2022
Owner
null
JavaFX with CDI example project

javafx-cdi-example JavaFX with CDI example. ⚠️ In case you have a hi-resolution display and want to run the application on Ubuntu, make sure to pass a

fuin.org 4 Aug 4, 2022
A maven plugin to include features from jmeter-plugins.org for JMeterPluginsCMD Command Line Tool to create graphs, export csv files from jmeter result files and Filter Result tool.

jmeter-graph-tool-maven-plugin A maven plugin to create graphs using the JMeter Plugins CMDRunner from JMeter result files (*.jtl or *.csv) or using F

Vincent DABURON 6 Nov 3, 2022
A maven-based JavaFX Asteroids game based on a tutorial from Lee Stemkoski

JavaFX Asteroids About This is a maven-based project which implements a JavaFX Asteroids Game. The code is based on a tutorial from Lee Stemkoski whic

null 2 Mar 2, 2022
Flash cards app using JavaFX, Scene Builder and persistence using Serialization with JAVA IO API

Flashcards - JavaFX , Scene Builder, Serialized Persistence JAVA IO API Main Scene that will show all the Decks in Flash Card App Add or Edit Cards in

Ali Raja 3 Nov 28, 2022
To quickly integrate your applications into the EdgeGallery platform, we provide the toolchain project to help developers quickly modify code and migrate applications to the platform.

Toolchain 工具链 工具链是MEC Developer开发者平台中的一个重要特性,当x86平台的App想要上车ARM平台时,底层的代码不可避免的需要进行修改或重写。 App提供者可以通过MEC Developer开发者平台中集成的工具链进行源代码分析,定位需要修改的源代码并根据指导意见进行修

EdgeGallery 19 Jan 7, 2022
A project that shows the different ways on how to create custom controls in JavaFX

JavaFX Custom Controls This project will show different ways on how to create custom controls in JavaFX. It will cover the following approaches: Resty

Gerrit Grunwald 27 Sep 5, 2022
In the Developer - Platform of EdgeGallery, we have provided a lot of useful APIs, in this project, try to simulates APIs of the competence center to help develoers test API request and response online.

api-emulator api-emulator模块,为EdgeGallery提供了基本能力的模拟api,开发者可以调用该模拟器提供的api,不需要真实部署就可以查看平台已有的能力。目前该api-emulator集成了两种平台能力:位置服务和人脸识别能力。 平台能力简介 位置服务 提供用户位置,E

EdgeGallery 21 Dec 25, 2021
A 3D graphics engine created in Java. The project was inspired by javidx9's series on YouTube.

3D Graphics Engine A 3D graphics engine created in Java. The project was inspired by javidx9's series on YouTube. Installation Clone this repository o

Farhan Towhid 17 Sep 16, 2022
A template project for Keycloak Customizations

Keycloak Project Example Introduction This repository contains a project setup for keycloak based projects. This setup serves as a starting point to s

Thomas Darimont 206 Jan 4, 2023
HUAWEI 3D Modeling Kit project contains a sample app. Guided by this demo, you will be able to implement full 3D Modeling Kit capabilities, including 3D object reconstruction and material generation.

HUAWEI 3D Modeling Kit Sample English | 中文 Introduction This project includes apps developed based on HUAWEI 3D Modeling Kit. The project directory is

HMS 59 Jan 1, 2023