1 of 20

Continuous Performance Testing

From Jmeter to Blazemeter Taurus and Jenkins

2 of 20

import random

import time

import requests

class Speaker(object):

def __init__(self):

born = "Avilés - Asturias"

studies = "Applied Maths and Computability"

jobdescription = "Performance Jedi"

company = "SCRM"

project = "LidlPlus"

talks = [VLC Testing, DevopsDays, WebPerfDays, Velocity]

def talk(self):

start_timer = time.time()

r = requests.get('http://www.slideshare.net/almudenavivanco')

r.raw.read()

latency = time.time() - start_timer

self.custom_timers[Devops] = latency

if __name__ == '__main__':

speech = Speaker()

speech.talk()

print trans.custom_timers

Almudena Vivanco

(@MrsDaehin)

3 of 20

4 of 20

Review Hell

5 of 20

Clean Code,

sustainable and repositable

Integration with

other tools

Gatling

Apache Benchmark

Locust

Non gui execution

Same Scenario different test and workloads

Version Control

Code vs GUI

Tool Integration

Parallel Testing

6 of 20

pip install bzt

more information https://gettaurus.org/

Repo for devops https://github.com/daehin/DevopsBCN

7 of 20

From Scratch

Executors:

Jmeter

Gatling

Selenium

Appium

Locust

8 of 20

With an existing script

9 of 20

Include Scenario

10 of 20

yaml vs xml

11 of 20

Command Line Jmx2yaml

12 of 20

13 of 20

14 of 20

Multiplataforma

15 of 20

Integracion con Jenkins

  • Nightly Build o Weekly Build

  • Trigger por un cambio en el repositorio

16 of 20

Swagger2yaml

17 of 20

5 Razones para usar Swagger/OpenAPI

https://www.blazemeter.com/blog/five-reasons-you-should-use-openapi-swagger-for-your-apis

1.- Colaboración

2.- Eficiencia ahorrando tiempo y errores al escribir código

3.- Evaluar y asegurar la calidad

4.- Generar Documentación útil e interactiva

5.- Publica tu API

18 of 20

19 of 20

Reuse your code

your scripts must be maintainable and READABLE

there are more tools than Jmeter out there, USE THEM!

Collaborate with the whole team

Let jenkins do the job

20 of 20