SlideShare una empresa de Scribd logo
1 de 24
Performance Testing
#ShareTheFail
Trójmiejska Grupa Testerska
Michał Sierzputowski
Gdańsk, 12.12.2018
Fail #1: Leave Performance Testing until the last minute
https://i.ytimg.com/vi/hEmrapoJ498/maxresdefault.jpg
Solutions
● No User Stories?
Talk with business people on the performance impact on your system
and how users really intend to use the application
● No experience in Performance Testing?
Start with record and playback tools
● Not enough time, other priorities ?
Create simple scenario – use 80⁄20 rule - Pareto principle, to uncover
low hanging fruits
Fail #2: Don’t expect unexpected
https://commons.wikimedia.org/wiki/File:Black_Swan_bg.jpg
Solution: Exploratory Performance Testing
Virtual users
Test time Test time
Virtual users
Virtual users
Test time
Virtual users
Test time
Load test
Soak test
Stress test
Peak test
~1h ~24 h
Fail #3: Rely on your load testing tool’s results only
https://photoseek.photoshelter.com/image/I0000taTnXMWCcDk
Solutions
● Setup platform for
analytics and monitoring
● Engage whole team
https://pbs.twimg.com/media/CkwxzSIWEAE1q_r.png
Fail #4: Don’t verify where you are
https://fineartamerica.com/featured/ever-feel-like-youre-in-the-wrong-place-tom-schwabel.html
Solution
● Assert on the response content not only HTTP code or URL
Fail #5: Fire your requests as fast as you can
http://comicsalliance.com/comicsalliance-reviews-the-mask-1994-part-two/
https://msdn.microsoft.com/en-us/library/bb924367.aspx
Actual Distribution of User Activities Over TimeUSERS
T I M E
Solution: Model real usage of your applicationUSERS
T I M E
Solution: Model real usage of your applicationUSERS
T I M E
Server perspective of User Activities
Solution: Model real usage of your applicationUSERS
T I M E
Server perspective of User Activities
Solution: Model real usage of your application
Server perspective of User Activities
USERS
T I M E
VS.
Fail #6: Write
performance test scripts
as they were recorded
by a tool
Solution: Apply good software engineering practices
● Write Clean Code
● Keep it DRY
● Keep it readable
● Use appropriate business transaction names
● Setup common standards
Fail #7: Don’t verify your tests – just run them as soon
as they are ’finished’
https://commons.wikimedia.org/wiki/File:JetBlue292Landing.jpg
Solutions
● Verify your test data.
E.g. Run a quick login script to see if all user ID’s are still valid.
● If single user script works verify it in concurrent test
● Verify that all expected data were processed /created / deleted
● Run smoke test before executing full test
Fail #8: Make business people happy first
http://www.cah.utexas.edu/db/dmr/image_lg/di_05812.jpg
Solutions
● Execute a slow ramping methodical test to understand the current scalability
● Baseline with a single user to get an idea of the minimum achievable
response time.
Fail #1: Leave Performance Testing until the last minute
Fail #2: Don’t expect unexpected
Fail #3: Rely on your load testing tool results only
Fail #4: Don’t verify where you are
Fail #5: Fire your requests as fast as you can
Fail #6: Write performance test scripts as they were recorded by a tool
Fail #7: Don’t verify your tests – just run them as soon as they are ’finished’
Fail #8: Make business people happy first
#ShareTheFail
Questions ?
Michał Sierzputowski
THANK YOU
Michał Sierzputowski

Más contenido relacionado

Más de Trójmiejska Grupa Testerska

Más de Trójmiejska Grupa Testerska (20)

TGT#18 - End-to-end testing using Protractor - Jakub Raniszewski
TGT#18 - End-to-end testing using Protractor - Jakub RaniszewskiTGT#18 - End-to-end testing using Protractor - Jakub Raniszewski
TGT#18 - End-to-end testing using Protractor - Jakub Raniszewski
 
TGT#18 - BDD with The Three Amigos in API Testing - Julia Szarlej
TGT#18 - BDD with The Three Amigos in API Testing - Julia SzarlejTGT#18 - BDD with The Three Amigos in API Testing - Julia Szarlej
TGT#18 - BDD with The Three Amigos in API Testing - Julia Szarlej
 
TGT#17 - Efektywne testy oprogramowania w środowisku Scrumowym - Marcin Kubecki
TGT#17 - Efektywne testy oprogramowania w środowisku Scrumowym - Marcin KubeckiTGT#17 - Efektywne testy oprogramowania w środowisku Scrumowym - Marcin Kubecki
TGT#17 - Efektywne testy oprogramowania w środowisku Scrumowym - Marcin Kubecki
 
TGT#17 - RestApi testing tips and tricks: how to start testing api of your we...
TGT#17 - RestApi testing tips and tricks: how to start testing api of your we...TGT#17 - RestApi testing tips and tricks: how to start testing api of your we...
TGT#17 - RestApi testing tips and tricks: how to start testing api of your we...
 
TGT#16 - Pain of test automatization in PAAS/SAAS solutions - Krzysztof Lembi...
TGT#16 - Pain of test automatization in PAAS/SAAS solutions - Krzysztof Lembi...TGT#16 - Pain of test automatization in PAAS/SAAS solutions - Krzysztof Lembi...
TGT#16 - Pain of test automatization in PAAS/SAAS solutions - Krzysztof Lembi...
 
TGT#16 - Rozmowa techniczna (short talk) - Waldemar Mozoła
TGT#16 - Rozmowa techniczna (short talk) - Waldemar MozołaTGT#16 - Rozmowa techniczna (short talk) - Waldemar Mozoła
TGT#16 - Rozmowa techniczna (short talk) - Waldemar Mozoła
 
TGT#16 - Sztuka projektowania testów - Agnieszka Garwolińska
TGT#16 - Sztuka projektowania testów - Agnieszka GarwolińskaTGT#16 - Sztuka projektowania testów - Agnieszka Garwolińska
TGT#16 - Sztuka projektowania testów - Agnieszka Garwolińska
 
TGT#15 - Piramida testów w praktyce (notatki z dyskusji)
TGT#15 - Piramida testów w praktyce (notatki z dyskusji)TGT#15 - Piramida testów w praktyce (notatki z dyskusji)
TGT#15 - Piramida testów w praktyce (notatki z dyskusji)
 
TGT#15 - Testowanie w metodykach zwinnych czyli skąd testerzy wiedzą więcej o...
TGT#15 - Testowanie w metodykach zwinnych czyli skąd testerzy wiedzą więcej o...TGT#15 - Testowanie w metodykach zwinnych czyli skąd testerzy wiedzą więcej o...
TGT#15 - Testowanie w metodykach zwinnych czyli skąd testerzy wiedzą więcej o...
 
TGT#14 - @Before – Nie będę automatyzować @After – No dobra, to nie jest taki...
TGT#14 - @Before – Nie będę automatyzować @After – No dobra, to nie jest taki...TGT#14 - @Before – Nie będę automatyzować @After – No dobra, to nie jest taki...
TGT#14 - @Before – Nie będę automatyzować @After – No dobra, to nie jest taki...
 
TGT#14 - Case Study: Współpraca Testera i Product Ownera w zespole scrumowym ...
TGT#14 - Case Study: Współpraca Testera i Product Ownera w zespole scrumowym ...TGT#14 - Case Study: Współpraca Testera i Product Ownera w zespole scrumowym ...
TGT#14 - Case Study: Współpraca Testera i Product Ownera w zespole scrumowym ...
 
TGT#13 - UI Tests Automation Framework in Evolve EDM – Case Study - Mateusz R...
TGT#13 - UI Tests Automation Framework in Evolve EDM – Case Study - Mateusz R...TGT#13 - UI Tests Automation Framework in Evolve EDM – Case Study - Mateusz R...
TGT#13 - UI Tests Automation Framework in Evolve EDM – Case Study - Mateusz R...
 
TG#13 - Nie samym Selenium człowiek żyje, czyli jak tworzyć stabilne testy fu...
TG#13 - Nie samym Selenium człowiek żyje, czyli jak tworzyć stabilne testy fu...TG#13 - Nie samym Selenium człowiek żyje, czyli jak tworzyć stabilne testy fu...
TG#13 - Nie samym Selenium człowiek żyje, czyli jak tworzyć stabilne testy fu...
 
TGT#12 - Używasz systemów kontroli wersji? No to Git. - Szymon Rękawek
TGT#12 - Używasz systemów kontroli wersji? No to Git. - Szymon RękawekTGT#12 - Używasz systemów kontroli wersji? No to Git. - Szymon Rękawek
TGT#12 - Używasz systemów kontroli wersji? No to Git. - Szymon Rękawek
 
TGT#12 - Testowanie gier – praca czy zabawa? - Piotr Januszko
TGT#12 - Testowanie gier – praca czy zabawa? - Piotr JanuszkoTGT#12 - Testowanie gier – praca czy zabawa? - Piotr Januszko
TGT#12 - Testowanie gier – praca czy zabawa? - Piotr Januszko
 
TGT#11 - Zostały Ci jeszcze jakieś włosy? (Testowanie programów równoległych)...
TGT#11 - Zostały Ci jeszcze jakieś włosy? (Testowanie programów równoległych)...TGT#11 - Zostały Ci jeszcze jakieś włosy? (Testowanie programów równoległych)...
TGT#11 - Zostały Ci jeszcze jakieś włosy? (Testowanie programów równoległych)...
 
TGT#11 - Jak wykorzystać sztuczną inteligencję w testowaniu?​ - Anna Czyrko
TGT#11 - Jak wykorzystać sztuczną inteligencję w testowaniu?​ - Anna CzyrkoTGT#11 - Jak wykorzystać sztuczną inteligencję w testowaniu?​ - Anna Czyrko
TGT#11 - Jak wykorzystać sztuczną inteligencję w testowaniu?​ - Anna Czyrko
 
TGT#10 - IAST (Short talk) - Eugene Nosenko
TGT#10 - IAST (Short talk) - Eugene NosenkoTGT#10 - IAST (Short talk) - Eugene Nosenko
TGT#10 - IAST (Short talk) - Eugene Nosenko
 
TGT#9 - Protractor: Ng-przyjazne Selenium - Mateusz Jamiołkowski
TGT#9 - Protractor: Ng-przyjazne Selenium - Mateusz Jamiołkowski TGT#9 - Protractor: Ng-przyjazne Selenium - Mateusz Jamiołkowski
TGT#9 - Protractor: Ng-przyjazne Selenium - Mateusz Jamiołkowski
 
TGT#9 - Lessons learned in software testing - Olga Żądło
TGT#9 - Lessons learned in software testing - Olga ŻądłoTGT#9 - Lessons learned in software testing - Olga Żądło
TGT#9 - Lessons learned in software testing - Olga Żądło
 

Último

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Dr.Costas Sachpazis
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 

Último (20)

Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 

Michal Sierzputowski Performance Tests TGT 22

  • 1. Performance Testing #ShareTheFail Trójmiejska Grupa Testerska Michał Sierzputowski Gdańsk, 12.12.2018
  • 2. Fail #1: Leave Performance Testing until the last minute https://i.ytimg.com/vi/hEmrapoJ498/maxresdefault.jpg
  • 3. Solutions ● No User Stories? Talk with business people on the performance impact on your system and how users really intend to use the application ● No experience in Performance Testing? Start with record and playback tools ● Not enough time, other priorities ? Create simple scenario – use 80⁄20 rule - Pareto principle, to uncover low hanging fruits
  • 4. Fail #2: Don’t expect unexpected https://commons.wikimedia.org/wiki/File:Black_Swan_bg.jpg
  • 5. Solution: Exploratory Performance Testing Virtual users Test time Test time Virtual users Virtual users Test time Virtual users Test time Load test Soak test Stress test Peak test ~1h ~24 h
  • 6. Fail #3: Rely on your load testing tool’s results only https://photoseek.photoshelter.com/image/I0000taTnXMWCcDk
  • 7. Solutions ● Setup platform for analytics and monitoring ● Engage whole team https://pbs.twimg.com/media/CkwxzSIWEAE1q_r.png
  • 8. Fail #4: Don’t verify where you are https://fineartamerica.com/featured/ever-feel-like-youre-in-the-wrong-place-tom-schwabel.html
  • 9. Solution ● Assert on the response content not only HTTP code or URL
  • 10. Fail #5: Fire your requests as fast as you can http://comicsalliance.com/comicsalliance-reviews-the-mask-1994-part-two/
  • 12. Solution: Model real usage of your applicationUSERS T I M E
  • 13. Solution: Model real usage of your applicationUSERS T I M E Server perspective of User Activities
  • 14. Solution: Model real usage of your applicationUSERS T I M E Server perspective of User Activities
  • 15. Solution: Model real usage of your application Server perspective of User Activities USERS T I M E VS.
  • 16. Fail #6: Write performance test scripts as they were recorded by a tool
  • 17. Solution: Apply good software engineering practices ● Write Clean Code ● Keep it DRY ● Keep it readable ● Use appropriate business transaction names ● Setup common standards
  • 18. Fail #7: Don’t verify your tests – just run them as soon as they are ’finished’ https://commons.wikimedia.org/wiki/File:JetBlue292Landing.jpg
  • 19. Solutions ● Verify your test data. E.g. Run a quick login script to see if all user ID’s are still valid. ● If single user script works verify it in concurrent test ● Verify that all expected data were processed /created / deleted ● Run smoke test before executing full test
  • 20. Fail #8: Make business people happy first http://www.cah.utexas.edu/db/dmr/image_lg/di_05812.jpg
  • 21. Solutions ● Execute a slow ramping methodical test to understand the current scalability ● Baseline with a single user to get an idea of the minimum achievable response time.
  • 22. Fail #1: Leave Performance Testing until the last minute Fail #2: Don’t expect unexpected Fail #3: Rely on your load testing tool results only Fail #4: Don’t verify where you are Fail #5: Fire your requests as fast as you can Fail #6: Write performance test scripts as they were recorded by a tool Fail #7: Don’t verify your tests – just run them as soon as they are ’finished’ Fail #8: Make business people happy first #ShareTheFail