You are on page 1of 26

Performance Engineering vs Testing

Created By : Vinay Prakash


Agenda

• Performance Testing vs Engineering


• Why Performance Engineering
• Area Which Covered under Performance Engineering
• Tips and area which should Covered
1. Apps side & DB Side Tools
2. Thread Dump
3. Heap Dump
4. Performance Tuning

©2018 Xceedance
Performance Testing vs Engineering

Software Performance Testing: To test and


certify the quality of the application with respect to
the performance.

Software Performance Engineering: To


plan and build a quality software without or minimum
performance bottlenecks.

©2018 Xceedance
Performance Testing is a quality check of the
application in terms of the application’s
responsiveness and load handling capacity.
Performance Testing verifies how a system will
perform under production load and to anticipate
issues that might arise during heavy load
conditions. On the other hand, Performance
engineering aims to design the application by
keeping the performance metrics in mind and also
to discover potential issues early in the
development cycle.
©2018 Xceedance
Performance Testing is a
distinctive QA process that
occurs once a round of
development is completed
whereas performance
engineering is an ongoing
process that occurs through all
phases of the development
cycle i.e. from the design phase
to development, to QA.
©2018 Xceedance
A dedicated performance tester or team
conduct the Performance Testing who has
sound knowledge of performance testing
concept, tool operation, result analysis etc.
A Performance Engineer is a person who
has enough knowledge of application
design, architecture, development, tuning,
performance optimization and bottleneck
root cause investigation and fixing.

©2018 Xceedance
©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

You might also like