轻量级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://codercto.com/soft/d/19525.html

Mastering Flask

Mastering Flask

Jack Stouffer / Packt Publishing / 2015-9-30 / USD 49.99

Work with scalable Flask application structures to create complex web apps Discover the most powerful Flask extensions and learn how to create one Deploy your application to real-world platforms......一起来看看 《Mastering Flask》 这本书的介绍吧!

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

各进制数互转换器

html转js在线工具
html转js在线工具

html转js在线工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具