ca service virtualization vs mocks stubs

22
CA Service Virtualization vs. Mocks/Stubs Compare key areas of differentiation between mocking / stubbing tools and CA Service Virtualization

Upload: alan-baptista

Post on 15-Apr-2017

105 views

Category:

Software


1 download

TRANSCRIPT

Page 1: CA Service Virtualization vs mocks stubs

CA Service Virtualization vs. Mocks/Stubs

Compare key areas of differentiation between mocking / stubbing tools and CA Service Virtualization

Page 2: CA Service Virtualization vs mocks stubs

DefinitionsSetting the ground

Page 3: CA Service Virtualization vs mocks stubs

3 © 2017 CA. ALL RIGHTS RESERVED.

Stubs Mocks

“Provide canned answers to calls made during the test, usually not responding at all to anything outside what’s programmed in for the test.”

Development or Testing “objects pre-programed with expectations which form a specification of calls they are expected to receive.”

http://martinfowler.com/articles/mocksArentStubs.html#TheDifferenceBetweenMocksAndStubs

Page 4: CA Service Virtualization vs mocks stubs

4 © 2017 CA. ALL RIGHTS RESERVED.

Service Virtualization

A method of capturing and simulating the behavior of unavailable or incomplete systems.

Takes a modern approach to the practice of “mocking” or “stubbing”.

Uses sufficiently “real” virtual services without depending on complexity and constraints of real hardware or software.

Benefits include: – Earlier detection of defects– Shorter Release cycles– Reduced cost of development– Reduced physical infrastructure

dependencies

Page 5: CA Service Virtualization vs mocks stubs

Capabilities & Benefits - Compare & Contrast

Service Virtualization vs. Mocks/Stubs

Page 6: CA Service Virtualization vs mocks stubs

6 © 2017 CA. ALL RIGHTS RESERVED.

Reduce Dependencies and Constraints in App Development

Reduce cycle times, earlier defect discovery, more efficient use of resources.

Service Virtualization Mocks/Stubs

Page 7: CA Service Virtualization vs mocks stubs

7 © 2017 CA. ALL RIGHTS RESERVED.

Virtualize test data for comprehensive test paths

Faster setup/teardown, greater stability for test automation.

Service Virtualization Mocks/Stubs

Test data must be designed for specific use

Page 8: CA Service Virtualization vs mocks stubs

8 © 2017 CA. ALL RIGHTS RESERVED.

Enable high performanceenvironments

Better realism and quantity of performance testing.

Service Virtualization Mocks/Stubs

Not designed for performance testing

Page 9: CA Service Virtualization vs mocks stubs

9 © 2017 CA. ALL RIGHTS RESERVED.

Complete testing ofapplication business logic

Test each app component individually and automate the validation of business processes that span across multiple internal and cloud based services.

Service Virtualization Mocks/Stubs

Inside Application Code

Page 10: CA Service Virtualization vs mocks stubs

10 © 2017 CA. ALL RIGHTS RESERVED.

Provide reuse and collaboration across development teams

Virtualize a Service once and reuse across development teams and applications.

Service Virtualization Mocks/Stubs

Every app requires writingmocks that could be shared

Page 11: CA Service Virtualization vs mocks stubs

11 © 2017 CA. ALL RIGHTS RESERVED.

Incorporate into Continuous Integration Process

Hook into all stages of CI environments. (Dev., QA, Performance, and Integration)

Service Virtualization Mocks/Stubs

Limited outside of Dev. Environment

Page 12: CA Service Virtualization vs mocks stubs

12 © 2017 CA. ALL RIGHTS RESERVED.

Reduce time and cost ofMaintenance for Dev andTest environments

Increase dev time to focus on applicationcode vs. maintaining mocks and test data that are code dependent.

Service Virtualization Mocks/Stubs

Code Dependent

Page 13: CA Service Virtualization vs mocks stubs

13 © 2017 CA. ALL RIGHTS RESERVED.

Expansive Code Coverage

Enable a consistent and standardized SDLC/ CI Process with solution that supports all code bases.

Service Virtualization Mocks/Stubs

Java Only

Page 14: CA Service Virtualization vs mocks stubs

14 © 2017 CA. ALL RIGHTS RESERVED.

UI to modify request/ response

Resources with no developer skills can create and update models.

Service Virtualization Mocks/Stubs

Coding required

Page 15: CA Service Virtualization vs mocks stubs

15 © 2017 CA. ALL RIGHTS RESERVED.

Bulk import/ recording oftransactions

Leverage large volumes of actual behavior and data.

Service Virtualization Mocks/Stubs

No recording or importingof transactions

Page 16: CA Service Virtualization vs mocks stubs

16 © 2017 CA. ALL RIGHTS RESERVED.

Magic Strings/Dates

Test request that don’t have a “specific” response, as patters are identified and made available. .

Service Virtualization Mocks/Stubs

Static Information

Page 17: CA Service Virtualization vs mocks stubs

17 © 2017 CA. ALL RIGHTS RESERVED.

Think Time

Add “think time” to transactions to simulate performance in production.

Service Virtualization Mocks/Stubs

Single Thread

Page 18: CA Service Virtualization vs mocks stubs

18 © 2017 CA. ALL RIGHTS RESERVED.

Various Capture Methods

capture services through record a live system (for accuracy) or import data.

Service Virtualization Mocks/Stubs

No Capture Mode

Page 19: CA Service Virtualization vs mocks stubs

19 © 2017 CA. ALL RIGHTS RESERVED.

Learning Mode

“Learn” live system data over time or pass-through to w/o reconfiguring SUT.

Service Virtualization Mocks/Stubs

No Learning Mode

Page 20: CA Service Virtualization vs mocks stubs

20 © 2017 CA. ALL RIGHTS RESERVED.

CA Service Virtualization

Leverage throughout Continuous Integration (CI) process – Development, Pre-Production, Performance, Integration, QA.

Test Data Management challenges may disappear entirely.– Edge conditions, negative test scenarios and error handling– Virtual service never “burn” since they play back behavior responses.

Support across the enterprise including:– web traffic (HTTP), web services (SOAP/XML), integration layers & ESB

(JMS, etc.)

Simulate transactions and connections with: – underlying mainframes (CICS, CORBA, etc.,), databases (JDBC, etc.) and

third-party services.

Page 21: CA Service Virtualization vs mocks stubs

21 © 2017 CA. ALL RIGHTS RESERVED.

CA Service Virtualization

STS security Plugin module cannot be mocked, but are easily supported as a container with Service Virtualization

Drive performance testing. Traditional Mock/Stub tools - not designed for performance testing environments.

Represents more realistic behavior than stubs and mocks. Delivers stand-alone, decoupled services suitable for sharing

between teams and organizations. Does not require proprietary source-code level changes or

modifications of the application under development.

Page 22: CA Service Virtualization vs mocks stubs

For more information visit

ca.com/SV