Skip to Content
Java持续交付
book

Java持续交付

by Daniel Bryant, Abraham Marín-Pérez
November 2019
Beginner to intermediate
406 pages
9h 21m
Chinese
Publishing House of Electronics Industry
Content preview from Java持续交付
需要多少非功能性测试才够
325
12-7:通过Hoverfly中间件来制造混乱
通过
Hoverfly
准确模拟依赖发生的故障
Daniel
的经验
在我参与过的几个项目中,曾经使用
Hoverfly
与中间件准确模拟和测试了一些故
障情景。例如,在某个项目中,我的服务需要与一个内部遗留系统集成。幸运的是,
该遗留系统提供了
REST API
,而且
API
从来没有发生过变化。但是,我只能每
两周访问一次系统的预发布版本,而且准确重现一遍生产环境中的故障,也是一
件很难的事情。
我希望确保服务(依赖于遗留系统的
API
)可以处理已知的故障,因此当我可以
访问系统的时候,通过
Hoverfly-Java
JUnit
REST Assured
等框架记录了一系
列模拟行为。然后,我修改了
Hoverfly
模拟请求
/
响应的数据,来模拟遗留系统
的故障,再将其加载到测试中的
Hoverfly
实例。成功了!我不仅能够在需要的时
候使用
Hoverfly
来测试服务与遗留
API
的集成,还可以放心测试处理故障的代码。
需要多少非功能性测试才够
要想回答某个产品或者项目需要多少非功能性需求(
NFR
)测试,这几乎是不可能的,
或者非常类似于回答“字符串有多长”这样的问题。你打算在这方面投入多少精力,取
决于所处的业务阶段以及可用的资源和时间。如果你的企业还没有合适的产品或者市场,
那么决定提供哪些功能可能是最先需要考虑的问题。同样,如果你的团队没有为这类测
试投入(或者允许)工程方面的时间和精力,那么也不要对结果抱有任何期待。
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu
Java性能优化实践:JVM调优策略、工具与技巧

Java性能优化实践:JVM调优策略、工具与技巧

Benjamin J. Evans, James Gough, Chris Newland
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
C++语言导学(原书第2版)

C++语言导学(原书第2版)

本贾尼 斯特劳斯特鲁普

Publisher Resources

ISBN: 9787121374425