轻量级Web服务测试桩 Mimic

码农软件 · 软件分类 · 测试工具 · 2019-11-22 08:11:31

软件介绍

Mimic, 轻量级Web服务测试桩

开发语言:Ruby

注册一个Web请求测试桩:

Mimic.mimic.get("/some/path").returning("hello world")

使用RestClient访问该请求:

$ RestClient.get("http://www.example.com:11988/some/path") # => 200 | hello world

注册多个请求测试桩; 注意你可以用不同得方法为同一个url注册多个请求。

Mimic.mimic do
  get("/some/path").returning("Hello World", 200)
  get("/some/other/path").returning("Redirecting...", 301, {"Location" => "somewhere else"})
  post("/some/path").returning("Created!", 201)
end

本文地址:https://www.codercto.com/soft/d/19525.html

Pragmatic Thinking and Learning

Pragmatic Thinking and Learning

Andy Hunt / The Pragmatic Bookshelf / 2008 / USD 34.95

In this title: together we'll journey together through bits of cognitive and neuroscience, learning and behavioral theory; you'll discover some surprising aspects of how our brains work; and, see how ......一起来看看 《Pragmatic Thinking and Learning》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具