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 Benefits of Automating Frontend Tests

ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2onsoftwaretest
 
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 ExampleSteve Rogalsky
 
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...AgileNetwork
 
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 ...SafetyChain Software
 
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 bePractiTest
 
Qa workshop
Qa workshopQa workshop
Qa workshoptesthive
 
Lean Software Development Is for Everyone
Lean Software Development Is for EveryoneLean Software Development Is for Everyone
Lean Software Development Is for EveryoneTechWell
 
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 leastOscar Renalias
 
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 TimelinesBFieggen
 
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 MatterWilliam Simms
 
Test Management by Vladimir Arutin
Test Management by Vladimir ArutinTest Management by Vladimir Arutin
Test Management by Vladimir ArutinVladimir Arutin
 
Continuous Delivery Testing @HiQ
Continuous Delivery Testing @HiQContinuous Delivery Testing @HiQ
Continuous Delivery Testing @HiQTomas Riha
 
Test center introduction
Test center introductionTest center introduction
Test center introductionAgilitech AB
 
Test center introduction
Test center introductionTest center introduction
Test center introductionTestCenter
 
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...Codemotion
 
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 ISTQBIevgenii Katsan
 
Rational Quality Manager
Rational Quality ManagerRational Quality Manager
Rational Quality ManagerAlan Kan
 
OEE Financial Benefits From Component Improvement
OEE Financial Benefits From Component ImprovementOEE Financial Benefits From Component Improvement
OEE Financial Benefits From Component ImprovementLean Teams USA
 
Webinar: "5 semplici passi per migliorare la Quality e i processi di Test".
Webinar: "5 semplici passi per migliorare la Quality e i processi di Test".Webinar: "5 semplici passi per migliorare la Quality e i processi di Test".
Webinar: "5 semplici passi per migliorare la Quality e i processi di Test".Emerasoft, solutions to collaborate
 

Similar to The Benefits of Automating Frontend 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...
 
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
 
Webinar: "5 semplici passi per migliorare la Quality e i processi di Test".
Webinar: "5 semplici passi per migliorare la Quality e i processi di Test".Webinar: "5 semplici passi per migliorare la Quality e i processi di Test".
Webinar: "5 semplici passi per migliorare la Quality e i processi di Test".
 

Recently uploaded

HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
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...Call Girls in Nagpur High Profile
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 

Recently uploaded (20)

HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
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...
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 

The Benefits of Automating Frontend 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.