Automation Testing Using Junit

Learn how to automate unit test cases using Junit framework for any Application Program Interface written in Java
3.8 (51 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.
890 students enrolled
$20
Take This Course
  • Lectures 31
  • Contents Video: 5.5 hours
    Other: 1 min
  • 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

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

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

What 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.

Curriculum

Section 1: Introduction
Introduction
Preview
00:34
Environment Setup
04:01
Running the first Test
03:43
Section 2: Junit Classes
Junit Core Class
10:18
Junit Assert Class
13:05
Junit Result Class
07:44
Junit Failure Class
Preview
07:08
Junit Description Class
04:13
Junit RunListener Class
13:22
Section 3: Junit Annotations
Ignore, TimeOut & Expected Exception
10:07
Section 4: Jenkins
Jenkins Setup
10:03
Section 5: Junit Annotations Conti.
Before & After
09:22
Section 6: Database Connectivity
Database Connectivity
32:14
Section 7: Reading the Data from CSV Files
CSV Connectivity
23:20
Section 8: Running Junit with Ant
Ant Setting Up the Enviroment
02:05
Ant-Build-Xml
Preview
10:56
Ant-Creating Target
11:43
Ant-Running the Junit
15:35
Batch Execution of TestCase
04:36
Ant with Jenkins
03:32
Junit Report Generation Using Jenkins
Preview
05:02
Section 9: Junit with Eclipse
Eclipse - SettingUp
12:32
Running the TestCase
03:23
Runwith & SuiteClasses Annotation
Preview
04:25
Junit Parameterized Test
13:46
Test Suite Class
11:03
Section 10: Testing Java Application
Sample Application & Java Reflection concept
Preview
20:50
Writing the Junit for Application
23:40
Creating Junit Test Case Suite
28:38
Object Mocking using Mockito
08:37
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 5 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.

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