SlideShare uma empresa Scribd logo
1 de 15
ANGULARJS
TEST FRAMEWORKS &
TOOLS
ANGULARJS – HTML FOR WEB APPS
 An open source web application framework for web
applications
 Maintained & promoted by Google
 Enhances web apps with MVC – Model View
Controller
WHERE HTML FALTERS
 HTML is the most trustworthy for declaring static
documents
 There are known challenges for implementing web
apps with HTML
ENHANCING HTML WITH
ANGULARJS
 AngularJS extends the HTML vocabulary to cater to the dynamic
views
 The libraries read HTML containing tag attributes to follow the tag
directives
 The input or output of the page is bound to a model, represented by
JavaScript variables
 These values are manipulated from Static or Dynamic JSON
resources
 The two way data binding makes it an effective tool for efficiently
building client-side web apps
TESTING ANGULARJS
KARMA
 Test on Real Devices
 Test your code on real browsers and real devices such as phones,
tablets
 Remote Control
 Control the whole workflow from the command line or the IDE
 When a file is saved, Karma will run all the tests
 Testing Framework Agnostic
 Describe tests with Jasmine, Mocha, QUnit or write a simple
adapter for any framework of choice
…KARMA
 Open Source
 Developed for and maintained by the open source community at
GitHub
 Easy Debugging
 Easy debugging directly from your IDE via WebStorm or Google
Chrome
 Continuous Integration
 Simple integration with Jenkins, Travis or Semaphore
ANGULAR MOCKS
 A Namespace from 'angular-mocks.js'
 Contains testing related code
 Provides support for injecting and mocking Angular services in unit
tests
PROTRACTOR
 An E2E test framework for Angular apps
 A feature testing tool for AngularJS
 Launches the app in a browser to interacts via Selenium
MOCHA
 Claimed to be simple, flexible and fun
 A feature-rich, JavaScript test framework running on node.js
 It is a browser for asynchronous testing
 Tests run serially, allowing flexible and accurate reporting
 Map uncaught exceptions to the correct test cases
 Enables writing describe blocks and making assertions
CHAI
 A BDD / TDD assertion library for node.js
 It is a browser can be coupled with any JavaScript testing
framework
 An Assertion library that hooks into Mocha giving access to
Behavior-Driven Development assertions
CHAI AS PROMISED
 A Chai plug-in
 Helpful for dealing with function calls that return a promise
 Extends Chai with assertions about promises
LODASH
 A Utility Library delivering
 Consistency
 Customization
 Performance
 Used to extend JavaScript to make it easier to work with
SINON
 A standalone test, spies, stubs and mocks for JavaScript
 Has no dependencies
 Works with any unit testing framework
 Is a Stubbing and mocking library
 Used to mock out directive & controller dependencies in unit tests
 Checks the correctness of arguments in functions
VISIT
HTTP://SOFTWARETESTINGSOLUTION.COM/
&
REQUEST A FREE POC
TO
TEST DRIVE OUR SERVICES

Mais conteúdo relacionado

Destaque

Arquitetura de Informação
Arquitetura de InformaçãoArquitetura de Informação
Arquitetura de InformaçãoCarolina Leslie
 
Selling Skills For Product Managers
Selling Skills For Product ManagersSelling Skills For Product Managers
Selling Skills For Product ManagersProduct School
 
Resource efficent bricks a presentation by wienerberger, world's largest bri...
Resource efficent bricks  a presentation by wienerberger, world's largest bri...Resource efficent bricks  a presentation by wienerberger, world's largest bri...
Resource efficent bricks a presentation by wienerberger, world's largest bri...Anasua Mitra
 
Agiles PMO, Agil? Machen wir jetzt auch - sonst eigentlich alles wie gehabt
Agiles PMO, Agil? Machen wir jetzt auch - sonst eigentlich alles wie gehabtAgiles PMO, Agil? Machen wir jetzt auch - sonst eigentlich alles wie gehabt
Agiles PMO, Agil? Machen wir jetzt auch - sonst eigentlich alles wie gehabtAyelt Komus
 
Adverb Clause Review and Practice
Adverb Clause Review and PracticeAdverb Clause Review and Practice
Adverb Clause Review and PracticeCC Undertree
 
“No estimate” do jeito errado - Nossa experiência
“No estimate” do jeito errado - Nossa experiência“No estimate” do jeito errado - Nossa experiência
“No estimate” do jeito errado - Nossa experiênciaSamuel Cavalcante
 
11. Debora Miceli: Planejamento Estratégico - Avaliação da Estratégia
11. Debora Miceli: Planejamento Estratégico - Avaliação da Estratégia11. Debora Miceli: Planejamento Estratégico - Avaliação da Estratégia
11. Debora Miceli: Planejamento Estratégico - Avaliação da EstratégiaDebora Miceli
 

Destaque (8)

Arquitetura de Informação
Arquitetura de InformaçãoArquitetura de Informação
Arquitetura de Informação
 
Selling Skills For Product Managers
Selling Skills For Product ManagersSelling Skills For Product Managers
Selling Skills For Product Managers
 
Resource efficent bricks a presentation by wienerberger, world's largest bri...
Resource efficent bricks  a presentation by wienerberger, world's largest bri...Resource efficent bricks  a presentation by wienerberger, world's largest bri...
Resource efficent bricks a presentation by wienerberger, world's largest bri...
 
Antifúngicos
AntifúngicosAntifúngicos
Antifúngicos
 
Agiles PMO, Agil? Machen wir jetzt auch - sonst eigentlich alles wie gehabt
Agiles PMO, Agil? Machen wir jetzt auch - sonst eigentlich alles wie gehabtAgiles PMO, Agil? Machen wir jetzt auch - sonst eigentlich alles wie gehabt
Agiles PMO, Agil? Machen wir jetzt auch - sonst eigentlich alles wie gehabt
 
Adverb Clause Review and Practice
Adverb Clause Review and PracticeAdverb Clause Review and Practice
Adverb Clause Review and Practice
 
“No estimate” do jeito errado - Nossa experiência
“No estimate” do jeito errado - Nossa experiência“No estimate” do jeito errado - Nossa experiência
“No estimate” do jeito errado - Nossa experiência
 
11. Debora Miceli: Planejamento Estratégico - Avaliação da Estratégia
11. Debora Miceli: Planejamento Estratégico - Avaliação da Estratégia11. Debora Miceli: Planejamento Estratégico - Avaliação da Estratégia
11. Debora Miceli: Planejamento Estratégico - Avaliação da Estratégia
 

Mais de Software Testing Solution

Performance Testing – Look Before you Leap
Performance Testing – Look Before you LeapPerformance Testing – Look Before you Leap
Performance Testing – Look Before you LeapSoftware Testing Solution
 
API Testing – Keeping a Check on Agile Software Development
API Testing – Keeping a Check on Agile Software DevelopmentAPI Testing – Keeping a Check on Agile Software Development
API Testing – Keeping a Check on Agile Software DevelopmentSoftware Testing Solution
 
Ad-hoc Testing – Non-methodical yet Significant
Ad-hoc Testing – Non-methodical yet SignificantAd-hoc Testing – Non-methodical yet Significant
Ad-hoc Testing – Non-methodical yet SignificantSoftware Testing Solution
 
Test Data Management a Managed Service for Software Quality Assurance
Test Data Management a Managed Service for Software Quality AssuranceTest Data Management a Managed Service for Software Quality Assurance
Test Data Management a Managed Service for Software Quality AssuranceSoftware Testing Solution
 
Software QA Services – An Important Ingredient in Software Development
Software QA Services – An Important Ingredient in Software DevelopmentSoftware QA Services – An Important Ingredient in Software Development
Software QA Services – An Important Ingredient in Software DevelopmentSoftware Testing Solution
 
The Myths and Facts Surrounding Software Testing
The Myths and Facts Surrounding Software TestingThe Myths and Facts Surrounding Software Testing
The Myths and Facts Surrounding Software TestingSoftware Testing Solution
 
Cloud Testing - A New Age Approach to Testing
Cloud Testing - A New Age Approach to TestingCloud Testing - A New Age Approach to Testing
Cloud Testing - A New Age Approach to TestingSoftware Testing Solution
 
TestComplete – A Sophisticated Automated Testing Tool by SmartBear
TestComplete – A Sophisticated Automated Testing Tool by SmartBearTestComplete – A Sophisticated Automated Testing Tool by SmartBear
TestComplete – A Sophisticated Automated Testing Tool by SmartBearSoftware Testing Solution
 

Mais de Software Testing Solution (8)

Performance Testing – Look Before you Leap
Performance Testing – Look Before you LeapPerformance Testing – Look Before you Leap
Performance Testing – Look Before you Leap
 
API Testing – Keeping a Check on Agile Software Development
API Testing – Keeping a Check on Agile Software DevelopmentAPI Testing – Keeping a Check on Agile Software Development
API Testing – Keeping a Check on Agile Software Development
 
Ad-hoc Testing – Non-methodical yet Significant
Ad-hoc Testing – Non-methodical yet SignificantAd-hoc Testing – Non-methodical yet Significant
Ad-hoc Testing – Non-methodical yet Significant
 
Test Data Management a Managed Service for Software Quality Assurance
Test Data Management a Managed Service for Software Quality AssuranceTest Data Management a Managed Service for Software Quality Assurance
Test Data Management a Managed Service for Software Quality Assurance
 
Software QA Services – An Important Ingredient in Software Development
Software QA Services – An Important Ingredient in Software DevelopmentSoftware QA Services – An Important Ingredient in Software Development
Software QA Services – An Important Ingredient in Software Development
 
The Myths and Facts Surrounding Software Testing
The Myths and Facts Surrounding Software TestingThe Myths and Facts Surrounding Software Testing
The Myths and Facts Surrounding Software Testing
 
Cloud Testing - A New Age Approach to Testing
Cloud Testing - A New Age Approach to TestingCloud Testing - A New Age Approach to Testing
Cloud Testing - A New Age Approach to Testing
 
TestComplete – A Sophisticated Automated Testing Tool by SmartBear
TestComplete – A Sophisticated Automated Testing Tool by SmartBearTestComplete – A Sophisticated Automated Testing Tool by SmartBear
TestComplete – A Sophisticated Automated Testing Tool by SmartBear
 

Último

Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....ShaimaaMohamedGalal
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfCionsystems
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 

Último (20)

Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 

AngularJS Test Frameworks & Tools

  • 2. ANGULARJS – HTML FOR WEB APPS  An open source web application framework for web applications  Maintained & promoted by Google  Enhances web apps with MVC – Model View Controller
  • 3. WHERE HTML FALTERS  HTML is the most trustworthy for declaring static documents  There are known challenges for implementing web apps with HTML
  • 4. ENHANCING HTML WITH ANGULARJS  AngularJS extends the HTML vocabulary to cater to the dynamic views  The libraries read HTML containing tag attributes to follow the tag directives  The input or output of the page is bound to a model, represented by JavaScript variables  These values are manipulated from Static or Dynamic JSON resources  The two way data binding makes it an effective tool for efficiently building client-side web apps
  • 6. KARMA  Test on Real Devices  Test your code on real browsers and real devices such as phones, tablets  Remote Control  Control the whole workflow from the command line or the IDE  When a file is saved, Karma will run all the tests  Testing Framework Agnostic  Describe tests with Jasmine, Mocha, QUnit or write a simple adapter for any framework of choice
  • 7. …KARMA  Open Source  Developed for and maintained by the open source community at GitHub  Easy Debugging  Easy debugging directly from your IDE via WebStorm or Google Chrome  Continuous Integration  Simple integration with Jenkins, Travis or Semaphore
  • 8. ANGULAR MOCKS  A Namespace from 'angular-mocks.js'  Contains testing related code  Provides support for injecting and mocking Angular services in unit tests
  • 9. PROTRACTOR  An E2E test framework for Angular apps  A feature testing tool for AngularJS  Launches the app in a browser to interacts via Selenium
  • 10. MOCHA  Claimed to be simple, flexible and fun  A feature-rich, JavaScript test framework running on node.js  It is a browser for asynchronous testing  Tests run serially, allowing flexible and accurate reporting  Map uncaught exceptions to the correct test cases  Enables writing describe blocks and making assertions
  • 11. CHAI  A BDD / TDD assertion library for node.js  It is a browser can be coupled with any JavaScript testing framework  An Assertion library that hooks into Mocha giving access to Behavior-Driven Development assertions
  • 12. CHAI AS PROMISED  A Chai plug-in  Helpful for dealing with function calls that return a promise  Extends Chai with assertions about promises
  • 13. LODASH  A Utility Library delivering  Consistency  Customization  Performance  Used to extend JavaScript to make it easier to work with
  • 14. SINON  A standalone test, spies, stubs and mocks for JavaScript  Has no dependencies  Works with any unit testing framework  Is a Stubbing and mocking library  Used to mock out directive & controller dependencies in unit tests  Checks the correctness of arguments in functions