[Detailed tutorial with a lot of images, so allow it to load]
Today, we are going to learn a well-known open-source functional testing tool – Jubula.
Recommended IPTV Service Providers
- IPTVGREAT – Rating 4.8/5 ( 600+ Reviews )
- IPTVRESALE – Rating 5/5 ( 200+ Reviews )
- IPTVGANG – Rating 4.7/5 ( 1200+ Reviews )
- IPTVUNLOCK – Rating 5/5 ( 65 Reviews )
- IPTVFOLLOW -Rating 5/5 ( 48 Reviews )
- IPTVTOPS – Rating 5/5 ( 43 Reviews )
Jubula is an Eclipse Project for automated functional GUI testing for many applications. It’s helpful for writing automated tests from the user perspective with little or no coding skills, saving time and improving readability and test maintenance.
A wide range of open-source automation tools are available in the market with a good amount of online help.
When it comes to Jubula, the online help provides a lot of information on its built-in framework. This information is of great use to those non-technical testers who are not involved in coding and want to create automation scripts through Jubula’s GUI.
But the technical automation testers wanting to create a customized framework using Jubula find it difficult to reach out the help.
This detailed tutorial is created with the aim to share the knowledge I have gained in Jubula to help you create a customized, robust, and flexible automation testing framework.
Let us first look into its built-in framework (This section of the tutorial will help you understand the basics) and then proceed with Building a framework in Jubula using Java code.
What You Will Learn:
The Basics – built-in framework:
Installation and Launch:
(Note: click on any image for an enlarged view)
1) Go to the download page here.
Note – You can check this download page for various options based on the features you are interested in.
2) Register and Login.
3) Click on Download Installers.
4) Click on the download page under Jubula downloads section.
5) Download the appropriate installer (as per the OS).
6) Install it using the downloaded exe file and save the folder in a preferred location ( I have saved it in C:Program Files).
7) Once the installation is completed, you should be able to launch the tool from ‘All programs’.
8) While launching create the workspace in a preferred location.
Sample AUTs:
One impressive thing about this tool is that it comes with sample AUTs (Applications Under Test). The AUTs will be present in <Installation Folder>examplesAUTs.
In this case, it is found in C:Program Filesjubula_8.2.0.021examplesAUTs
Demo Project
Now with Jubula installed and sample AUTs available, let us try to automate a simple addition functionality using a ‘swing’ application called ‘SimpleAdder’.
This application can be invoked using the file:
‘C: ProgramFilesjubula_8.2.0.021examplesAUTsSimpleAdderswingSimpleAdder.cmd’ and looks like below:
The task is to enter ‘value1’, enter ‘value2’, click ‘=’ button, and verify the ‘result’.
How to Test:
Below are the steps to be followed to automate the task:
Step 1 – Create a project.
Step 2 – Create an AUT (Application Under Test).
Step 3 – Create a test case, include test steps, and map data.
Step 4 – Create a test suite.
Step 5 – Assign the AUT to the test suite.
Step 6 – Map the test case to the test suite.
Step 7 – Map logical test objects with technical object identifiers.
Step 8 – Run the test suite.
Let us see how to perform each step in detail:
Step #1 – Create a project
A Project in Jubula can be considered as a logical workspace where all required components are gathered to complete a testing task.
Creation of a project goes as below:
1) Go to Test > New.
2) Enter the name of the project, E.g. ‘DemoProject’ and Click ‘Finish’ (On clicking ‘Next’ you should be able to create an AUT. But let us ‘Finish’ here and look at creating AUT in Step #2).
3) The Test Suite browser shows the created project.
Step #2 – Create an AUT
An instance of the application under test (SimpleAdder) has to be created in Jubula for object mapping and to run the test suite.
1) Go to Test > Properties.
2) Choose ‘AUTs’.
3) Enter the AUT name (this can be any user-defined value. E.g., Demo