You are on page 1of 17

LECTURER: RAHIM ULLAH DANESHYAR 1

LECTURER: RAHIM ULLAH DANESHYAR


2
Interface testing

3
LECTURER: RAHIM ULLAH DANESHYAR
Interface testing

• Interface testing is a type of software testing that verifies the interaction


between two separate systems of an application.
• It is a medium that helps components communicate with each other.
• Usually, it can be in the form of API, UI, servers, graphics, and more.

4
LECTURER: RAHIM ULLAH DANESHYAR
Interface testing

• It uses specific commands, messages, and data transfer techniques to act


as a connection between the user and the application.

5
LECTURER: RAHIM ULLAH DANESHYAR
Interface testing

6
LECTURER: RAHIM ULLAH DANESHYAR
Interface testing

Unit testing
• Unit testing is very important as it allows developers to detect bugs
earlier in the lifecycle- thus improving the quality of delivered software.
• Unit testing cannot be performed on every part of the software.

7
LECTURER: RAHIM ULLAH DANESHYAR
Interface testing

Top unit testing frameworks :


 RSpec – a BDD testing framework for Ruby.
 PyUnit – a standard unit test framework for Python.
 PHPUnit – a programmer-oriented unit testing framework for PHP.
 Mocha, Junit, Nunit, xUnit, TestNG ……..

8
LECTURER: RAHIM ULLAH DANESHYAR
Unit test example

Here is a simple example of how to write unit tests…


Let’s say we’re trying to implement the sum function.
It takes two numbers a and b as its arguments and returns the number of
the total amount.

def sum(a, b):


return a + b

9
LECTURER: RAHIM ULLAH DANESHYAR
Unit test example

The simplest way to write a unit test is by using the assert function. This
function can be found in most programming languages.

# It should pass
assert sum(1, 2) == 3
# It also should pass
assert sum(1, 2) != 0

10
LECTURER: RAHIM ULLAH DANESHYAR
Interface testing

Primarily, Interface testing is for two systems of an application that have


connections with each other to ensure the proper functioning of the
application.
It consists of two major sections:
1. The interface between the web server and the application server
2. The interface between the application server and the database server

11
LECTURER: RAHIM ULLAH DANESHYAR
Interface testing

It is necessary to check for the interfaces mentioned above to :


• That these servers are running properly
• The servers have the right error handling capability, along with the option
to return an error message for queries made by the application.

12
LECTURER: RAHIM ULLAH DANESHYAR
Interface testing

Security Testing:
This type of testing is to understand
the security lapses in software to
identify possible vulnerabilities that
hackers can exploit.

13
LECTURER: RAHIM ULLAH DANESHYAR
Advantages of Interface Testing

• Interface testing increases the application’s demand in the market due to


it having a stable design and un-complex GUI.
• Solve Problems
• .
• .
• .

14
LECTURER: RAHIM ULLAH DANESHYAR
Some Practical Work

LECTURER: RAHIM ULLAH DANESHYAR

15
Thank You!

LECTURER: RAHIM ULLAH DANESHYAR

16
Questions?

LECTURER: RAHIM ULLAH DANESHYAR

17

You might also like