JUNIT 5 & TESTCONTAINERS. Testing with Java and Docker

Size: px
Start display at page:

Download "JUNIT 5 & TESTCONTAINERS. Testing with Java and Docker"

Transcription

1 JUNIT 5 & TESTCONTAINERS Testing with Java and Docker

2 TIM RIEMER Solution Vorwerk Digital tim.riemer@vorwerk.de Co-Lead Kotlin UG github.com/timriemer

3 JUNIT 5

4 JUNIT 5 JUnit 5 = JUnit Platform + JUnit Jupiter + JUnit Vintage Current version: No public modifier needed Requires Java 8 or greater Support in IntelliJ IDEA and Eclipse IDE

5 public void simpletest() { assertequals(2, 1+1); }

6 EXAMPLE // JUnit 4 Imports import org.junit.test; import static org.junit.assert.assertequals;

7 EXAMPLE // JUnit 5 Imports import org.junit.jupiter.api.test; import static org.junit.jupiter.api.assertions.assertequals;

8 DEPENDENCIES <dependency> <groupid>org.junit.jupiter</groupid> <artifactid>junit-jupiter-engine</artifactid> <version>5.3.1</version> <scope>test</scope> </dependency>

9 ANNOTATIONS // static void tearup() { System.out.println("tearUp!"); } // static void teardown() { System.out.println("tearDown!"); }

10 ANNOTATIONS // void before() { System.out.println("before!"); } // void after() { System.out.println("after!"); }

11 ANNOTATIONS // @Test void simpletest() { assertequals(2, 1+1); }

12 ANNOTATIONS Nested test classes Must be non-static inner classes Can contain test methods, method No limit for depth of class hierarchy

13 class InnerClass void innerclasstest() { assertequals(4, 2+2); } }

14 ANNOTATIONS validate that the sum of equals 4") void shouldchecksumofcalculation() { assertequals(4, 2+2); }

15

16 ASSERTIONS New class: org.junit.jupiter.api.assertions Use of lambdas for lazy evaluation of messages Grouping of assertions New way to handle exceptions

17 void simpletest() { assertequals(5, 2+2, () -> "Result should be 5"); }

18 void simpletestforassertall() { assertall( () -> assertequals(2, 1+1), () -> assertequals(4, 2+2) ); }

19 void shouldthrowexception() { assertthrows(unsupportedoperationexception.class, () -> { throw new UnsupportedOperationException ("Operation not supported"); }); }

20 void shouldcheckthrownexception() { var exception = assertthrows(unsupportedoperationexception.class, () -> { throw new UnsupportedOperationException ("Operation not supported"); }); assertequals("operation not supported, exception.getmessage()); }

21 void testasserttimeout() { asserttimeout(ofseconds(10), () -> { Thread.sleep(15000); }); }

22 void testasserttimeoutpreemptively() { asserttimeoutpreemptively(ofseconds(10), () -> { Thread.sleep(15000); }); }

23 ASSUMPTIONS TestAbortedException if assumption fails -> test is void assumptiontest() { assumetrue(true); assumefalse(false); assumingthat("abc".equals("abc"), () -> assertequals(2, 1+1)); }

24 DYNAMIC Stream<DynamicTest> dynamictestsfromstream() { return Stream.of(1, 2, 3).map(i -> dynamictest("test " + i, () -> { assertequals(i * 2, i + i); })); }

25 DYNAMIC TESTS

26 CONDITIONAL TEST EXECUTION ExecutionCondition as extension API DisabledCondition simplest example annotation

27 CONDITIONAL TEST =, matches = =, matches = ), support for scripting languages, EXPERIMENTAL

28 PARAMETERIZED TESTS Experimental feature junit-jupiter-params dependency needed

29 = {"java8", "java9", "java10"}) void parameterizedtest(string param) { asserttrue(param.contains("java")); }

30 PARAMETERIZED = "[{index}] => = {"java8", "java9", "java10"}) void parameterizedtest(string param) { asserttrue(param.contains("java")); }

31 PARAMETERIZED for String, int, long and methodname ) - method must return Stream, Iterator or foo, bar, foo2, bar2 =

32 PARALLEL TEST EXCECUTION src/test/resources/junit-platform.properties: junit.jupiter.execution.parallel.enabled = true #junit.jupiter.execution.parallel.config.strategy = dynamic #junit.jupiter.execution.parallel.config.dynamic.factor = 1 #junit.jupiter.execution.parallel.config.strategy = fixed #junit.jupiter.execution.parallel.config.fixed.parallelism = 4 #junit.jupiter.execution.parallel.config.strategy = custom #junit.jupiter.execution.parallel.config.custom.class =

33 PARALLEL TEST EXCECUTION Synchronization for @ResourceLock(value =, mode = ) value: user-defined String, SYSTEM_PROPERTIES,, SYSTEM_OUT, SYSTEM_ERR mode: READ, READ_WRITE

34 WHAT and filtering in build with dynamic / TestTemplateInvocationContextProvider Extension API, extensions registered

35

36 INTRODUCTION Java library to launch Docker containers during JUnit tests Integration tests against the data access layer Integration tests with external dependencies (e.g. message broker, database, ) UI tests with containerized, Selenium compatible, web browsers

37 INTRODUCTION Current version: Requires Docker installation Requires Java 8 Compatible with JUnit

38 DEPENDENCIES <dependency> <groupid>org.testcontainers</groupid> <artifactid>testcontainers</artifactid> <version>1.9.1</version> <scope>test</scope> </dependency>

39 OWN MAVEN MODULES MySQL PostgreSQL Oracle XE Kafka Selenium

40 JUNIT public static GenericContainer wildfly = new GenericContainer("jboss/wildfly").withExposedPorts(8080, public void getexposedports() { var ports = wildfly.getexposedports(); var expectedports = Arrays.asList(8080, 9990); assertequals(expectedports, ports); }

41 JUNIT 5 static GenericContainer wildfly = new GenericContainer("jboss/wildfly").withExposedPorts(8080, static void startup() { wildfly.start(); static void teardown() { wildfly.stop(); void getexposedports() { var ports = wildfly.getexposedports(); var expectedports = Arrays.asList(8080, 9990); assertequals(expectedports, ports); }

42 GENERIC CONTAINER Offers flexible support for any container image as test dependency Reference public docker images Internal dockerized services

43 GENERIC CONTAINER withexposedports( ) withenv( ) withlabel( ) getcontaineripaddress() getmappedport( )

44 SPECIALISED CONTAINER Create images from Dockerfile withfilefromstring( ) withfilefromclasspath( ) Use Dockerfile DSL to define Dockerfiles in code

45 SPECIALISED void testdockerdslcontainer() { var container = new GenericContainer( new ImageFromDockerfile().withDockerfileFromBuilder(builder -> { builder.from( alpine:3.2").run("apk add --update git").cmd("git", version").build(); })).withexposedports(80); assertequals(arrays.aslist(80), container.getexposedports()); }

46 SPECIALISED CONTAINER Use database container to test database specific features No local setup or VM 100% database compatibility instead of in-memory H2 MySQL PostgreSQL Oracle XE

47 TESTCONTAINERS EXTENSION (NAIVE APPROACH) public class TestcontainersExtension implements BeforeAllCallback, AfterAllCallback { private List<Field> public void beforeall(extensioncontext context) throws Exception { // find all containers via Reflection, add them to allcontainers and iterate over them ((GenericContainer) f.get(container)).start(); // } public void afterall(extensioncontext context) throws Exception { // iterate over allcontainers and stop each container ((GenericContainer) f.get(container)).stop(); // }

48 SPECIALISED CONTAINER on class level private static PostgreSQLContainer postgres = new void testsimplesql() throws SQLException { // HikariConfig, HikariDataSource and Statement omitted statement.execute("select 1"); ResultSet resultset = statement.getresultset(); resultset.next(); assertequals(1, resultset.getint(1)); } }

49 SELENIUM WEBDRIVER CONTAINER Compatible with Selenium 2 / Webdriver tests Use of all Selenium docker images from selenium-docker project Clean and fixed environment for each browser and test Selenium API and browser compatibility assured VNC recording (optionally just failed tests)

50 SELENIUM WEBDRIVER CONTAINER on class level private BrowserWebDriverContainer chrome = new BrowserWebDriverContainer<>().withDesiredCapabilities(DesiredCapabilities.chrome()).withNetwork(Network.SHARED).withNetworkAliases("vnchost").withRecordingMode(BrowserWebDriverContainer.VncRecordingMode.SKIP, null); private VncRecordingContainer vnc = new void searchfortestcontainersongoogle() { chrome.getwebdriver().get(" chrome.getwebdriver().findelement(by.name("q")).sendkeys("testcontainers"); chrome.getwebdriver().findelement(by.name("q")).submit(); assertequals("testcontainers", driver.findelement(by.name( q")).getattribute("value")); } vnc.saverecordingtofile(new File("build/", name + testcontainers.flv ));

51 FUTURE Testcontainers 2.0 API cleanup Decoupling from JUnit 4 to support other frameworks directly

52 ALTERNATIVES TestNG Other JVM languages Groovy, Spock, Testcontainers-Spock Kotlin, Testcontainers (with workaround)

53 github.com/timriemer/jdk10_junit_testcontainers

Görge Albrecht State of the Union

Görge Albrecht State of the Union @g_o_rge JUnit - State of the Union Görge Albrecht 206 JUnit State of the Union Görge Albrecht Software Developer since 989 Freelance Code Mentor "taking care of code" Need help writing simpler code? Contact

More information

Embracing. with. Noopur Gupta. Eclipse JDT co-lead. IBM

Embracing. with. Noopur Gupta. Eclipse JDT co-lead. IBM Embracing Noopur Gupta Eclipse JDT co-lead IBM India with noopur_gupta@in.ibm.com @noopur2507 1 JUnit Framework JUnit 4.0 Released in 2006 JUnit 5.0 Released in September 2017 The top 20 Java libraries

More information

JUnit. New Opportunities for Testing on the

JUnit. New Opportunities for Testing on the JUnit New Opportunities for Testing on the JVM Sam Brannen Spring and Java Consultant Trainer, Coach, Hardcore developer at heart Java Developer for about 20 years Spring Framework Core Committer since

More information

JUnit 5 User Guide. Stefan Bechtold, Sam Brannen, Johannes Link, Matthias Merdes, Marc Philipp, Christian Stein. Version 5.1.0

JUnit 5 User Guide. Stefan Bechtold, Sam Brannen, Johannes Link, Matthias Merdes, Marc Philipp, Christian Stein. Version 5.1.0 JUnit 5 User Guide Stefan Bechtold, Sam Brannen, Johannes Link, Matthias Merdes, Marc Philipp, Christian Stein Version 5.1.0 Table of Contents 1. Overview................................................................................

More information

Junit 5 and Sling/AEM Mocks

Junit 5 and Sling/AEM Mocks APACHE SLING & FRIENDS TECH MEETUP 10-12 SEPTEMBER 2018 Junit 5 and Sling/AEM Mocks Stefan Seifert, pro!vision GmbH About the Speaker AEM Developer Apache Sling PMC CTO of pro!vision GmbH Stefan Seifert

More information

JUNIT 5 EXTENSIONS 1. 1

JUNIT 5 EXTENSIONS 1. 1 JUNIT EXTENSIONS 1. 1 MARC PHILIPP Software Engineer @ LogMeIn in Karlsruhe, Germany JUnit Maintainer since 2012 Twitter: @marcphilipp Web: marcphilipp.de 1. 2 JUNIT IS RELEASED! Release date: September

More information

Test-Driven Development JUnit

Test-Driven Development JUnit Test-Driven Development JUnit Click to edit Master EECS text 2311 styles - Software Development Project Second level Third level Fourth level Fifth level Wednesday, January 24, 2018 1 Unit Testing Testing

More information

Java Programming Basics

Java Programming Basics Java Programming Basics Why Java for Selenium Installing Java Installing Eclipse First Eclipse Project First Java program Concept of class file Datatypes in Java String class and functions Practical Examples

More information

JUnit 5 - Was bringt die neue Version?

JUnit 5 - Was bringt die neue Version? 1 JUnit 5 - Was bringt die neue Version? Matthias Merdes JUnit 5 Team Marc Philipp JUnit 5 Team 2 Matthias Merdes github.com/mmerdes 3 Committer im JUnit 5-Team Lead Developer Architektur & Services bei

More information

Binghamton University. CS-140 Fall Unit Testing

Binghamton University. CS-140 Fall Unit Testing Unit Testing 1 Test Early, Test Often 2 Informal Unit Testing public static void main(string[] args) { Rectangle rect = new Rectangle ( new Point(20,30), 20,40 ); System.out.println("Created " + rect);

More information

Binghamton University. CS-140 Fall Unit Testing

Binghamton University. CS-140 Fall Unit Testing Unit Testing 1 Test Early, Test Often 2 Informal Unit Testing package lab05; import java.lang.illegalargumentexception; public class ProfTest { public static void main(string[] args) { System.out.println("Professor

More information

A Guided Tour of Test Automation

A Guided Tour of Test Automation A Guided Tour of Test Automation My slides are available for you at: http://idiacomputing.com/publications.html A Test, Check, or Scenario Arrange Act Assert Given When Then Arrange Given The preconditions

More information

Selenium Testing Course Content

Selenium Testing Course Content Selenium Testing Course Content Introduction What is automation testing? What is the use of automation testing? What we need to Automate? What is Selenium? Advantages of Selenium What is the difference

More information

Selenium. Duration: 50 hrs. Introduction to Automation. o Automating web application. o Automation challenges. o Automation life cycle

Selenium. Duration: 50 hrs. Introduction to Automation. o Automating web application. o Automation challenges. o Automation life cycle Selenium Duration: 50 hrs. Introduction to Automation o Automating web application o Automation challenges o Automation life cycle o Role of selenium in test automation o Overview of test automation tools

More information

Test Execution and Automation. CSCE Lecture 15-03/20/2018

Test Execution and Automation. CSCE Lecture 15-03/20/2018 Test Execution and Automation CSCE 747 - Lecture 15-03/20/2018 Executing Tests We ve covered many techniques to derive test cases. How do you run them on the program? You could run the code and check results

More information

SELENIUM TRAINING COURSE CONTENT

SELENIUM TRAINING COURSE CONTENT SECTION 1 : INTRODUCTION SELENIUM TRAINING COURSE CONTENT What is automation testing? When Automation Testing is needed? What is the use of automation testing? Different Automation Tools available in the

More information

Appium mobile test automation

Appium mobile test automation Appium mobile test automation for Google Android and Apple ios Last updated: 10 July 2017 Pepgo Limited, 71-75 Shelton Street, Covent Garden, London, WC2H 9JQ, United Kingdom Contents About this document...

More information

SELENIUM. Courses Offered. Ph: / Course Coverage:- Date:..Timings.. Duration Fees. Testing Tools QTP Load Runner Hadoop

SELENIUM. Courses Offered. Ph: / Course Coverage:- Date:..Timings.. Duration Fees. Testing Tools QTP Load Runner Hadoop SELENIUM Java for Selenium Selenium IDE Selenium WebDriver JUnit Framework TestNG Framework Course Coverage:- SVN Maven DataBase Testing Using Selenium Grid POM(Page Object Model Date:..Timings.. Duration

More information

Mind Q Systems Private Limited

Mind Q Systems Private Limited Software Testing Tools Introduction Introduction to software Testing Software Development Process Project Vs Product Objectives of Testing Testing Principals Software Development Life Cycle SDLC SDLC Models

More information

SELENIUM. SELENIUM COMPONENTS Selenium IDE Selenium RC Selenium Web Driver Selenium Grid

SELENIUM. SELENIUM COMPONENTS Selenium IDE Selenium RC Selenium Web Driver Selenium Grid INTRODUCTION TO AUTOMATION Testing What is automation testing? Different types of Automation Tools 1. Functional Testing Tools 2. Test Management Tools 3. Performance Testing Tools Advantages of automation

More information

Mind Q Systems Private Limited

Mind Q Systems Private Limited SELENIUM Course Content. What is automation testing When to go for automation Different Automation Tools (vendor & open source tools) Advantages of Automation Criteria for Automation Difference between

More information

Programming Kotlin. Familiarize yourself with all of Kotlin s features with this in-depth guide. Stephen Samuel Stefan Bocutiu BIRMINGHAM - MUMBAI

Programming Kotlin. Familiarize yourself with all of Kotlin s features with this in-depth guide. Stephen Samuel Stefan Bocutiu BIRMINGHAM - MUMBAI Programming Kotlin Familiarize yourself with all of Kotlin s features with this in-depth guide Stephen Samuel Stefan Bocutiu BIRMINGHAM - MUMBAI Programming Kotlin Copyright 2017 Packt Publishing First

More information

Selenium Training. Training Topics

Selenium Training. Training Topics Selenium Training Training Topics Chapter 1 : Introduction to Automation Testing What is automation testing? When Automation Testing is needed? When Automation Testing is not needed? What is the use of

More information

(Complete Package) We are ready to serve Latest Testing Trends, Are you ready to learn? New Batches Info

(Complete Package) We are ready to serve Latest Testing Trends, Are you ready to learn? New Batches Info (Complete Package) SELENIUM CORE JAVA We are ready to serve Latest Testing Trends, Are you ready to learn? New Batches Info START DATE : TIMINGS : DURATION : TYPE OF BATCH : FEE : FACULTY NAME : LAB TIMINGS

More information

Learning Objectives of CP-SAT v 1.31

Learning Objectives of CP-SAT v 1.31 Learning Objectives of CP-SAT v 1.31 Knowledge with experience is power; certification is just a by-product What is CP-SAT? CP-SAT stands for Certified Professional Selenium Automation Testing certification

More information

Unit Testing. CS 240 Advanced Programming Concepts

Unit Testing. CS 240 Advanced Programming Concepts Unit Testing CS 240 Advanced Programming Concepts F-22 Raptor Fighter 2 F-22 Raptor Fighter Manufactured by Lockheed Martin & Boeing How many parts does the F-22 have? 3 F-22 Raptor Fighter What would

More information

(Complete Package) We are ready to serve Latest Testing Trends, Are you ready to learn? New Batches Info

(Complete Package) We are ready to serve Latest Testing Trends, Are you ready to learn? New Batches Info (Complete Package) SELENIUM CORE JAVA We are ready to serve Latest Testing Trends, Are you ready to learn? New Batches Info START DATE : TIMINGS : DURATION : TYPE OF BATCH : FEE : FACULTY NAME : LAB TIMINGS

More information

JAVA Unit testing Java, winter semester

JAVA Unit testing Java, winter semester JAVA Unit testing Introduction unit testing testing small units of functionality a unit independent on other ones tests are separated creating helper objects for tests context typically in OO languages

More information

Best Practices for Unit Testing in Kotlin

Best Practices for Unit Testing in Kotlin Best Practices for Unit Testing in Kotlin @philipp_hauer Spreadshirt KotlinConf, Amsterdam Oct 05, 2018 Question My First Test in Kotlin... class UserControllerTest { companion object { bu, s a c! open

More information

Selenium Course Content

Selenium Course Content Chapter 1 : Introduction to Automation Testing Selenium Course Content What is automation testing? When Automation Testing is needed? When Automation Testing is not needed? What is the use of automation

More information

CSCE 747 Unit Testing Laboratory Name(s):

CSCE 747 Unit Testing Laboratory Name(s): CSCE 747 Unit Testing Laboratory Name(s): You have been hired to test our new calendar app! Congrats!(?) This program allows users to book meetings, adding those meetings to calendars maintained for rooms

More information

SeleniumJava Training Solution

SeleniumJava Training Solution SeleniumJava Training Solution Online and classroom training Contact Info email: seleniumjava.training@gmail.com Mob: +91-9535776954 (seleniumjava.training@gmail.com) Page 1 Selenium Intro ***************************

More information

Learning Objectives of CP-SAT v 1.3

Learning Objectives of CP-SAT v 1.3 Learning Objectives of CP-SAT v 1.3 Knowledge with experience is power; certification is just a by-product What is CP-SAT? CP-SAT stands for Certified Practitioner Selenium Automation Testing certification

More information

JUnit Programming Cookbook. JUnit Programming Cookbook

JUnit Programming Cookbook. JUnit Programming Cookbook JUnit Programming Cookbook i JUnit Programming Cookbook JUnit Programming Cookbook ii Contents 1 Hello World Example 1 1.1 Setup JUnit Hello World Project........................................... 1 1.2

More information

Introduction to Automation. What is automation testing Advantages of Automation Testing How to learn any automation tool Types of Automation tools

Introduction to Automation. What is automation testing Advantages of Automation Testing How to learn any automation tool Types of Automation tools Introduction to Automation What is automation testing Advantages of Automation Testing How to learn any automation tool Types of Automation tools Introduction to Selenium What is Selenium Use of Selenium

More information

Unit Tes2ng Ac2vity. SWEN-261 Introduc2on to So3ware Engineering. Department of So3ware Engineering Rochester Ins2tute of Technology

Unit Tes2ng Ac2vity. SWEN-261 Introduc2on to So3ware Engineering. Department of So3ware Engineering Rochester Ins2tute of Technology Unit Tes2ng Ac2vity SWEN-261 Introduc2on to So3ware Engineering Department of So3ware Engineering Rochester Ins2tute of Technology Your activity for the Unit Testing lesson is to build tests for existing

More information

Class 1 Introduction to Selenium, Software Test Life Cycle.

Class 1 Introduction to Selenium, Software Test Life Cycle. Class 1 Introduction to Selenium, Software Test Life Cycle. I) Introduction to Selenium 1) What is Selenium? 2) History of the Selenium Project 3) Selenium Components / Selenium s Tool Suite 4) Platforms

More information

AUTOMATION TESTING FRAMEWORK FOR LUMINOUS LMS

AUTOMATION TESTING FRAMEWORK FOR LUMINOUS LMS AUTOMATION TESTING FRAMEWORK FOR LUMINOUS LMS CONTENT Introduction. List of tools used to create Testing Framework Luminous LMS work scheme Testing Framework work scheme Automation scenario set lifecycle

More information

[paf Wj] open source. Selenium 1.0 Testing Tools. Beginner's Guide. using the Selenium Framework to ensure the quality

[paf Wj] open source. Selenium 1.0 Testing Tools. Beginner's Guide. using the Selenium Framework to ensure the quality Selenium 1.0 Testing Tools Beginner's Guide Test your web applications with multiple browsers the Selenium Framework to ensure the quality of web applications David Burns [paf Wj] open source I I Av< IV

More information

International Journal of Advance Engineering and Research Development. Proof of concept (Poc) selenium web driver based Automation framework

International Journal of Advance Engineering and Research Development. Proof of concept (Poc) selenium web driver based Automation framework Scientific Journal of Impact Factor (SJIF): 4.72 International Journal of Advance Engineering and Research Development Volume 4, Issue 7, July -2017 e-issn (O): 2348-4470 p-issn (P): 2348-6406 Proof of

More information

Hoverfly Java Documentation

Hoverfly Java Documentation Hoverfly Java Documentation Release 0.11.0 SpectoLabs Aug 24, 2018 Contents 1 Quickstart 3 1.1 Maven.................................................. 3 1.2 Gradle..................................................

More information

CS 215 Software Design Homework 3 Due: February 28, 11:30 PM

CS 215 Software Design Homework 3 Due: February 28, 11:30 PM CS 215 Software Design Homework 3 Due: February 28, 11:30 PM Objectives Specifying and checking class invariants Writing an abstract class Writing an immutable class Background Polynomials are a common

More information

mvn package -Dmaven.test.skip=false //builds DSpace and runs tests

mvn package -Dmaven.test.skip=false //builds DSpace and runs tests DSpace Testing 1 Introduction 2 Quick Start 2.1 Maven 2.2 JUnit 2.3 JMockit 2.4 ContiPerf 2.5 H2 3 Unit Tests Implementation 3.1 Structure 3.2 Limitations 3.3 How to build new tests 3.4 How to run the

More information

Unit Testing Activity

Unit Testing Activity Unit Testing Activity SWEN-261 Introduction to Software Engineering Department of Software Engineering Rochester Institute of Technology Your activity for the Unit Testing lesson is to build tests for

More information

CS201 - Assignment 3, Part 1 Due: Friday February 28, at the beginning of class

CS201 - Assignment 3, Part 1 Due: Friday February 28, at the beginning of class CS201 - Assignment 3, Part 1 Due: Friday February 28, at the beginning of class One of the keys to writing good code is testing your code. This assignment is going to introduce you and get you setup to

More information

Peers Techno log ies Pv t. L td. Core Java & Core Java &Adv Adv Java Java

Peers Techno log ies Pv t. L td. Core Java & Core Java &Adv Adv Java Java Page 1 Peers Techno log ies Pv t. L td. Course Brochure Core Java & Core Java &Adv Adv Java Java Overview Core Java training course is intended for students without an extensive programming background.

More information

EXPERT TRAINING PROGRAM [Selenium 2.0 / WebDriver]

EXPERT TRAINING PROGRAM [Selenium 2.0 / WebDriver] EXPERT TRAINING PROGRAM [Selenium 2.0 / WebDriver] COURSE OVERVIEW Automation and Automation Concepts Introduction to Test Automation Test Automation Truths or Myths Where to use Test Automation and Where

More information

Beyond JUnit: Introducing TestNG The Next Generation in Testing

Beyond JUnit: Introducing TestNG The Next Generation in Testing Beyond JUnit: Introducing TestNG The Next Generation in Testing Hani Suleiman CTO Formicary http://www.formicary.net hani@formicary.net TS 3097 2006 JavaOne SM Conference Session TS-3097 Testing Renewed

More information

JUnit Framework. Terminology: assertions, annotations, fixtures. Dr. Siobhán Drohan Mairead Meagher. Produced by:

JUnit Framework. Terminology: assertions, annotations, fixtures. Dr. Siobhán Drohan Mairead Meagher. Produced by: JUnit Framework Terminology: assertions, annotations, fixtures Produced by: Dr. Siobhán Drohan Mairead Meagher Department of Computing and Mathematics http://www.wit.ie/ Topic List General Terminology

More information

P2: Advanced Java & Exam Preparation

P2: Advanced Java & Exam Preparation P2: Advanced Java & Exam Preparation Claudio Corrodi May 18 2018 1 Java 8: Default Methods public interface Addressable { public String getstreet(); public String getcity(); public String getfulladdress();

More information

SELENIUM - REMOTE CONTROL

SELENIUM - REMOTE CONTROL http://www.tutorialspoint.com/selenium/selenium_rc.htm SELENIUM - REMOTE CONTROL Copyright tutorialspoint.com Selenium Remote Control RC was the main Selenium project that sustained for a long time before

More information

REPAST MODEL TESTING GUIDE

REPAST MODEL TESTING GUIDE REPAST MODEL TESTING GUIDE JONATHAN OZIK, NICK COLLIER - REPAST DEVELOPMENT TEAM 0. Before we Get Started Before we can do anything with Repast Simphony, we need to make sure that we have a proper installation

More information

SWE 434 Software Testing and Validation

SWE 434 Software Testing and Validation Research Group (Practical Labs) 1 SWE 434 and Validation Testing Methods using JUnit Lab material Courtesy: Dr. M. Shamim Hossain (SWE Department, King Saud University) and Prof. Alan Some (University

More information

Java SE 8 Programming

Java SE 8 Programming Oracle University Contact Us: +52 1 55 8525 3225 Java SE 8 Programming Duration: 5 Days What you will learn This Java SE 8 Programming training covers the core language features and Application Programming

More information

White-box testing. Software Reliability and Testing - Barbara Russo SERG - Laboratory of Empirical Software Engineering.

White-box testing. Software Reliability and Testing - Barbara Russo SERG - Laboratory of Empirical Software Engineering. White-box testing Software Reliability and Testing - Barbara Russo SERG - Laboratory of Empirical Software Engineering Barbara Russo 1 White-box testing White-box testing is a verification technique that

More information

Topics covered. Introduction to JUnit JUnit: Hands-on session Introduction to Mockito Mockito: Hands-on session. JUnit & Mockito 2

Topics covered. Introduction to JUnit JUnit: Hands-on session Introduction to Mockito Mockito: Hands-on session. JUnit & Mockito 2 JUnit & Mockito 1 Topics covered Introduction to JUnit JUnit: Hands-on session Introduction to Mockito Mockito: Hands-on session JUnit & Mockito 2 Introduction to JUnit JUnit & Mockito 3 What is JUnit?

More information

The age of automation is going to be the age of 'do it yourself. - Marshall McLuhan

The age of automation is going to be the age of 'do it yourself. - Marshall McLuhan Training Name Automation Software Testing using Selenium WebDriver with Java Training Introduction The age of automation is going to be the age of 'do it yourself. - Marshall McLuhan Selenium automates

More information

JAVA. 1. Introduction to JAVA

JAVA. 1. Introduction to JAVA JAVA 1. Introduction to JAVA History of Java Difference between Java and other programming languages. Features of Java Working of Java Language Fundamentals o Tokens o Identifiers o Literals o Keywords

More information

About 1. Chapter 1: Getting started with testng 2. Remarks 2. Versions 2. Examples 2. Installation or Setup 2. Quick program using TestNG 3

About 1. Chapter 1: Getting started with testng 2. Remarks 2. Versions 2. Examples 2. Installation or Setup 2. Quick program using TestNG 3 testng #testng Table of Contents About 1 Chapter 1: Getting started with testng 2 Remarks 2 Versions 2 Examples 2 Installation or Setup 2 Quick program using TestNG 3 TestNG Hello World Example 3 Run TestNG

More information

SeU Certified Selenium Engineer (CSE) Syllabus

SeU Certified Selenium Engineer (CSE) Syllabus SeU Certified Selenium Engineer (CSE) Syllabus Released Version 2018 Selenium United Version 2018, released 23.08.2018 Page 1 of 16 Copyright Notice This document may be copied in its entirety, or extracts

More information

What is the Selendroid?

What is the Selendroid? When you publish an app to Google play, it must be well tested to avoid the potential bugs. There's a ton of test scenarios that should be executed before publishing an app. To save the testing effort,

More information

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS PAUL L. BAILEY Abstract. This documents amalgamates various descriptions found on the internet, mostly from Oracle or Wikipedia. Very little of this

More information

Java Review via Test Driven Development

Java Review via Test Driven Development Java Review via Test Driven Development By Rick Mercer with help from Kent Beck and Scott Ambler 2-1 Outline What is TDD? Tests as documentation Tests as a way to verify your code works 2-2 Test Driven

More information

Good Luck! CSC207, Fall 2012: Quiz 3 Duration 25 minutes Aids allowed: none. Student Number: Lecture Section: L0101. Instructor: Horton

Good Luck! CSC207, Fall 2012: Quiz 3 Duration 25 minutes Aids allowed: none. Student Number: Lecture Section: L0101. Instructor: Horton CSC207, Fall 2012: Quiz 3 Duration 25 minutes Aids allowed: none Student Number: Last Name: Lecture Section: L0101 First Name: Instructor: Horton Please fill out the identification section above as well

More information

CS410J: Advanced Java Programming

CS410J: Advanced Java Programming CS410J: Advanced Java Programming The Dependency Injection design pattern decouples dependent objects so that they may be configured and tested independently. Google Guice manages dependencies among objects

More information

Accessibility. Adding features to support users with impaired vision, mobility, or hearing

Accessibility. Adding features to support users with impaired vision, mobility, or hearing Accessibility Adding features to support users with impaired vision, mobility, or hearing TalkBack TalkBack is an Android screen reader made by Google. It speaks out the contents of a screen based on what

More information

Annotations in Java (JUnit)

Annotations in Java (JUnit) Annotations in Java (JUnit) Produced by: Eamonn de Leastar (edeleastar@wit.ie) Dr. Siobhán Drohan (sdrohan@wit.ie) Department of Computing and Mathematics http://www.wit.ie/ What are Annotations? They

More information

Junit Overview. By Ana I. Duncan

Junit Overview. By Ana I. Duncan Junit Overview By Ana I. Duncan 1 What Is Junit Why Junit, Why test? Junit Lifecycle Junit Examples from CM Other Testing frameworks Resources Before After Agenda 2 JUnit is a member of the xunit testing

More information

Java SE 8 Programming

Java SE 8 Programming Oracle University Contact Us: Local: 1800 103 4775 Intl: +91 80 67863102 Java SE 8 Programming Duration: 5 Days What you will learn This Java SE 8 Programming training covers the core language features

More information

Getting Started with. Lite.

Getting Started with. Lite. Getting Started with Lite www.boltiq.io Getting Started with Lite Download Download the app as either a container or Library. http://www.boltiq.io/bolt-lite/ See Examples Open the example test projects

More information

SeU Certified Selenium Engineer (CSE) Syllabus

SeU Certified Selenium Engineer (CSE) Syllabus SeU Certified Selenium Engineer (CSE) Syllabus Released Version 2018 Selenium United Version 2018, released 23.08.2018 Page 1 of 16 Copyright Notice This document may be copied in its entirety, or extracts

More information

ULC Test Framework Guide. Canoo RIA-Suite 2014 Update 4

ULC Test Framework Guide. Canoo RIA-Suite 2014 Update 4 ULC Test Framework Guide Canoo RIA-Suite 2014 Update 4 Canoo Engineering AG Kirschgartenstrasse 5 CH-4051 Basel Switzerland Tel: +41 61 228 9444 Fax: +41 61 228 9449 ulc-info@canoo.com http://riasuite.canoo.com/

More information

Testing. Technion Institute of Technology Author: Assaf Israel. Author: Assaf Israel - Technion

Testing. Technion Institute of Technology Author: Assaf Israel. Author: Assaf Israel - Technion Testing Technion Institute of Technology 236700 1 Author: Assaf Israel Why test? Programming is incremental by nature We want to verify we haven t broken anything Tests not only examine the code s functionality

More information

Exceptions and Libraries

Exceptions and Libraries Exceptions and Libraries RS 9.3, 6.4 Some slides created by Marty Stepp http://www.cs.washington.edu/143/ Edited by Sarah Heckman 1 Exceptions exception: An object representing an error or unusual condition.

More information

JUnit + JMock Tomáš Soukup

JUnit + JMock Tomáš Soukup JUnit + JMock 29.11.2011 Tomáš Soukup JUnit - intro Java framework for creating and running unit tests Test case method 1 public(protected) method 1+ test methods Test suite class set of test cases (methods)

More information

Testing on Android. Mobile Application Development. Jakob Mass MTAT Fall MTAT

Testing on Android. Mobile Application Development. Jakob Mass MTAT Fall MTAT Testing on Android Mobile Application Development MTAT.03.262 2017 Fall Jakob Mass jakob.mass@ut.ee Introduction. Perfect codewriting...or? Conventional (unit) Java testing with JUnit How is mobile/android

More information

Kotlin In Spreadshirt. JUG Saxony Day, Spreadshirt

Kotlin In Spreadshirt. JUG Saxony Day, Spreadshirt Kotlin In Practice @philipp_hauer JUG Saxony Day, 29.09.17 2 Hands Up! Kotlin Features and Usage in Practice References Immutable and mutable References val id = 1 id = 2 var id2 = 1 id2 = 2 5 Data Classes

More information

Unit testing. JUnit. JUnit and Eclipse. A JUnit test class 3/6/17. A method is flagged as a JUnit test case.

Unit testing. JUnit. JUnit and Eclipse. A JUnit test class 3/6/17. A method is flagged as a JUnit test case. Unit testing JUnit ENGI 5895 unit testing: Looking for errors in a subsystem in isolation. Generally a "subsystem" means a particular class or object. The Java library JUnit helps us to easily perform

More information

C07: Testing and JUnit

C07: Testing and JUnit CISC 3120 C07: Testing and JUnit Hui Chen Department of Computer & Information Science CUNY Brooklyn College 9/19/2017 CUNY Brooklyn College 1 Outline Recap and issues Grades and feedback Assignments &

More information

LarvaLight User Manual

LarvaLight User Manual LarvaLight User Manual LarvaLight is a simple tool enabling the user to succinctly specify monitors which trigger upon events of an underlying Java system, namely method calls and returns. If the events

More information

FOR BEGINNERS 3 MONTHS

FOR BEGINNERS 3 MONTHS JAVA FOR BEGINNERS 3 MONTHS INTRODUCTION TO JAVA Why Java was Developed Application Areas of Java History of Java Platform Independency in Java USP of Java: Java Features Sun-Oracle Deal Different Java

More information

Test Automation Integration with Test Management QAComplete

Test Automation Integration with Test Management QAComplete Test Automation Integration with Test Management QAComplete This User's Guide walks you through configuring and using your automated tests with QAComplete's Test Management module SmartBear Software Release

More information

Chapter 11 Paper Practice

Chapter 11 Paper Practice Chapter 11 Paper Practice Scrambled Code For each method, rearrange the lines of code in order to build the functionality required by the specification and tests. To accomplish this, you are given three

More information

The course is supplemented by numerous hands-on labs that help attendees reinforce their theoretical knowledge of the learned material.

The course is supplemented by numerous hands-on labs that help attendees reinforce their theoretical knowledge of the learned material. Lincoln Land Community College Capital City Training Center 130 West Mason Springfield, IL 62702 217-782-7436 www.llcc.edu/cctc WA2442 Introduction to JavaScript Objectives This intensive training course

More information

CORE JAVA TRAINING COURSE CONTENT

CORE JAVA TRAINING COURSE CONTENT CORE JAVA TRAINING COURSE CONTENT SECTION 1 : INTRODUCTION Introduction about Programming Language Paradigms Why Java? Flavors of Java. Java Designing Goal. Role of Java Programmer in Industry Features

More information

@AfterMethod

@AfterMethod 1. What are the annotations used in TestNG? @Test, @BeforeSuite, @AfterSuite, @BeforeTest, @AfterTest, @BeforeClass, @AfterClass, @BeforeMethod, @AfterMethod 2. How do you read data from excel? FileInputStream

More information

Learning Objectives of CP-SAT v 1.31 (C#)

Learning Objectives of CP-SAT v 1.31 (C#) Learning Objectives of CP-SAT v 1.31 (C#) Knowledge with experience is power; certification is just a by-product Table of Contents 1. Tool background... 3 1.1. History of Selenium (30 mins)... 3 1.2. Selenium

More information

Selenium Java Framework

Selenium Java Framework Selenium Java Framework Last updated: 10 July 2017 Pepgo Limited, 71-75 Shelton Street, Covent Garden, London, WC2H 9JQ, United Kingdom Contents Introduction... 3 About this document... 3 Naming conventions...

More information

Test-Driven Development JUnit

Test-Driven Development JUnit Test-Driven Development JUnit Click to edit Master EECS text 2311 styles - Software Development Project Second level Third level Fourth level Fifth level Wednesday, January 18, 2017 1 Simulator submission

More information

print statements, debugger expressions, test scripts. Writing expressions in a debugger only that t a program works now. An application typically

print statements, debugger expressions, test scripts. Writing expressions in a debugger only that t a program works now. An application typically JUnit testing Current practice print statements, debugger expressions, test scripts. Writing expressions in a debugger only that t a program works now. An application typically undergoes many changes over

More information

CS159. Nathan Sprague. September 30, 2015

CS159. Nathan Sprague. September 30, 2015 CS159 Nathan Sprague September 30, 2015 Testing Happens at Multiple Levels Unit Testing - Test individual classes in isolation. Focus is on making sure that each method works according to specification.

More information

Technology. Business Objectives & Challenges. Overview. Technical Solution

Technology. Business Objectives & Challenges. Overview. Technical Solution Case Study: Apeiro Technologies testing services team helped client successfully implement test automation and significantly reduced test cycle time for their innovative approach to avail healthcare services.

More information

Test Automation Integration with Test Management QAComplete

Test Automation Integration with Test Management QAComplete Test Automation Integration with Test Management QAComplete This User's Guide walks you through configuring and using your automated tests with QAComplete's Test Management module SmartBear Software Release

More information

Unit testing. unit testing: Looking for errors in a subsystem in isolation. The basic idea: JUnit provides "assert" commands to help us write tests.

Unit testing. unit testing: Looking for errors in a subsystem in isolation. The basic idea: JUnit provides assert commands to help us write tests. JUnit ENGI 5895 Adapted from slides created by Marty Stepp based on materials by M. Ernst, S. Reges, D. Notkin, R. Mercer, Wikipedia http://www.cs.washington.edu/331/ 1 Unit testing unit testing: Looking

More information

STQA Mini Project No. 1

STQA Mini Project No. 1 STQA Mini Project No. 1 R (2) C (4) V (2) T (2) Total (10) Dated Sign 1.1 Title Mini-Project 1: Create a small application by selecting relevant system environment/ platform and programming languages.

More information

ActiveNET Enterprise Solution Company

ActiveNET Enterprise Solution Company ActiveNET Enterprise Solution Company Suryanarayana Selenium Web Application Testing Framework Selenium IDE, RC, WebDriver & Grid 98 48 111 2 88 Mr. Suryanarayana #202, Manjeera Plaza, Opp: Aditya Park

More information

Section 4: Graphs and Testing

Section 4: Graphs and Testing Section 4: Graphs and Testing Slides by Erin Peach and Nick Carney with material from Vinod Rathnam, Alex Mariakakis, Krysta Yousoufian, Mike Ernst, Kellen Donohue AGENDA Graphs JUnit Testing Test Script

More information

Java SE 8 Programming

Java SE 8 Programming Java SE 8 Programming Training Calendar Date Training Time Location 16 September 2019 5 Days Bilginç IT Academy 28 October 2019 5 Days Bilginç IT Academy Training Details Training Time : 5 Days Capacity

More information

CS 3 Introduction to Software Engineering. 5: Iterators

CS 3 Introduction to Software Engineering. 5: Iterators CS 3 Introduction to Software Engineering 5: Iterators Questions? 2 PS1 Discussion Question You are to choose between two procedures, both of which compute the minimum value in an array of integers. One

More information

All About Cranking Out High Quality XPages Applications. Martin Donnelly IBM Ireland

All About Cranking Out High Quality XPages Applications. Martin Donnelly IBM Ireland All About Cranking Out High Quality XPages Applications Martin Donnelly IBM Ireland Please Note IBM s statements regarding its plans, directions, and intent are subject to change or withdrawal without

More information