Upload
ca-technologies
View
309
Download
2
Embed Size (px)
Citation preview
Technology Primer: Building Applications the New-Fashioned Way
Chris Kraus
DevOps: Continuous Delivery
CA Technologies
Product Manager
DO4X125S
@ChrisKraus3
#CAWorld
2 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
For Informational Purposes Only
Terms of this Presentation
© 2015 CA. All rights reserved. All trademarks referenced herein belong to their respective companies. The presentation provided at CA
World 2015 is intended for information purposes only and does not form any type of warranty. Some of the specific slides with customer
references relate to customer's specific use and experience of CA products and solutions so actual results may vary.
Certain information in this presentation may outline CA’s general product direction. This presentation shall not serve to (i) affect the rights
and/or obligations of CA or its licensees under any existing or future license agreement or services agreement relating to any CA software
product; or (ii) amend any product documentation or specifications for any CA software product. This presentation is based on current
information and resource allocations as of November 18, 2015, and is subject to change or withdrawal by CA at any time without notice. The
development, release and timing of any features or functionality described in this presentation remain at CA’s sole discretion.
Notwithstanding anything in this presentation to the contrary, upon the general availability of any future CA product release referenced in
this presentation, CA may make such release available to new licensees in the form of a regularly scheduled major product release. Such
release may be made available to licensees of the product who are active subscribers to CA maintenance and support, on a when and if-
available basis. The information in this presentation is not deemed to be incorporated into any contract.
3 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Abstract
Welcome to the application economy, where every company is a software company. You are challenged to build applications faster, cheaper and better, but can't seem to achieve all three goals at the same time. In this presentation, you will learn where the bottlenecks occur in application development and how you can spot defects earlier in the process, automate your testing and build better apps. CA Continuous Application Insight provides deep transaction insight into your Web and mobile applications, allowing developers to identify issues much earlier, make changes and produce cleaner code. The result is a better app and a dramatically improved customer experience.
Chris Kraus
CA Technologies
Product Manager
4 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Agenda
HOW ARE YOU BUILDING APS? FROM CONTRACT OR ON TOP OF LEGACY?
VISIBILITY WHEN BUILDING ON TOP OF INHERITED APPLICATIONS
Q&A
FIND THOSE SLOW ITEMS AND LOG MESSAGES
VIRTUALIZE AWAY YOUR BLOCKERS
GENERATE API TESTS AS YOUR CONSUMPTION CONTRACTS
1
2
3
4
5
6
5 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Are You Building Your Applications From Contract or on Top of Legacy?
New mobile or web development means you get the edge of technology– Latest platform iOS, Android, Chrome and Firefox browsers
with HTML5
– REST, JSON, Swagger 2.0
User Journeys are on the tip of the tongue for developers and Product Owners
Contracts first development helps team collaborate on data
6 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Early Development – Contract Based First
GET http://10.139.4.170:3434/cars-app/api/validate HTTP/1.1
{"access_token": "br73egja4qkcdd7mnf3dvgtfe6d9o053”,"firstname": "chris","lastname": "kraus","roles": [
"ROLE_USER"],"token_type": "Bearer","username": "chrisk"
}
/cars-inventory/carInventory[
{"carTrim": "Premium Plus","class": "com.ca.lisa.demo.CarInventory","color": "Silver","dealer": {
"address": "3800 Motor City Dr","city": "Denver","class": "com.ca.lisa.demo.CarDealer",
7 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Contract First Development – Simplicity in Moving Parts
Generate virtual service from: – Specifications
– Samples
Hosted Service Virtualization for Developers
Azure – CA Service Virtualization
On premise CA Service Virtualization
RAMLSwagger 2.0
WSDLWADL
Sample Request
Response data
8 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Bi-Modal IT Building Applications on Top of Existing Systems and Systems of Record
New visualization and workflows
Heavy dependencies on legacy systems for data
Multiple layers of black boxes in technology
ESB
9 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
How to I figure Out What is Below the UI and if I Can Leverage?
Deploy DevTest agents
Run transactions in the system
CA Continuous Application Insight provides the details
ESB
10 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
CA Continuous Application Insight
MOVE FROM THE WHITEBOARD DRAWING TO LIVE SYSTEMS VIEWS
11 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Payload Visibility
12 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Find Those Slow Items and Log Messages –the Easy Way
Modern applications are composites
of multiple backend servers
During development is the best place
to start thinking of performance
Assumption is code does not magically get
relatively faster on different hardware
Finding the slow part in a path is now
easily visualized in portal
13 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Find Slow Code and Blockers
14 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Use Counts in Paths
15 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Find Those Slow Items and Log Messages –the Easy Way
Great thing about system logs is there’s tons of data in there
Problem is log files can be 100 of megabytes
Finding reoccurring error messages is difficult and requires slicing
and dicing
Understanding the code emitted the message requires code access
It is even more difficult to understand the context of the application
that emitted the message
16 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Payload Visibility Log Messages in Context of Transaction
17 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Most Common Called Code
18 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Types of Code Run with Response and Logs
19 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Most Common Log Messages
20 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Exceptions Thrown in Code
21 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Virtualize Away Your Blockers
Visibility comes with advantages, you can view and isolate your development
Virtualize away– 1 step away from your development work
– Problem or unreliable systems
– Test data problems
Build regression tests at API layer for any layer of the application
Build the DevTest Sandwich to more robust regression testing
22 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Start High Level with Your Application Topology
23 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Virtualize Away a Server Used by Multiple Clients
24 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Generate API Regression Tests Automatically
25 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Isolate Systems with DevTest Sandwich
ESB
Use API tests to simulate the system or regress functionality
Stabilize the backend system response time, data, and availability with virtual services
Consistency on either side of the SUT isolates changes and provides less false failures in testing
26 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Generate API Test’s as Your Consumption Contracts
As a consumer of API’s you owe API tests that represent your use of the
API to the service producers
API tests provide a easy to run contract of consumption, UI testing usually
involves unnecessary system setup and brittle tests
API tests create horizontal trust across organizational boundaries, move
test closer to the application, and earlier in the SDLC
Failing tests is a much better warning of changings in application behavior
than failing complex multi-layered applications
27 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Document Transactions to API Functional Tests
28 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Building Horizontal Trust
Consumers of shared
services or common API’s
exist across business
unit boundaries
Mistrust prevents leveraging
common services
Mobile
Accounts
Rich Client
Accounts
Treasury
Services
Shared Services
Common API’s
1 Small Change no one will notice
Application failures
29 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Building Horizontal Trust
Failing regression tests
are opportunities to
resolve failures before
production
API tests can be run on
partially deployed
systems early in CD
workflow
Mobile
Accounts
API Tests
Rich Client
Accounts
API Tests
Treasury
Services
API Tests
Shared Services
Common API’s
1 Small Change no one will notice
Regression failures
30 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Q & A
31 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Demo – User Journey API tests
Generate Functional test
Document Transactions
Generate Functional test
Chrome plugin
32 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Handle Dynamic Data
The user data along with returned data from the application is dynamic. Generated tests are data driven and parameter driven to ensure they actually run.
Follow the user Journey
Applications are API’s used in the order of the User Journey through the application. The order of the API’s makes a difference.
Generate API test
API tests are easily generated to follow the user journey. The API’s are more stable then automating the UI’s.
The API’s should be leveraged in multiple applications.
SummaryA Few Words to Review
33 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Recommended Sessions
SESSION # TITLE DATE/TIME
DO3X113SCase Study: DBS Shares Its Continuous Delivery Journey
as a Global Financial Institution11/19/2015 at 3:00 pm
DO3X114S
Freeing the World from Slow: How Service Virtualization
and the Concept of S.P.E.E.D. Will Steer You Away from
Committing Continuous Delivery Suicide
11/19/2015 at 3:45 pm
DO3T22SBusiness Transformation: DevOps for a 10-Year-Old
(Codebase)11/19/2015 at 4:30 pm
34 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Must See Demos
Application Test DemoCreate Better Application Tests
Theater 4
DevOps Sim
DevOps Simulation Experience
Theater 3
Continuous App InsightAutomate Tests for Better Apps
Theater 4
Service VirtualizationDeliver Better Apps Faster with SV
Theater 3
35 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
Follow On Conversations At…
Smart Bar
Theaters 3 & 4
Tech Talks
Theaters 3 & 4
36 © 2015 CA. ALL RIGHTS RESERVED.@CAWORLD #CAWORLD
For More Information
To learn more, please visit:
http://cainc.to/Nv2VOe
CA World ’15