4.35 out of 5
4.35
96 reviews on Udemy

Automation Testing Using Junit

Learn how to automate unit test cases using Junit framework for any Application Program Interface written in Java
Instructor:
Rahul Singh Rathore
1,194 students enrolled
English [Auto-generated]
By the end of this course you will be able to write Junits for any Api and will be able to integrate with Ant, Hudson & Jenkins

JUnit is a unit testing framework for the Java programming language. JUnit has been important in the development of test-driven development, and is one of a family of unit testing frameworks collectively known as xUnit that originated with JUnit.

This tutorial will teach you how to use JUnit in your day-2-day life of any project unit testing while working with Java programming language.

The Video includes from setting up the environment till integration with CI tools

In this training course, attendees will learn the following

1. Working with Junit framework classes such as JUnitCore, Result, Failure class etc.

2. How to use Assertion.

3. How the execution of code take place in Junit.

4. Reading the test data from Database & CSV Files (Data Driven Testing)

5. How to do batch execution of testcases.

Basic of Ant build Tool

1. What is build.xml.

2. What is a target, different type of target present in Ant.

3. How to write target for Junit.

4. Integration execution of Junit using Ant tool.

Continuous Integration Tool Jenkins

1. Configuring the Jenkins.

2. Execution of Junit from Jenkins.

3. Integration of Ant with Jenkins.

Eclipse Plugin

1. Run the Junit using eclipse plugin

2. @Runwith & @SuiteClasses Annotation

And source code shown as part of video lecture will be provided for download

Introduction

1
Introduction
2
Environment Setup
3
Running the first Test

Junit Classes

1
Junit Core Class
2
Junit Assert Class
3
Junit Result Class
4
Junit Failure Class
5
Junit Description Class
6
Junit RunListener Class

Junit Annotations

1
Ignore, TimeOut & Expected Exception

Jenkins

1
Jenkins Setup

Junit Annotations Conti.

1
Before & After

Database Connectivity

1
Database Connectivity

Reading the Data from CSV Files

1
CSV Connectivity

Running Junit with Ant

1
Ant Setting Up the Enviroment
2
Ant-Build-Xml
3
Ant-Creating Target
4
Ant-Running the Junit
5
Batch Execution of TestCase
6
Ant with Jenkins
7
Junit Report Generation Using Jenkins

Junit with Eclipse

1
Eclipse - SettingUp
2
Running the TestCase
3
Runwith & SuiteClasses Annotation
4
Junit Parameterized Test
5
Test Suite Class

Testing Java Application

1
Sample Application & Java Reflection concept
2
Writing the Junit for Application
3
Creating Junit Test Case Suite
4
Object Mocking using Mockito

Download

1
Junit Interview Quiz

Most common question asked during the interview.

2
Junit Annotation Quiz

Most common question asked during the interview.

3
All Lecture Source Code for Download
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.4
4.4 out of 5
96 Ratings

Detailed Rating

Stars 5
24
Stars 4
39
Stars 3
21
Stars 2
6
Stars 1
6
3ff481f4378a0b748b1919bacaa9caec
30-Day Money-Back Guarantee

Includes

5 hours on-demand video
Full lifetime access
Access on mobile and TV
Certificate of Completion