Sei sulla pagina 1di 26

Overview of Automation Testing

Created By : Abhishek Maheshwari and Akshay Kapoor


Agenda

• What is SoapUi
• Why SoapUi
• System Requirements
• Features
1. Functional Testing
2. Security Testing
3.Load Testing
4.Supported Protocols/Technologies
5. Reports & Analytics

©2018 Xceedance
What is SoapUI

• SoapUI is the leading open source cross-platform API Testing tool


• SoapUI allows testers to execute automated functional,
regression, compliance, and load tests on different Web API.
• SoapUI supports all the standard protocols and technologies to
test all kinds of API's.
• SoapUI interface is simple that enables both technical and non-
technical users to use seamlessly.

©2018 Xceedance
Why SoapUI?

SoapUI is not just a functional Api Testing tool but also lets
us perform non-functional testing such as performance and
security test.

©2018 Xceedance
System Requirements:

Windows:
• 1GHz or higher 32-bit or 64-bit processor
• 512MB of RAM
• 200MB of hard disk space for installation of SoapUI
• Windows XP or later
• Java 7 or later

Linux:
• 1GHz or higher 32-bit or 64-bit Intel or AMD64 processor
• 512MB of RAM
• 240MB of hard disk space for installation of SoapUI
• Ubuntu, Red Hat, Fedora, or other distributions
• Java 7 or later

Mac OS:
• Mac computer with 1GHz or higher 32-bit or 64-bit Intel or PowerPC processor
• 512MB of RAM
• 140MB of hard disk space for installation of SoapUI
• Mac OS X 10.4 or later; Mac OS X Server 10.4 or later
• Java 7 or later
©2018 Xceedance
Supported Protocols /Technologies

©2018 Xceedance
SoapUI Functional Test Structures

SoapUi structures functional test in to three levels:


• Test suites
• Test cases
• Test steps

©2018 Xceedance
Create Project

Step 1: Now depending upon the project, we need to


import SOAP/REST protocol. We will create a new SOAP
Project.

©2018 Xceedance
Step 2:

• We will make use following SOAP request


http://www.webservicex.net/CurrencyConvertor.asmx?WSDL

• Enter the Project Name

• Enter the path of the WSDL request. In this


case http://www.webservicex.net/CurrencyConvertor.asmx?WSDL
• Click OK

©2018 Xceedance
Step 3:

Upon creating the SOAP project with the above-said


WSDL, we will be able to see that there are two
operations that will be imported into the project.

©2018 Xceedance
Step 4:

• Expand the first request and double click on the


‘Request1’. It will display the SOAP request in the XML
format.
• Enter the From Currency and To Currency
• Click on the submit button
• Response XML will be displayed right side pane

©2018 Xceedance
©2018 Xceedance
Creating Test Suite :

• Step 1:Within the project, testers can create a test suite by


performing a right click on the root of the project.

©2018 Xceedance
• Step 2: Specify the name of the Test Case and click 'OK'.

Step 3: The created test case has zero steps as shown


below.

©2018 Xceedance
Test Steps:

Test Steps are the building blocks of functional tests


in the SoapUi .

Test step Types:


• Test Request
• Groovy Script
• Properties
• Rest Test Request
• Http Test Request
• Jdbc Request
• Mock Response

©2018 Xceedance
Test Step Insert:

©2018 Xceedance
Step 2: Enter the step name and click OK

Step 3: Upon clicking 'OK', a dialog pops up to select the


operation to invoke. All the operations are listed, and user can
select the operation that they would like to invoke.

©2018 Xceedance
Features of Selenium Grid

• Selenium Grid is used to run multiple test scripts at the


same time on multiple machines.
• Parallel execution can be achieved with the help of Hub-
Node architecture.
• Hub can control different scripts on various Browser and
OS on various Nodes.
• Hub and Node are started using:
selenium-service-standalone.jar
• Supports both Selenium RC and Webdriver test.

©2018 Xceedance
Selenium Grid Architecture

Node1 Windows
IE 8
FF 53
Windows, Linux, Mac, etc. VM2 Safari 6
JSON Wire Over HTTP
Chrome 32

VM1 IE, Chrome Safari, geco driver Servers


DesiredCapabilities:
OS/Browser/Version Node2 Linux
IE 9
VM3 FF 54
HUB Safari 7
Server Chrome 35
IE, Chrome Safari, geco driver Servers
RC or RemoteWebDriver
Code(Java, Perl, Python, JSON Wire Over HTTP
Node3 Mac
C#, Ruby, JavaScript) IE 11
FF 60
VM4 Safari 8
Chrome 38
IE, Chrome Safari, geco driver Servers

©2018 Xceedance
Birth of Selenium IDE

• Shinya Kasatani of Japan created Selenium IDE.


• IDE is Firefox and Chrome extension that can automate
the browser through a record-and-playback feature.
• He came up with this idea to further increase the speed
in creating test cases.
• He donated Selenium IDE to the Selenium Project
in 2006.

©2018 Xceedance
Features of Selenium IDE

Create and edit test cases

Create and execute test suites

Debug and enhance test cases

Test cases can be exported to different PL

Enables learning of Selenium script syntax

©2018 Xceedance
Disadvantages of Selenium IDE

Support Firefox and Chrome browser

Not suitable for dynamic web application

No support for programming logics

Data driven testing not possible

No centralized maintenance of objects/elements

©2018 Xceedance
Birth of Selenium WebDriver

• Simon Stewart created WebDriver in 2006, when


browsers and web applications were becoming more
powerful and more restrictive with JavaScript programs
like Selenium Core.
• It was the first cross-platform testing framework that
could control the browser from the OS level.

©2018 Xceedance
Features of Selenium WebDriver

• It supports multiple PL, OS, Browsers.


• Each browser has its own driver on which the application
runs. Selenium webdriver makes direct call to browser.
• WebDriver finds any co-ordinates of any object.
• Mouse movement/action can be controlled.
• Overcomes the limitations of Selenium 1 like file upload,
download, alert/popup & dialogs barrier.

©2018 Xceedance
Selenium WebDriver Architecture

HTTP Over HTTP Server

Selenium Client
Library Browser Drivers Real Browses
Java ChromeDriver Chrome

Python JSON Wire FirefoxDRiver Firefox


Protocol
Perl IEDriver IE
Over HTTP
C# OperaDriver Opera
Ruby SafariDriver Safari
PHP

HTTP Over HTTP Server

©2018 Xceedance
THANK YOU

Potrebbero piacerti anche