SlideShare ist ein Scribd-Unternehmen logo
1 von 36
Downloaden Sie, um offline zu lesen
© 2014 Maveryx srl.
All rights reserved.
Testing Java Applications
with Maveryx
Overview of Maveryx
Why Maveryx is different
Testing a Java Application Step-by-Step
Overview
© 2014 Maveryx srl.
All rights reserved.
Overview of Maveryx
Maveryx is a professional, award-winning test automation tool for
functional and regression testing of Java™ & Android™ applications.
Maveryx provides testers with automated testing capabilities for
functional, regression, GUI, data-driven and keyword-driven testing.
Maveryx
No GUI Maps ⇒ Runtime GUI
Inspection tool
Intelligent UI Objects Recognition
Code-free Keyword-driven Testing
Data-driven testing
Assertion-based Verification
Points
Extension plugin mechanism
Suitable for Java™ and Android™
Standard Test Logging
Automated Testing in Java™
Test Data Generation Tool
Advanced Test API
Available as Eclipse plugin
For Windows, Linux & Mac
…
Features
© 2014 Maveryx srl.
All rights reserved.
© 2014 Maveryx srl.
All rights reserved.
Why Maveryx is different?
No UI Maps. No Recording.
No recording. No capture. No UI
Maps.
o NO UI MAPS or Object Repositories to ‘learn’ & maintain
o No pre-recording or UI capture
o Test scripts immediately executable!
o Automatic UI inspection directly at runtime
o Support for all standard and advanced Java™ GUI controls
o “Classical” to Fuzzy matching algorithms to unambiguously
recognize and locate UI objects directly at runtime during test
execution
o Automatically accommodate UI changes without modifying the tests
o “Geolocation” of objects in the User Interface (TOP, BOTTOM, LEFT, RIGHT …)
Unique object identification
© 2014 Maveryx srl.
All rights reserved.
o Code-free Keyword-driven Testing
o Keyword testing driven from Excel™ sheets and XML files
o No coding required ⇒ short time to implement
o Data-driven testing
o Dedicated scripting API for data-driven testing
o Varying set of data sources : Excel™ sheets , CSV & XML files
Testing Methodology
© 2014 Maveryx srl.
All rights reserved.
o Standard Test Logging and Reporting
o XML ⇒ HTML test reports
o ASCII test logs
o Automated capturing of screenshots on test failures
o Test Execution Metrics
Test Logging
© 2014 Maveryx srl.
All rights reserved.
© 2014 Maveryx srl.
All rights reserved.
Testing a Java Application
Step-by-step
The Eclipse Plugin
Maveryx
PerspectiveJUnit integration Action buttons Report / Metrics
View
The Application-under-test
Enter Password
Invalid PasswordValid Password
Create a New Test Project
1. Select File → New → Maveryx Test Project
In the Maveryx Test Project window
1. enter the Project name (e.g.
“PasswordDemoTest”)
2. in the JRE section make sure that Java/JRE
6 or higher is selected
Create a New Test Script
1. Select File → New → Maveryx Test Class
In the Maveryx Test Class window
1. enter a name for the Package (e.g.
“com.maveryx.demo”)
2. enter a Name for the test class / script
(e.g. “PasswordDemoTest”)
Create the Launch file
To execute the application-under-test it is necessary to
create the related launch file.
The AUT Configurator tool is a GUI-based application
which enables testers to create, save and modify launch
files (⇒ XML files).
To start the Application Configuration tool on Windows:
1. select Start → All Programs → Maveryx → AUT
Configurator
The Test Script «Stub»
Set the full path (pathName) to the launch file.
e.g. private final String pathName =
"C:/Maveryx/demo/AUT/PasswordDemo.xml";
The static method startApplication(pathName)
in class Bootstrap launches the application-
under-test.
The static method stop(pathName) in class
Bootstrap closes the application-under-test.
The Test Cases
Test Case #001
1. Launch the application-under-
test
2. Check that the password text
field is editable
3. Enter a valid password
4. Check that the "OK" button is
enabled
5. Press the "OK" button to
confirm the password
6. Check that a successful
authentication message is
returned
7. Close the application-under-
test
Test Case #002
1. Launch the application-under-
test
2. Check that the password text
field is editable
3. Enter a invalid password
4. Check that the "OK" button is
enabled
5. Press the "OK" button to
confirm the password
6. Check that an authentication
error message is returned
7. Close the application-under-
test
Launch the application
Test Case #001
1. Launch the application-under-test
2. Check that the password text field
is editable
3. Enter a valid password
4. Check that the "OK" button is
enabled
5. Press the "OK" button to confirm
the password
6. Check that a successful
authentication message is
returned
7. Close the application-under-test
Launch the application
The static method startApplication(pathName)
in class Bootstrap launches the application-
under-test
Working with text fields
Test Case #001
1. Launch the application-under-test
2. Check that the password text
field is editable
3. Enter a valid password
4. Check that the "OK" button is
enabled
5. Press the "OK" button to confirm
the password
6. Check that a successful
authentication message is
returned
7. Close the application-under-test
Working with text fields
1. Create a new GuiPasswordText object
specifying the label
2. Verification Point : check that the
password text field is editable
3. Enter the password
Working with buttons
Test Case #001
1. Launch the application-under-test
2. Check that the password text field
is editable
3. Enter a valid password
4. Check that the "OK" button is
enabled
5. Press the "OK" button to confirm
the password
6. Check that a successful
authentication message is
returned
7. Close the application-under-test
Working with buttons
1. Create a new GuiButton object
specifying the caption
2. Verification Point : check that the
button is enabled
3. Click the button
Working with dialogs
Test Case #001
1. Launch the application-under-test
2. Check that the password text field
is editable
3. Enter a valid password
4. Check that the "OK" button is
enabled
5. Press the "OK" button to confirm
the password
6. Check that a successful
authentication message is
returned
7. Close the application-under-test
Working with dialogs
1. Create a new GuiDialog object specifying the title
2. Create a new GuiLabel object specifying the text
and the container
3. Verification Point : check that the label has the
expected text
4. Close the dialog
Working with frames
Test Case #001
1. Launch the application-under-test
2. Check that the password text field
is editable
3. Enter a valid password
4. Check that the "OK" button is
enabled
5. Press the "OK" button to confirm
the password
6. Check that a successful
authentication message is
returned
7. Close the application-under-test
Working with frames
1. Create a new GuiFrame object specifying the
title
2. Close the frame
3. Close the Java Virtual Machine
Test Case #001
Test Case #002
Run the Test Script
1. Select File → Run As → JUnit Test
View the Test Results
1. Test Results
2. Test Metrics
3. Test Console
Log
The Test Report
Lesson Learned
o NO UI MAPS needed to create and run the tests.
o No pre-recording or UI capture required.
o Test scripts can be created in parallel with software development.
o Test scripts immediately executable as soon as application is
available.
Useful Links
o Maveryx – http://www.maveryx.com
o User guide – http://www.maveryx.com/en/support/learn-
more/user-documentation.html
o Forum – http://www.maveryx.com/en/forum/index.html
o Training – http://www.maveryx.com/en/services/training.html
Thank You!
• www.maveryx.com
• sales@maveryx.com
• info@maveryx.com

Weitere ähnliche Inhalte

Was ist angesagt?

Unit Tests And Automated Testing
Unit Tests And Automated TestingUnit Tests And Automated Testing
Unit Tests And Automated TestingLee Englestone
 
Why Katalon Studio?
Why Katalon Studio?Why Katalon Studio?
Why Katalon Studio?Knoldus Inc.
 
Realtime selenium interview questions
Realtime selenium interview questionsRealtime selenium interview questions
Realtime selenium interview questionsKuldeep Pawar
 
Data driven testing
Data driven testingData driven testing
Data driven testingĐăng Minh
 
Embrace Unit Testing
Embrace Unit TestingEmbrace Unit Testing
Embrace Unit Testingalessiopace
 
Testing and Mocking Object - The Art of Mocking.
Testing and Mocking Object - The Art of Mocking.Testing and Mocking Object - The Art of Mocking.
Testing and Mocking Object - The Art of Mocking.Deepak Singhvi
 
Selenium interview-questions-freshers
Selenium interview-questions-freshersSelenium interview-questions-freshers
Selenium interview-questions-freshersNaga Mani
 
Test Case Creation in Katalon Studio
Test Case Creation in Katalon StudioTest Case Creation in Katalon Studio
Test Case Creation in Katalon StudioRapidValue
 
Unit testing, UI testing and Test Driven Development in Visual Studio 2012
Unit testing, UI testing and Test Driven Development in Visual Studio 2012Unit testing, UI testing and Test Driven Development in Visual Studio 2012
Unit testing, UI testing and Test Driven Development in Visual Studio 2012Jacinto Limjap
 
Keyword Driven Testing using TestComplete
Keyword Driven Testing using TestCompleteKeyword Driven Testing using TestComplete
Keyword Driven Testing using TestCompletesrivinayak
 
FluentSelenium Presentation Code Camp09
FluentSelenium Presentation Code Camp09FluentSelenium Presentation Code Camp09
FluentSelenium Presentation Code Camp09Pyxis Technologies
 
Introduction to testing with MSTest, Visual Studio, and Team Foundation Serve...
Introduction to testing with MSTest, Visual Studio, and Team Foundation Serve...Introduction to testing with MSTest, Visual Studio, and Team Foundation Serve...
Introduction to testing with MSTest, Visual Studio, and Team Foundation Serve...Thomas Weller
 
QTP Training by INFOTECH
QTP Training by INFOTECHQTP Training by INFOTECH
QTP Training by INFOTECHPravinsinh
 
Execute Automation Testing in 3 Steps
Execute Automation Testing in 3 StepsExecute Automation Testing in 3 Steps
Execute Automation Testing in 3 StepsExecuteAutomation
 
Unit testing php-unit - phing - selenium_v2
Unit testing   php-unit - phing - selenium_v2Unit testing   php-unit - phing - selenium_v2
Unit testing php-unit - phing - selenium_v2Tricode (part of Dept)
 

Was ist angesagt? (20)

Unit Tests And Automated Testing
Unit Tests And Automated TestingUnit Tests And Automated Testing
Unit Tests And Automated Testing
 
Unit Testing
Unit TestingUnit Testing
Unit Testing
 
Why Katalon Studio?
Why Katalon Studio?Why Katalon Studio?
Why Katalon Studio?
 
Realtime selenium interview questions
Realtime selenium interview questionsRealtime selenium interview questions
Realtime selenium interview questions
 
Unit Testing 101
Unit Testing 101Unit Testing 101
Unit Testing 101
 
Data driven testing
Data driven testingData driven testing
Data driven testing
 
Embrace Unit Testing
Embrace Unit TestingEmbrace Unit Testing
Embrace Unit Testing
 
Test Complete
Test CompleteTest Complete
Test Complete
 
Testing and Mocking Object - The Art of Mocking.
Testing and Mocking Object - The Art of Mocking.Testing and Mocking Object - The Art of Mocking.
Testing and Mocking Object - The Art of Mocking.
 
Selenium interview-questions-freshers
Selenium interview-questions-freshersSelenium interview-questions-freshers
Selenium interview-questions-freshers
 
Test Case Creation in Katalon Studio
Test Case Creation in Katalon StudioTest Case Creation in Katalon Studio
Test Case Creation in Katalon Studio
 
Unit testing, UI testing and Test Driven Development in Visual Studio 2012
Unit testing, UI testing and Test Driven Development in Visual Studio 2012Unit testing, UI testing and Test Driven Development in Visual Studio 2012
Unit testing, UI testing and Test Driven Development in Visual Studio 2012
 
Keyword Driven Testing using TestComplete
Keyword Driven Testing using TestCompleteKeyword Driven Testing using TestComplete
Keyword Driven Testing using TestComplete
 
Unit test
Unit testUnit test
Unit test
 
FluentSelenium Presentation Code Camp09
FluentSelenium Presentation Code Camp09FluentSelenium Presentation Code Camp09
FluentSelenium Presentation Code Camp09
 
Introduction to testing with MSTest, Visual Studio, and Team Foundation Serve...
Introduction to testing with MSTest, Visual Studio, and Team Foundation Serve...Introduction to testing with MSTest, Visual Studio, and Team Foundation Serve...
Introduction to testing with MSTest, Visual Studio, and Team Foundation Serve...
 
Unit tests and TDD
Unit tests and TDDUnit tests and TDD
Unit tests and TDD
 
QTP Training by INFOTECH
QTP Training by INFOTECHQTP Training by INFOTECH
QTP Training by INFOTECH
 
Execute Automation Testing in 3 Steps
Execute Automation Testing in 3 StepsExecute Automation Testing in 3 Steps
Execute Automation Testing in 3 Steps
 
Unit testing php-unit - phing - selenium_v2
Unit testing   php-unit - phing - selenium_v2Unit testing   php-unit - phing - selenium_v2
Unit testing php-unit - phing - selenium_v2
 

Ähnlich wie Testing Java applications with Maveryx

Keywords-driven testing vs Scripted automation
Keywords-driven testing vs Scripted automationKeywords-driven testing vs Scripted automation
Keywords-driven testing vs Scripted automationMaveryx
 
Stf 2019 workshop - enhanced test automation for web and desktop apps
Stf 2019   workshop - enhanced test automation for web and desktop appsStf 2019   workshop - enhanced test automation for web and desktop apps
Stf 2019 workshop - enhanced test automation for web and desktop appsMaveryx
 
How to easily design and automate test cases.pdf
How to easily design and automate test cases.pdfHow to easily design and automate test cases.pdf
How to easily design and automate test cases.pdfMaveryx
 
Codeless Web testing: a keyword-driven example with Excel
Codeless Web testing: a keyword-driven example with ExcelCodeless Web testing: a keyword-driven example with Excel
Codeless Web testing: a keyword-driven example with ExcelMaveryx
 
03 test specification and execution
03   test specification and execution03   test specification and execution
03 test specification and executionClemens Reijnen
 
How To Write A Test Case In Software Testing | Edureka
How To Write A Test Case In Software Testing | EdurekaHow To Write A Test Case In Software Testing | Edureka
How To Write A Test Case In Software Testing | EdurekaEdureka!
 
Building And Executing Test Cases with Appium and Various Test Frameworks.pdf
Building And Executing Test Cases with Appium and Various Test Frameworks.pdfBuilding And Executing Test Cases with Appium and Various Test Frameworks.pdf
Building And Executing Test Cases with Appium and Various Test Frameworks.pdfpCloudy
 
Getting Started with Selenium
Getting Started with SeleniumGetting Started with Selenium
Getting Started with SeleniumDave Haeffner
 
Shahnawaz Md Test Engineer
Shahnawaz Md Test EngineerShahnawaz Md Test Engineer
Shahnawaz Md Test EngineerShahnawaz Md
 
Custom Validation PHP
Custom Validation PHPCustom Validation PHP
Custom Validation PHPProdigyView
 
Telerik Test studio
Telerik Test studio Telerik Test studio
Telerik Test studio Ahamad Sk
 
Getting started with appium
Getting started with appiumGetting started with appium
Getting started with appiumPratik Patel
 
The Testing Planet Issue 2
The Testing Planet Issue 2The Testing Planet Issue 2
The Testing Planet Issue 2Rosie Sherry
 
'BIG Testing' with Hans Buwalda
'BIG Testing' with Hans Buwalda 'BIG Testing' with Hans Buwalda
'BIG Testing' with Hans Buwalda TEST Huddle
 

Ähnlich wie Testing Java applications with Maveryx (20)

Keywords-driven testing vs Scripted automation
Keywords-driven testing vs Scripted automationKeywords-driven testing vs Scripted automation
Keywords-driven testing vs Scripted automation
 
Stf 2019 workshop - enhanced test automation for web and desktop apps
Stf 2019   workshop - enhanced test automation for web and desktop appsStf 2019   workshop - enhanced test automation for web and desktop apps
Stf 2019 workshop - enhanced test automation for web and desktop apps
 
How to easily design and automate test cases.pdf
How to easily design and automate test cases.pdfHow to easily design and automate test cases.pdf
How to easily design and automate test cases.pdf
 
Reliable Ecommerce Website Testing
Reliable Ecommerce Website TestingReliable Ecommerce Website Testing
Reliable Ecommerce Website Testing
 
Ecommerce Website Testing Checklist
Ecommerce Website Testing ChecklistEcommerce Website Testing Checklist
Ecommerce Website Testing Checklist
 
Codeless Web testing: a keyword-driven example with Excel
Codeless Web testing: a keyword-driven example with ExcelCodeless Web testing: a keyword-driven example with Excel
Codeless Web testing: a keyword-driven example with Excel
 
03 test specification and execution
03   test specification and execution03   test specification and execution
03 test specification and execution
 
Test studio
Test studioTest studio
Test studio
 
Review of an open source unit test tool- Cucumber_Presentation
Review of an open source unit test tool- Cucumber_PresentationReview of an open source unit test tool- Cucumber_Presentation
Review of an open source unit test tool- Cucumber_Presentation
 
How To Write A Test Case In Software Testing | Edureka
How To Write A Test Case In Software Testing | EdurekaHow To Write A Test Case In Software Testing | Edureka
How To Write A Test Case In Software Testing | Edureka
 
Building And Executing Test Cases with Appium and Various Test Frameworks.pdf
Building And Executing Test Cases with Appium and Various Test Frameworks.pdfBuilding And Executing Test Cases with Appium and Various Test Frameworks.pdf
Building And Executing Test Cases with Appium and Various Test Frameworks.pdf
 
Getting Started with Selenium
Getting Started with SeleniumGetting Started with Selenium
Getting Started with Selenium
 
Shahnawaz Md Test Engineer
Shahnawaz Md Test EngineerShahnawaz Md Test Engineer
Shahnawaz Md Test Engineer
 
Custom Validation PHP
Custom Validation PHPCustom Validation PHP
Custom Validation PHP
 
Telerik Test studio
Telerik Test studio Telerik Test studio
Telerik Test studio
 
Getting started with appium
Getting started with appiumGetting started with appium
Getting started with appium
 
10 Principles of Apex Testing
10 Principles of Apex Testing10 Principles of Apex Testing
10 Principles of Apex Testing
 
The Testing Planet Issue 2
The Testing Planet Issue 2The Testing Planet Issue 2
The Testing Planet Issue 2
 
'BIG Testing' with Hans Buwalda
'BIG Testing' with Hans Buwalda 'BIG Testing' with Hans Buwalda
'BIG Testing' with Hans Buwalda
 
manual interview q.pdf
manual interview q.pdfmanual interview q.pdf
manual interview q.pdf
 

Kürzlich hochgeladen

%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrainmasabamasaba
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...masabamasaba
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrandmasabamasaba
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...masabamasaba
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationJuha-Pekka Tolvanen
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfonteinmasabamasaba
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfonteinmasabamasaba
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 

Kürzlich hochgeladen (20)

%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 

Testing Java applications with Maveryx

  • 1. © 2014 Maveryx srl. All rights reserved. Testing Java Applications with Maveryx
  • 2. Overview of Maveryx Why Maveryx is different Testing a Java Application Step-by-Step Overview
  • 3. © 2014 Maveryx srl. All rights reserved. Overview of Maveryx
  • 4. Maveryx is a professional, award-winning test automation tool for functional and regression testing of Java™ & Android™ applications. Maveryx provides testers with automated testing capabilities for functional, regression, GUI, data-driven and keyword-driven testing. Maveryx
  • 5. No GUI Maps ⇒ Runtime GUI Inspection tool Intelligent UI Objects Recognition Code-free Keyword-driven Testing Data-driven testing Assertion-based Verification Points Extension plugin mechanism Suitable for Java™ and Android™ Standard Test Logging Automated Testing in Java™ Test Data Generation Tool Advanced Test API Available as Eclipse plugin For Windows, Linux & Mac … Features © 2014 Maveryx srl. All rights reserved.
  • 6. © 2014 Maveryx srl. All rights reserved. Why Maveryx is different?
  • 7. No UI Maps. No Recording. No recording. No capture. No UI Maps. o NO UI MAPS or Object Repositories to ‘learn’ & maintain o No pre-recording or UI capture o Test scripts immediately executable! o Automatic UI inspection directly at runtime o Support for all standard and advanced Java™ GUI controls
  • 8. o “Classical” to Fuzzy matching algorithms to unambiguously recognize and locate UI objects directly at runtime during test execution o Automatically accommodate UI changes without modifying the tests o “Geolocation” of objects in the User Interface (TOP, BOTTOM, LEFT, RIGHT …) Unique object identification © 2014 Maveryx srl. All rights reserved.
  • 9. o Code-free Keyword-driven Testing o Keyword testing driven from Excel™ sheets and XML files o No coding required ⇒ short time to implement o Data-driven testing o Dedicated scripting API for data-driven testing o Varying set of data sources : Excel™ sheets , CSV & XML files Testing Methodology © 2014 Maveryx srl. All rights reserved.
  • 10. o Standard Test Logging and Reporting o XML ⇒ HTML test reports o ASCII test logs o Automated capturing of screenshots on test failures o Test Execution Metrics Test Logging © 2014 Maveryx srl. All rights reserved.
  • 11. © 2014 Maveryx srl. All rights reserved. Testing a Java Application Step-by-step
  • 12. The Eclipse Plugin Maveryx PerspectiveJUnit integration Action buttons Report / Metrics View
  • 14. Create a New Test Project 1. Select File → New → Maveryx Test Project In the Maveryx Test Project window 1. enter the Project name (e.g. “PasswordDemoTest”) 2. in the JRE section make sure that Java/JRE 6 or higher is selected
  • 15. Create a New Test Script 1. Select File → New → Maveryx Test Class In the Maveryx Test Class window 1. enter a name for the Package (e.g. “com.maveryx.demo”) 2. enter a Name for the test class / script (e.g. “PasswordDemoTest”)
  • 16. Create the Launch file To execute the application-under-test it is necessary to create the related launch file. The AUT Configurator tool is a GUI-based application which enables testers to create, save and modify launch files (⇒ XML files). To start the Application Configuration tool on Windows: 1. select Start → All Programs → Maveryx → AUT Configurator
  • 17. The Test Script «Stub» Set the full path (pathName) to the launch file. e.g. private final String pathName = "C:/Maveryx/demo/AUT/PasswordDemo.xml"; The static method startApplication(pathName) in class Bootstrap launches the application- under-test. The static method stop(pathName) in class Bootstrap closes the application-under-test.
  • 18. The Test Cases Test Case #001 1. Launch the application-under- test 2. Check that the password text field is editable 3. Enter a valid password 4. Check that the "OK" button is enabled 5. Press the "OK" button to confirm the password 6. Check that a successful authentication message is returned 7. Close the application-under- test Test Case #002 1. Launch the application-under- test 2. Check that the password text field is editable 3. Enter a invalid password 4. Check that the "OK" button is enabled 5. Press the "OK" button to confirm the password 6. Check that an authentication error message is returned 7. Close the application-under- test
  • 19. Launch the application Test Case #001 1. Launch the application-under-test 2. Check that the password text field is editable 3. Enter a valid password 4. Check that the "OK" button is enabled 5. Press the "OK" button to confirm the password 6. Check that a successful authentication message is returned 7. Close the application-under-test
  • 20. Launch the application The static method startApplication(pathName) in class Bootstrap launches the application- under-test
  • 21. Working with text fields Test Case #001 1. Launch the application-under-test 2. Check that the password text field is editable 3. Enter a valid password 4. Check that the "OK" button is enabled 5. Press the "OK" button to confirm the password 6. Check that a successful authentication message is returned 7. Close the application-under-test
  • 22. Working with text fields 1. Create a new GuiPasswordText object specifying the label 2. Verification Point : check that the password text field is editable 3. Enter the password
  • 23. Working with buttons Test Case #001 1. Launch the application-under-test 2. Check that the password text field is editable 3. Enter a valid password 4. Check that the "OK" button is enabled 5. Press the "OK" button to confirm the password 6. Check that a successful authentication message is returned 7. Close the application-under-test
  • 24. Working with buttons 1. Create a new GuiButton object specifying the caption 2. Verification Point : check that the button is enabled 3. Click the button
  • 25. Working with dialogs Test Case #001 1. Launch the application-under-test 2. Check that the password text field is editable 3. Enter a valid password 4. Check that the "OK" button is enabled 5. Press the "OK" button to confirm the password 6. Check that a successful authentication message is returned 7. Close the application-under-test
  • 26. Working with dialogs 1. Create a new GuiDialog object specifying the title 2. Create a new GuiLabel object specifying the text and the container 3. Verification Point : check that the label has the expected text 4. Close the dialog
  • 27. Working with frames Test Case #001 1. Launch the application-under-test 2. Check that the password text field is editable 3. Enter a valid password 4. Check that the "OK" button is enabled 5. Press the "OK" button to confirm the password 6. Check that a successful authentication message is returned 7. Close the application-under-test
  • 28. Working with frames 1. Create a new GuiFrame object specifying the title 2. Close the frame 3. Close the Java Virtual Machine
  • 31. Run the Test Script 1. Select File → Run As → JUnit Test
  • 32. View the Test Results 1. Test Results 2. Test Metrics 3. Test Console Log
  • 34. Lesson Learned o NO UI MAPS needed to create and run the tests. o No pre-recording or UI capture required. o Test scripts can be created in parallel with software development. o Test scripts immediately executable as soon as application is available.
  • 35. Useful Links o Maveryx – http://www.maveryx.com o User guide – http://www.maveryx.com/en/support/learn- more/user-documentation.html o Forum – http://www.maveryx.com/en/forum/index.html o Training – http://www.maveryx.com/en/services/training.html
  • 36. Thank You! • www.maveryx.com • sales@maveryx.com • info@maveryx.com