Soumettre la recherche
Mettre en ligne
Applying BDD/TDD practices, using Jasmine.js
•
Télécharger en tant que PPSX, PDF
•
1 j'aime
•
893 vues
Anil Tarte
Suivre
Technologie
Design
Signaler
Partager
Signaler
Partager
1 sur 18
Télécharger maintenant
Recommandé
OpenTravel Schema Product Comparison
OpenTravel Schema Product Comparison
OpenTravel Alliance
OpenTravel Advisory Forum 2012 XML Object Suite Lab
OpenTravel Advisory Forum 2012 XML Object Suite Lab
OpenTravel Alliance
Prakash Narayan Killer S O Aapps Using J2 E E
Prakash Narayan Killer S O Aapps Using J2 E E
SOA Symposium
BeJUG JavaFx In Practice
BeJUG JavaFx In Practice
Pursuit Consulting
Testing JS with Jasmine
Testing JS with Jasmine
Evgeny Gurin
Jasmine - why JS tests don't smell fishy
Jasmine - why JS tests don't smell fishy
Igor Napierala
WCXM marketplace 2012
WCXM marketplace 2012
Irina Guseva
StreamBase - Embedded Erjang - Erlang User Group London - 20th April 2011
StreamBase - Embedded Erjang - Erlang User Group London - 20th April 2011
darach
Recommandé
OpenTravel Schema Product Comparison
OpenTravel Schema Product Comparison
OpenTravel Alliance
OpenTravel Advisory Forum 2012 XML Object Suite Lab
OpenTravel Advisory Forum 2012 XML Object Suite Lab
OpenTravel Alliance
Prakash Narayan Killer S O Aapps Using J2 E E
Prakash Narayan Killer S O Aapps Using J2 E E
SOA Symposium
BeJUG JavaFx In Practice
BeJUG JavaFx In Practice
Pursuit Consulting
Testing JS with Jasmine
Testing JS with Jasmine
Evgeny Gurin
Jasmine - why JS tests don't smell fishy
Jasmine - why JS tests don't smell fishy
Igor Napierala
WCXM marketplace 2012
WCXM marketplace 2012
Irina Guseva
StreamBase - Embedded Erjang - Erlang User Group London - 20th April 2011
StreamBase - Embedded Erjang - Erlang User Group London - 20th April 2011
darach
Streamline - Stream Analytics for Everyone
Streamline - Stream Analytics for Everyone
DataWorks Summit/Hadoop Summit
Tim Jones – CTO, Trader Media
Tim Jones – CTO, Trader Media
RightScale
4 Paradigm Shifts for the Connected Car of the Future
4 Paradigm Shifts for the Connected Car of the Future
HiveMQ
ArcReady - Architecting For The Client Tier
ArcReady - Architecting For The Client Tier
Microsoft ArcReady
The Role of Standards in IoT Security
The Role of Standards in IoT Security
Hannes Tschofenig
Introduction to Web Application Clustering
Introduction to Web Application Clustering
Piyush Katariya
01 introduction
01 introduction
Volker Kraft
Cebit-2008: Content Aggregation
Cebit-2008: Content Aggregation
David Nuescheler
TechHub pitch
TechHub pitch
Serge Kotlyarov
Distributed application usecase on docker
Distributed application usecase on docker
Hiroshi Miura
C:\Alon Tech\New Tech\Embedded Conf Tlv\Prez\Sightsys Embedded Day
C:\Alon Tech\New Tech\Embedded Conf Tlv\Prez\Sightsys Embedded Day
Arik Weinstein
HDF 3.1 pt. 2: A Technical Deep-Dive on New Streaming Features
HDF 3.1 pt. 2: A Technical Deep-Dive on New Streaming Features
Hortonworks
Click, Click, Test - Automated Tests for APEX Applications
Click, Click, Test - Automated Tests for APEX Applications
Kai Donato
Session dédiée à l'analyse de la qualité du code Java - Cyril Picat - Februar...
Session dédiée à l'analyse de la qualité du code Java - Cyril Picat - Februar...
JUG Lausanne
2. workload
2. workload
JudePragashVedam
44CON London 2015 - Inside Terracotta VPN
44CON London 2015 - Inside Terracotta VPN
44CON
Entity Framework V1 and V2
Entity Framework V1 and V2
ukdpe
Edge Computing risks and Opportunities for Telco and hyperscalers
Edge Computing risks and Opportunities for Telco and hyperscalers
Patrick Lopez
ECI OpenFlow 2.0 the Future of SDN
ECI OpenFlow 2.0 the Future of SDN
ECI – THE ELASTIC NETWORK™
Building Server-Side Eclipse based web applications
Building Server-Side Eclipse based web applications
Gunnar Wagenknecht
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
Alan Dix
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc
Contenu connexe
Similaire à Applying BDD/TDD practices, using Jasmine.js
Streamline - Stream Analytics for Everyone
Streamline - Stream Analytics for Everyone
DataWorks Summit/Hadoop Summit
Tim Jones – CTO, Trader Media
Tim Jones – CTO, Trader Media
RightScale
4 Paradigm Shifts for the Connected Car of the Future
4 Paradigm Shifts for the Connected Car of the Future
HiveMQ
ArcReady - Architecting For The Client Tier
ArcReady - Architecting For The Client Tier
Microsoft ArcReady
The Role of Standards in IoT Security
The Role of Standards in IoT Security
Hannes Tschofenig
Introduction to Web Application Clustering
Introduction to Web Application Clustering
Piyush Katariya
01 introduction
01 introduction
Volker Kraft
Cebit-2008: Content Aggregation
Cebit-2008: Content Aggregation
David Nuescheler
TechHub pitch
TechHub pitch
Serge Kotlyarov
Distributed application usecase on docker
Distributed application usecase on docker
Hiroshi Miura
C:\Alon Tech\New Tech\Embedded Conf Tlv\Prez\Sightsys Embedded Day
C:\Alon Tech\New Tech\Embedded Conf Tlv\Prez\Sightsys Embedded Day
Arik Weinstein
HDF 3.1 pt. 2: A Technical Deep-Dive on New Streaming Features
HDF 3.1 pt. 2: A Technical Deep-Dive on New Streaming Features
Hortonworks
Click, Click, Test - Automated Tests for APEX Applications
Click, Click, Test - Automated Tests for APEX Applications
Kai Donato
Session dédiée à l'analyse de la qualité du code Java - Cyril Picat - Februar...
Session dédiée à l'analyse de la qualité du code Java - Cyril Picat - Februar...
JUG Lausanne
2. workload
2. workload
JudePragashVedam
44CON London 2015 - Inside Terracotta VPN
44CON London 2015 - Inside Terracotta VPN
44CON
Entity Framework V1 and V2
Entity Framework V1 and V2
ukdpe
Edge Computing risks and Opportunities for Telco and hyperscalers
Edge Computing risks and Opportunities for Telco and hyperscalers
Patrick Lopez
ECI OpenFlow 2.0 the Future of SDN
ECI OpenFlow 2.0 the Future of SDN
ECI – THE ELASTIC NETWORK™
Building Server-Side Eclipse based web applications
Building Server-Side Eclipse based web applications
Gunnar Wagenknecht
Similaire à Applying BDD/TDD practices, using Jasmine.js
(20)
Streamline - Stream Analytics for Everyone
Streamline - Stream Analytics for Everyone
Tim Jones – CTO, Trader Media
Tim Jones – CTO, Trader Media
4 Paradigm Shifts for the Connected Car of the Future
4 Paradigm Shifts for the Connected Car of the Future
ArcReady - Architecting For The Client Tier
ArcReady - Architecting For The Client Tier
The Role of Standards in IoT Security
The Role of Standards in IoT Security
Introduction to Web Application Clustering
Introduction to Web Application Clustering
01 introduction
01 introduction
Cebit-2008: Content Aggregation
Cebit-2008: Content Aggregation
TechHub pitch
TechHub pitch
Distributed application usecase on docker
Distributed application usecase on docker
C:\Alon Tech\New Tech\Embedded Conf Tlv\Prez\Sightsys Embedded Day
C:\Alon Tech\New Tech\Embedded Conf Tlv\Prez\Sightsys Embedded Day
HDF 3.1 pt. 2: A Technical Deep-Dive on New Streaming Features
HDF 3.1 pt. 2: A Technical Deep-Dive on New Streaming Features
Click, Click, Test - Automated Tests for APEX Applications
Click, Click, Test - Automated Tests for APEX Applications
Session dédiée à l'analyse de la qualité du code Java - Cyril Picat - Februar...
Session dédiée à l'analyse de la qualité du code Java - Cyril Picat - Februar...
2. workload
2. workload
44CON London 2015 - Inside Terracotta VPN
44CON London 2015 - Inside Terracotta VPN
Entity Framework V1 and V2
Entity Framework V1 and V2
Edge Computing risks and Opportunities for Telco and hyperscalers
Edge Computing risks and Opportunities for Telco and hyperscalers
ECI OpenFlow 2.0 the Future of SDN
ECI OpenFlow 2.0 the Future of SDN
Building Server-Side Eclipse based web applications
Building Server-Side Eclipse based web applications
Dernier
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
Alan Dix
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
Hervé Boutemy
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
Addepto
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
Mattias Andersson
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
LoriGlavin3
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
gvaughan
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
UiPathCommunity
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
BkGupta21
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Slibray Presentation
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
DianaGray10
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
Kalema Edgar
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
Stephanie Beckett
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
Fwdays
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
LoriGlavin3
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
LoriGlavin3
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
Dubai Multi Commodity Centre
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
Lars Bell
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
Dilum Bandara
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
Alfredo García Lavilla
Dernier
(20)
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
Applying BDD/TDD practices, using Jasmine.js
1.
Applying BDD and
TDD practices, using Jasmine.js - Anil Tarte © Equal Experts UK Ltd 2011 www.equalexperts.com 1
2.
Outline
Development Environment What is TDD? What is BDD? Domain problem Stories Demonstration Questions? © Equal Experts UK Ltd 2011 www.equalexperts.com 2
3.
Development Environment
Eclipse – Using Eclipse IDE for JavaScript Web Developers – Installed Jetty(Run-Jetty-Run) plugin. • Help -> Eclipse Marketplace -> type Jetty -> hit enter -> install Run-Jetty-Run Backend Server(Streamer.jar), – URL to access it “ws://localhost:8081/” – It is a Streaming Engine and a Stub Exchange © Equal Experts UK Ltd 2011 www.equalexperts.com 3
4.
Test Driven Development
(TDD)? Concept – Add a test for each new feature/improvement – Write production code, to pass test – Refactor Aspect – KISS (Keep It Simple, Stupid) – YAGNI (You Ain’t Goona Need It) – Fake it till you make it Benefits – Designs become more cleaner and clearer – Testable code – Focus only on what is important © Equal Experts UK Ltd 2011 www.equalexperts.com 4
5.
Behaviour Driven Development
(BDD)? Concept – Write/Automate a desired behaviour first (in natural language) – Driven by business value Aspect – Test method names should be sentence – It extends TDD Benefits – Clear understanding of desired software behaviour – Starting point – Encourages more collaboration, Dev + QA + BA + Customer © Equal Experts UK Ltd 2011 www.equalexperts.com 5
6.
Domain Problem
Heat Map © Equal Experts UK Ltd 2011 www.equalexperts.com 6
7.
Top 4 gainer? ©
Equal Experts UK Ltd 2011 www.equalexperts.com 7
8.
Different representation -
Heat Map © Equal Experts UK Ltd 2011 www.equalexperts.com 8
9.
Another version © Equal
Experts UK Ltd 2011 www.equalexperts.com 9
10.
Stories – Identify?
Story 1 – As a trader, when I load application, I want to see the instruments, so that … Story 2 – As a trader, I want to see “price change” updating in real time, so that … Story 3 – As a trader, I should able to see instruments performance visually(color coded), so that I will get overview of the market in real time © Equal Experts UK Ltd 2011 www.equalexperts.com 10
11.
Story 1
As a trader, when I load application, I want to see the instruments, so that … Scenario 1 – When a trader starts the application – Then I will see the instruments with details • Instrument Symbol • Instrument Name • Price change in percentage © Equal Experts UK Ltd 2011 www.equalexperts.com 11
12.
Design Discussion –
Story 1 Connect to – ws://localhost:8081/ Knockout bindings Application Streamer Engine HTML document © Equal Experts UK Ltd 2011 www.equalexperts.com 12
13.
Design Discussion –
Story 1 Connect to – ws://localhost:8081/ Application /Instrument Streamer Channel Engine Instrument Container { messageType:"Snapshot", Knockout message : {[ bindings { "instrumentSymbol":"PL Z11", "instrumentName":"Platinum", "instrumentChange":"-3.9“ } ]} HTML document } © Equal Experts UK Ltd 2011 www.equalexperts.com 13
14.
Story 2
As a trader, I want to see “price change” updating in real time. Scenario 1 – Given I have launched Heat Map application – When I monitor the Heat Map – Then I will see the instrument’s “price change” updates in real time © Equal Experts UK Ltd 2011 www.equalexperts.com 14
15.
Design Discussion –
Story 2 Connect to – ws://localhost:8081/ Application /Instrument Streamer Channel Engine Instrument Instrument Container { Knockout messageType:“Update", bindings message : {[ { "instrumentName":"Platinum", "instrumentChange":"-3.9“ } ]} HTML documents } © Equal Experts UK Ltd 2011 www.equalexperts.com 15
16.
Story 3
As a trader, I should able to see instrument’s performance visually. Scenario 1 – Given I have launched Heat Map application – When I monitor the Heat Map – Then I will see the instrument’s tile color changing according to the “price change” in real time © Equal Experts UK Ltd 2011 www.equalexperts.com 16
17.
Design Discussion –
Story 3 Connect to – ws://localhost:8081/ Color Code /Instrument Application Calculator Streamer Channel Engine Instrument Instrument Container Knockout bindings HTML documents © Equal Experts UK Ltd 2011 www.equalexperts.com 17
18.
Questions? © Equal Experts
UK Ltd 2011 www.equalexperts.com 18
Télécharger maintenant