Automation Testing Using Junit

Learn how to automate unit test cases using Junit framework for any Application Program Interface written in Java
3.5 (60 ratings)
Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
949 students enrolled
Sale Ends Today!
25% off
Take This Course
  • Lectures 31
  • Length 5.5 hours
  • Skill Level Intermediate Level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


Learn and practice real-world skills and achieve your goals.

About This Course

Published 3/2014 English

Course Description

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

What are the requirements?

  • All you need is just the basic knowledge Java

What am I going to get from this course?

  • 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

Who is the target audience?

  • This tutorial has been prepared for the beginners to help them understand basic functionality of JUnit tool. After completing this tutorial you will find yourself at a moderate level of expertise in using JUnit testing framework from where you can take yourself to next levels.

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.


Section 1: Introduction
Environment Setup
Running the first Test
Section 2: Junit Classes
Junit Core Class
Junit Assert Class
Junit Result Class
Junit Failure Class
Junit Description Class
Junit RunListener Class
Section 3: Junit Annotations
Ignore, TimeOut & Expected Exception
Section 4: Jenkins
Jenkins Setup
Section 5: Junit Annotations Conti.
Before & After
Section 6: Database Connectivity
Database Connectivity
Section 7: Reading the Data from CSV Files
CSV Connectivity
Section 8: Running Junit with Ant
Ant Setting Up the Enviroment
Ant-Creating Target
Ant-Running the Junit
Batch Execution of TestCase
Ant with Jenkins
Junit Report Generation Using Jenkins
Section 9: Junit with Eclipse
Eclipse - SettingUp
Running the TestCase
Runwith & SuiteClasses Annotation
Junit Parameterized Test
Test Suite Class
Section 10: Testing Java Application
Sample Application & Java Reflection concept
Writing the Junit for Application
Creating Junit Test Case Suite
Object Mocking using Mockito
Section 11: Download
5 questions

Most common question asked during the interview.

5 questions

Most common question asked during the interview.

All Lecture Source Code for Download
1 page

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Rahul Singh Rathore, Software Developer Engg in Test

I have total 6 year of experience in the field of testing (Manual & Automation). Being a manual tester my major area of work is Integration, Functional & Regression testing. When it comes with automation, I deal with automation tool such as Junit, Testng, Selenium RC & Web driver. I have worked with team for developing automation framework for web based product using Selenium RC & migrating it to Web driver at later stage.

I have also worked on the testing of Restful web services. And have pretty good experience with Apache HttpClient Library.

from past 2 year, I am working as white box tester (SDET) in one of the MNC. I usually deal with testing the API written in Java. I also deal with Junit framework for doing the unit testing and also automating the unit test cases

Ready to start learning?
Take This Course