SlideShare a Scribd company logo
1 of 35
The frontend
and
the automated tests
What is QA?
The maintenance of a desired level of quality in a service or
product, especially by means of attention to every stage of the
process of delivery or production.
http://www.oxforddictionaries.com/us/definition/american_english/quality-assurance#quality-assurance__3
Ok, but what link
tests and QA?
Ok, I got it, testing is
really important.
But why automate it?
== 5 manuals tests per hour
US$ 20,00 per
hour
== 5 manuals tests per hour
300 tests scenarios
300 tests / 5 t./hour * US$ 20,00
US$ 1200,00
1 x Day
1 x Day
US$ 6000,00 per week (5 days)
1 x day
US$ 6000,00 per week (5 days)
US$ 24000,00 per month (4 weeks)
== 3 automated tests per hour
US$ 20,00 per hour
300 tests / 3 t./hour * US$
20,00
US$ 2000,00
1 or 1000 x Day
US$ 2000,00
5 x week
Automated Manual
US$ 2000,00 US$ 6000,00
Cost of test execution
Ok, I got it.
Automated tests are
awesome
Unit
Integration
Functional
CRISPIN, Lisa; GREGORY, Janet. Agile Testing: A Practical Guide for Testers and Agile Teams. Estados
Unidos da América : Pearson Education, 2008.
CRISPIN, Lisa; GREGORY, Janet. Agile Testing: A Practical Guide for Testers and Agile Teams. Estados
Unidos da América : Pearson Education, 2008.
Unit
Integration
Functional
Unit
Unit
Unit
Unit
Unit
Ok, I got it.
Unit tests are the easiest to automate.
But what about the front-end dude?
………….
Test case
test
Scenario preparation
Stimulus
Assertion
http://tryjasmine.com/
Thank you all ;)
danielpsf@gmail.com

More Related Content

Similar to The frontend and the automated tests

Software Development And Delivery Metrics That Matter
Software Development And Delivery Metrics That MatterSoftware Development And Delivery Metrics That Matter
Software Development And Delivery Metrics That Matter
William Simms
 

Similar to The frontend and the automated tests (20)

ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2
 
Moving Towards Zero Defects with Specification by Example
Moving Towards Zero Defects with Specification by ExampleMoving Towards Zero Defects with Specification by Example
Moving Towards Zero Defects with Specification by Example
 
Agile Gurugram 2016 | Conference | Continuous Agile Testing @ Naukri | Meetu...
Agile Gurugram 2016 | Conference |  Continuous Agile Testing @ Naukri | Meetu...Agile Gurugram 2016 | Conference |  Continuous Agile Testing @ Naukri | Meetu...
Agile Gurugram 2016 | Conference | Continuous Agile Testing @ Naukri | Meetu...
 
What Food Manufacturers Need to Know about Measuring OEE - London Consulting ...
What Food Manufacturers Need to Know about Measuring OEE - London Consulting ...What Food Manufacturers Need to Know about Measuring OEE - London Consulting ...
What Food Manufacturers Need to Know about Measuring OEE - London Consulting ...
 
Automation is not the answer... unless you WANT it to be
Automation is not the answer... unless you WANT it to beAutomation is not the answer... unless you WANT it to be
Automation is not the answer... unless you WANT it to be
 
Qa workshop
Qa workshopQa workshop
Qa workshop
 
Lean Software Development Is for Everyone
Lean Software Development Is for EveryoneLean Software Development Is for Everyone
Lean Software Development Is for Everyone
 
50 production deployments a day, at least
50 production deployments a day, at least50 production deployments a day, at least
50 production deployments a day, at least
 
Linking Budgets And Resources With Project Timelines
Linking Budgets And Resources With Project TimelinesLinking Budgets And Resources With Project Timelines
Linking Budgets And Resources With Project Timelines
 
Software Development And Delivery Metrics That Matter
Software Development And Delivery Metrics That MatterSoftware Development And Delivery Metrics That Matter
Software Development And Delivery Metrics That Matter
 
Test Management by Vladimir Arutin
Test Management by Vladimir ArutinTest Management by Vladimir Arutin
Test Management by Vladimir Arutin
 
Continuous Delivery Testing @HiQ
Continuous Delivery Testing @HiQContinuous Delivery Testing @HiQ
Continuous Delivery Testing @HiQ
 
Test center introduction
Test center introductionTest center introduction
Test center introduction
 
Test center introduction
Test center introductionTest center introduction
Test center introduction
 
Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...
Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...
Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...
 
Accelerating Your Test Execution Pipeline
Accelerating Your Test Execution PipelineAccelerating Your Test Execution Pipeline
Accelerating Your Test Execution Pipeline
 
Anton Muzhailo - Practical Test Process Improvement using ISTQB
Anton Muzhailo - Practical Test Process Improvement using ISTQBAnton Muzhailo - Practical Test Process Improvement using ISTQB
Anton Muzhailo - Practical Test Process Improvement using ISTQB
 
Rational Quality Manager
Rational Quality ManagerRational Quality Manager
Rational Quality Manager
 
Kaizen.ppt
Kaizen.pptKaizen.ppt
Kaizen.ppt
 
OEE Financial Benefits From Component Improvement
OEE Financial Benefits From Component ImprovementOEE Financial Benefits From Component Improvement
OEE Financial Benefits From Component Improvement
 

Recently uploaded

notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
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
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
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
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 

Recently uploaded (20)

Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
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...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
(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
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
(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
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
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, ...
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 

The frontend and the automated tests

Editor's Notes

  1. Tests are pretty much related with QA, so first we have to understand clearly what is QA?
  2. You don’t want to delivery softwares like this. Do you?
  3. I’m pretty sure you don’t want to have any kind of surprises when developing new features or refactoring old codes to fix a bug or improve performance. So to make sure you have your QA guaranteed you’ll have to execute tests in each piece of your code so you don’t face an explosion. ;)
  4. Ok, lets consider this. A person is able to execute 5 tests scenarios per hour.
  5. And this person costs for the company US$ 20,00/h
  6. Considering that a product has 300 tests scenarios.
  7. So, if the person is able to execute 5 tests/h and cost US$ 20,00/h, means that 300 testes scenarios will cost US$ 1200,00 to be executed once.
  8. Ok, let’s say you don’t want to run all the 300 scenarios several times per day, you’ll probably run it just on the end of the day work day within a week of 5 days.
  9. That will cost US$6000,00 to be executed. Expensive, don’t you agree?
  10. Now, consider you’re running it for all the weeks within a month. Now you can see the cost of running tests.
  11. But if we could automate it. Let’s now consider that one developer/tester could write 3 automated tests per hour (which I don’t believe is the case, we can write more than that).
  12. It will cost US$2000,00 to write all the same 300 tests scenarios
  13. And if we want to execute all the test once or thousands of times per day it will still cost the same that was paid already to develop them
  14. Comparing how much it will cost to run 300 tests scenarios 5 times per week. Wow, how enlightening!
  15. So, drawing it so we can understand that if we want to guarantee the QA of our product, it will be way more cheaper to automate as maximum as possible the tests.
  16. Wow, but now that you draw the costs I figure out that it’s too complex to write tests for our application, and manual tests are too expensive, so I just run our test scenarios once a few times. Ok, that means you are risking to have to redo a lot of work. But ok, that’s your call to make. ;)
  17. I just want to warning you that you could make your team crazy with all the details that they’ve to remember when dealing daily basis with the code, because the minor change in the code could means a lot of dangerous refactors and uncatch side-effects that will appears just on customer’s face.
  18. Well, if by now you’ve understood the importance of testing your application and do it in an automate way, let’s understand the ways to test your application.
  19. According to Agile Testing book, there are mainly 3 levels of tests that could be automated or not.
  20. But, let’s focus on unit level.
  21. What is a unit?
  22. This is your software looking from outside, I mean, from User perspective.
  23. This is your application, looking a little more deeplier. Your application is a bunch of components (soap operations, restful services, EJB, etc)
  24. When you get closier to the components, you can see that their behavior are build over a lot of classes, methods, etc.
  25. Those little piece of your application are the easiest to test, since they could be isolated of the other interactions and dependencies, like DB, VMs, Cloud services, email, etc.
  26. Did you noticed that JS is almost in every device today? No. So take a few minutes researching in Google about it. From TV to freezers you’ll see JS everywhere. So the importance of test JS is getting more visibility. Don’t you agree? Even considering you’ve a web application composed by Java, PHP, Ruby, Python, whatever in backend, you’ll probably have a lot of presentation logic which is been done in JS, and you’ll also probably wanna make your webapplication interactive, which you can be done by doing ajax requests, again JS logic. That means, JS have is important piece of your application, because is JS which will make the UX better and smother.
  27. That being said, who to test JS? There is a lot of frameworks around this subject, but we stick with Jasmine which is a BDD framework and is also the most famous testing framework in JS world.
  28. Jasmine allows you to write test cases and nesting it within a human readable description. The same for the tests.
  29. All tests are composed by 3 parts, doesn’t matter if it is BDD or not. Scenario preparation, is where you setup everything that will be required for execute the stimulus of your test or even for the assertion. Stimulus, is the action you wanna tests. You just call it, passing to it all the dependencies you might have configured on the scenario preparation phase. Assertion, when you verify the result of the tests.