SlideShare a Scribd company logo
UIauto-testswithmaximumspeedandprofit
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
UIauto-testswithmaximumspeedandprofit
Issues:
- missed requirements
- requirements are out of date
- dependencies of test-cases/features/tests
- long-time pre-conditions and post-conditions
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Afewwordsaboutmyself
· 11+ in IT
· 3+ in Automated so!ware testing
· testing web-applications, Angular apps
· Current project: ngx-bootstrap
https://github.com/ludmilanesvitiy
https://ua.linkedin.com/in/ludmila-nesvitiy-58094ab7
ludmilawork@gmail.com
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Why"performanceUItests"?-quickhistory
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Why"performanceUItests"?-quickhistory
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Let'sstartdevelopment!
Common approach:
- Developers use Angular for frontend
- Node.JS and .Net for backend
- Protractor + Jasmine for e2e tests
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
STOP!Whereareourrequirements?
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Howtofillalackofrequirements?
1. Surprised that they are not exist
2. Ask PO/Stakeholder:
2.1 Ask PO/PM to write all of them and wait
forever
2.2 Ask PO/PM about small peace of requirements
3. Chose Gherkin - as the most readable format for
QA's, PO's, PM's, Stakeholders, etc.
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Gherkin-whoisresponsible?
GOAL RESPONSIBLE
Gherkin description (features, steps) Business analysts, Product owners,
Stakeholders
Code implementation for each feature QA’s, Developers
Supporting Gherkin features (changing
files if changes business logic and goals)
Business analysts, Product owners,
Stakeholders
Supporting code according to the
current app
QA’s, Developers
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Gherkin-howtowrite?
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Gherkin-commonrules
1. Feature name + description (mandatory)
2. Scenario name + description (mandatory)
3. Background (common for all Scenarios, optional)
4. Given (precondition for Scenario, optional)
5. When action (mandatory)
6. Then assertion (mandatory)
7. And, But (helper words, optional)
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
DevelopmentprocesswithoutGherkin=badexample
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Developmentprocess+Gherkin=goodexample
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Scenarios:50,Threads:4,Time:40min
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Scenarios:100,Threads:4,Time:80min
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Step1:increaseamountofthreadsto20
First issue
A lot of tests failed: they are dependent
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Testdependency-example
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Testdependency-example
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Testdependency-solvingtheproblem
1. beforeAll , beforeEach
2. Each feature marked with @Tag, use before
and a!er with tags
3. Extend Cucumber World (will be new for each
scenario)
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Testdependency-before,after
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Testdependency-@Tag
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Testdependency-CucumberWorld
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Testdependency-problemsolved
before , a!er , @Tags, Cucumber World
Scenarios: 150, Threads: 20, Time: 40 min
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Step2:ReplaceallUIpreconditionswithAPI-calls
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Pre-/Post-conditionsUI
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
APIpreconditions-instruments
· Postman interceptor (Chrome extension, all captured
requests will show up inside Postman's history)
· Postman Chrome app (use browser cookies for sending
XHR requests + catch all requests to history)
· Chrome devTools, Network - help to investigate requests
· Appropriate lib’s, which make http calls (request,
protractor-http-client)
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
APIpreconditions-Headers
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
APIpreconditions-RequestPayload
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
APIpreconditions-Cookies
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Pre-/Post-conditionsthroughAPI
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Timecount
When User have created 25 issues
MANUALLY UI API
10 min 3 min 30 sec
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
UIauto-testswithmaximumspeedandprofit-DONE
· missed requirements Implement Gherkin stories
· requirements out of date Make creating Gherkin
requirements as a part of new task
· dependencies of test-cases/features/tests Use
preconditions, global context
· long-time pre-conditions and post-conditions
Replace pre/post conditions by API calls
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Listofusefulinformation
https://www.protractortest.org/#/ - Protractor
https://docs.cucumber.io/gherkin/ - Gherkin
https://cucumber.io/ - Cucumber
https://github.com/ludmilanesvitiy/QaDay-
TestProject - Test project with examples
Ludmila Nesvitiy, AQA © Valor So!ware, 2018
Thankyouforyourattention!
Questions?
Ludmila Nesvitiy, AQA © Valor So!ware, 2018

More Related Content

PDF
Baby steps
PDF
TDD for Kids - VLCjs (Valencia Spain, July 2015)
PDF
ES6 katas - talk given at enterjs
PDF
TDD with Google Spreadsheets #enterjs 2015
PDF
TDD with Google Spreadsheets
PPTX
Spring mvc presentation
PPTX
Map camp2020
PDF
Magento Worst Practice (Meet Magento Poland 2016)
Baby steps
TDD for Kids - VLCjs (Valencia Spain, July 2015)
ES6 katas - talk given at enterjs
TDD with Google Spreadsheets #enterjs 2015
TDD with Google Spreadsheets
Spring mvc presentation
Map camp2020
Magento Worst Practice (Meet Magento Poland 2016)

Similar to ЛЮДМИЛА НЕСВІТІЙ «UI авто-тести з максимальною швидкiстю та вигодою» Lviv QA Day 2018 (20)

PPTX
Functional Testing of RESTful Applications
PPTX
Automate test, tools, advantages, and disadvantages
PDF
Automated acceptance test
PDF
Mastering UI automation at Scale: Key Lessons and Best Practices (By Fernando...
PDF
5 levels of api test automation
PDF
Behaviour testing for single-page applications and API’s
PDF
Test Automation at the Speed of Agile: Making It Work Every Build
PPTX
API Testing with Open Source Code and Cucumber
PPTX
QAorHighway2016
PPTX
Test Automation Architecture That Works by Bhupesh Dahal
PPTX
Test automation expert days
PPTX
All levels of performance testing and monitoring in web-apps
PDF
Devoxx France: Fault tolerant microservices on the JVM with Cassandra
PPTX
Accelerating Your Test Execution Pipeline
PDF
How to Automate API Testing
PDF
Web application automated testing types and tools
PDF
UI Testing Pattern
PDF
Automated testing
PPTX
Solving the Automation Puzzle - how to select the right automation framework ...
PPTX
Testing API's: Tools & Tips & Tricks (Oh My!)
Functional Testing of RESTful Applications
Automate test, tools, advantages, and disadvantages
Automated acceptance test
Mastering UI automation at Scale: Key Lessons and Best Practices (By Fernando...
5 levels of api test automation
Behaviour testing for single-page applications and API’s
Test Automation at the Speed of Agile: Making It Work Every Build
API Testing with Open Source Code and Cucumber
QAorHighway2016
Test Automation Architecture That Works by Bhupesh Dahal
Test automation expert days
All levels of performance testing and monitoring in web-apps
Devoxx France: Fault tolerant microservices on the JVM with Cassandra
Accelerating Your Test Execution Pipeline
How to Automate API Testing
Web application automated testing types and tools
UI Testing Pattern
Automated testing
Solving the Automation Puzzle - how to select the right automation framework ...
Testing API's: Tools & Tips & Tricks (Oh My!)
Ad

More from QADay (20)

PDF
СТАНІСЛАВ ПОЛЬСЬКОЙ «QA це спільна справа: залучення БА та девів у процес заб...
PPTX
РАМЕЛЛА БАСЕНКО - Tехніки тест дизайну в дії: розбір задач та корисні поради...
PDF
КАТЕРИНА АБЗЯТОВА - Tехніки тест дизайну в дії: розбір задач та корисні порад...
PDF
ЮРІЙ БАЖАН «Один спринт з життя тестувальника»
PDF
АЛЛА ПЕНАЛЬБА «QA automation, the secret weapon that need (a) manual»
PDF
ЮРІЙ МАЛИЙ «QA метрики в процесі SDLC»..
PDF
АНДРІЙ ЗАБЛОЦЬКИЙ « Досвід побудови сильної та ефективної QA команди»
PDF
РІНА УЖЕВКО «Тестування локалізації та терміни в Gamedev»
PPTX
КАТЕРИНА АБЗЯТОВА «Від бар’єрів до мостів: Важливість Accessibility Testing»
PPTX
ЄВГЕН ГАЙДАЙ «Виділена команда автоматизації тестування. Досвід підтримки та ...
PDF
АНАСТАСІЯ ЧУДОВСЬКА «Переїзд з моноліта на мікросервіси з точки зору QA: як ...
PDF
СОФІЯ НОВАЧЕНКО «Успішне поєднання QA/BA обовʼязків»
PDF
ОЛЕНА НІКІТІНА «Глибинне занурення в процеси тестування: від документації до ...
PDF
ОЛЕСЬ НІКАНЮК «Особливості тестування в міжнародних організаціях: досвід та в...
PPTX
ОЛЕГ ЗАРЕВИЧ «Взаємодії між DevOps і QA»
PPTX
СВЯТ ЛОГІН «Що можна витягнути з мобільних додатків»
PPTX
ГАННА КАПЛУН «Тестування на основі персон: ідея, інструменти, приклади»
PDF
НАТАЛІЯ КРИВОНІС «Необхідні навички для керування командою»
PDF
ОКСАНА ВЕРЕТЮК «Effective project quality check або як успішно налагодити про...
PDF
ВІТАЛІЙ МИХАЙЛЮК «Онбордінг нових тестерів до команди: як ефективно навчати і...
СТАНІСЛАВ ПОЛЬСЬКОЙ «QA це спільна справа: залучення БА та девів у процес заб...
РАМЕЛЛА БАСЕНКО - Tехніки тест дизайну в дії: розбір задач та корисні поради...
КАТЕРИНА АБЗЯТОВА - Tехніки тест дизайну в дії: розбір задач та корисні порад...
ЮРІЙ БАЖАН «Один спринт з життя тестувальника»
АЛЛА ПЕНАЛЬБА «QA automation, the secret weapon that need (a) manual»
ЮРІЙ МАЛИЙ «QA метрики в процесі SDLC»..
АНДРІЙ ЗАБЛОЦЬКИЙ « Досвід побудови сильної та ефективної QA команди»
РІНА УЖЕВКО «Тестування локалізації та терміни в Gamedev»
КАТЕРИНА АБЗЯТОВА «Від бар’єрів до мостів: Важливість Accessibility Testing»
ЄВГЕН ГАЙДАЙ «Виділена команда автоматизації тестування. Досвід підтримки та ...
АНАСТАСІЯ ЧУДОВСЬКА «Переїзд з моноліта на мікросервіси з точки зору QA: як ...
СОФІЯ НОВАЧЕНКО «Успішне поєднання QA/BA обовʼязків»
ОЛЕНА НІКІТІНА «Глибинне занурення в процеси тестування: від документації до ...
ОЛЕСЬ НІКАНЮК «Особливості тестування в міжнародних організаціях: досвід та в...
ОЛЕГ ЗАРЕВИЧ «Взаємодії між DevOps і QA»
СВЯТ ЛОГІН «Що можна витягнути з мобільних додатків»
ГАННА КАПЛУН «Тестування на основі персон: ідея, інструменти, приклади»
НАТАЛІЯ КРИВОНІС «Необхідні навички для керування командою»
ОКСАНА ВЕРЕТЮК «Effective project quality check або як успішно налагодити про...
ВІТАЛІЙ МИХАЙЛЮК «Онбордінг нових тестерів до команди: як ефективно навчати і...
Ad

Recently uploaded (20)

PPTX
Cell Structure & Organelles in detailed.
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Classroom Observation Tools for Teachers
PDF
RMMM.pdf make it easy to upload and study
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Cell Types and Its function , kingdom of life
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Lesson notes of climatology university.
PPTX
Institutional Correction lecture only . . .
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Pre independence Education in Inndia.pdf
PDF
01-Introduction-to-Information-Management.pdf
Cell Structure & Organelles in detailed.
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
2.FourierTransform-ShortQuestionswithAnswers.pdf
GDM (1) (1).pptx small presentation for students
human mycosis Human fungal infections are called human mycosis..pptx
Classroom Observation Tools for Teachers
RMMM.pdf make it easy to upload and study
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Cell Types and Its function , kingdom of life
Renaissance Architecture: A Journey from Faith to Humanism
TR - Agricultural Crops Production NC III.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Insiders guide to clinical Medicine.pdf
Lesson notes of climatology university.
Institutional Correction lecture only . . .
Anesthesia in Laparoscopic Surgery in India
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Pre independence Education in Inndia.pdf
01-Introduction-to-Information-Management.pdf

ЛЮДМИЛА НЕСВІТІЙ «UI авто-тести з максимальною швидкiстю та вигодою» Lviv QA Day 2018