SlideShare a Scribd company logo
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
The frontend and the automated tests
Ok, but what link
tests and QA?
The frontend and the automated tests
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
The frontend and the automated tests
The frontend and the automated tests
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?
………….
The frontend and the automated tests
Test case
test
Scenario preparation
Stimulus
Assertion
http://tryjasmine.com/
Thank you all ;)
danielpsf@gmail.com

More Related Content

PPT
Continuous integration (light talk)
PPT
Jenkins além da integração contínua - práticas de devops
PDF
Openstack 101
PDF
Building QA Team that matters for an Agile World
PDF
Becoming a QA Automation Expert: A Tech Enthusiast's Complete Guide
PDF
Getting Started With QA Automation
PPTX
Agile test automation
PPTX
Building Test Automations the agile way
Continuous integration (light talk)
Jenkins além da integração contínua - práticas de devops
Openstack 101
Building QA Team that matters for an Agile World
Becoming a QA Automation Expert: A Tech Enthusiast's Complete Guide
Getting Started With QA Automation
Agile test automation
Building Test Automations the agile way

Similar to The frontend and the automated tests (20)

PDF
Sq mag no_05
ODP
What is and is not QA!
ODP
Agile and QA... ma che ciazzecca?
PPTX
From manual to automation
PDF
Top Automation Testing Trends Shaping QA in 2025
PPTX
Quality Assurance to Test Engineering – Insights From our Journey by Oksana S...
PPTX
Automation qa
PPTX
Wix automation
PPT
Chapter 1 - Why Testing.ppt
PDF
Automated Testing: QA Horizons
PPTX
How to Add Test Automation to your Quality Assurance Toolbelt
PDF
Lecture #6. automation testing (andrey oleynik)
PPTX
Leandro Melendez - Switching Performance Left & Right
PPT
Future of QA
PPT
Futureofqa
PDF
Mastering QA Automation_ From Strategy to Execution.pdf
PPTX
Agile Qa Framework Jacky Wu
PDF
Exploratory Testing and Automated Testing: Create a Healthy Relationship
PDF
New trends in testing automation
PPTX
Software Quality Assurance & Testing
Sq mag no_05
What is and is not QA!
Agile and QA... ma che ciazzecca?
From manual to automation
Top Automation Testing Trends Shaping QA in 2025
Quality Assurance to Test Engineering – Insights From our Journey by Oksana S...
Automation qa
Wix automation
Chapter 1 - Why Testing.ppt
Automated Testing: QA Horizons
How to Add Test Automation to your Quality Assurance Toolbelt
Lecture #6. automation testing (andrey oleynik)
Leandro Melendez - Switching Performance Left & Right
Future of QA
Futureofqa
Mastering QA Automation_ From Strategy to Execution.pdf
Agile Qa Framework Jacky Wu
Exploratory Testing and Automated Testing: Create a Healthy Relationship
New trends in testing automation
Software Quality Assurance & Testing
Ad

Recently uploaded (20)

PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
DOCX
573137875-Attendance-Management-System-original
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Current and future trends in Computer Vision.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Construction Project Organization Group 2.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPT
introduction to datamining and warehousing
PPTX
Sustainable Sites - Green Building Construction
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Digital Logic Computer Design lecture notes
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
573137875-Attendance-Management-System-original
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
UNIT 4 Total Quality Management .pptx
OOP with Java - Java Introduction (Basics)
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Current and future trends in Computer Vision.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Construction Project Organization Group 2.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
bas. eng. economics group 4 presentation 1.pptx
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Automation-in-Manufacturing-Chapter-Introduction.pdf
Operating System & Kernel Study Guide-1 - converted.pdf
introduction to datamining and warehousing
Sustainable Sites - Green Building Construction
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Digital Logic Computer Design lecture notes
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Ad

The frontend and the automated tests

Editor's Notes

  • #3: Tests are pretty much related with QA, so first we have to understand clearly what is QA?
  • #5: You don’t want to delivery softwares like this. Do you?
  • #7: 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. ;)
  • #9: Ok, lets consider this. A person is able to execute 5 tests scenarios per hour.
  • #10: And this person costs for the company US$ 20,00/h
  • #11: Considering that a product has 300 tests scenarios.
  • #12: 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.
  • #13: 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.
  • #14: That will cost US$6000,00 to be executed. Expensive, don’t you agree?
  • #15: Now, consider you’re running it for all the weeks within a month. Now you can see the cost of running tests.
  • #16: 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).
  • #17: It will cost US$2000,00 to write all the same 300 tests scenarios
  • #18: 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
  • #19: Comparing how much it will cost to run 300 tests scenarios 5 times per week. Wow, how enlightening!
  • #20: 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.
  • #21: 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. ;)
  • #22: 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.
  • #23: 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.
  • #24: According to Agile Testing book, there are mainly 3 levels of tests that could be automated or not.
  • #25: But, let’s focus on unit level.
  • #26: What is a unit?
  • #27: This is your software looking from outside, I mean, from User perspective.
  • #28: This is your application, looking a little more deeplier. Your application is a bunch of components (soap operations, restful services, EJB, etc)
  • #29: When you get closier to the components, you can see that their behavior are build over a lot of classes, methods, etc.
  • #30: 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.
  • #32: 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.
  • #33: 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.
  • #34: Jasmine allows you to write test cases and nesting it within a human readable description. The same for the tests.
  • #35: 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.