API 测试框架 Airborne

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

软件介绍

Airborne 是一个 RSpec 驱动的 API 测试框架,灵感来自于 frisby.js

示例代码:

require 'airborne'

describe 'sample spec' do
    it 'should validate types' do
        get 'http://example.com/api/v1/simple_get' #json api that returns { "name" : "John Doe" } 
        expect_json_types({name: :string})
    end

    it 'should validate values' do 
        get 'http://example.com/api/v1/simple_get' #json api that returns { "name" : "John Doe" } 
        expect_json({:name => "John Doe"})
    end
end

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

Single Page Web Applications

Single Page Web Applications

Michael Mikowski、Josh Powell / Manning Publications / 2013-9-30 / USD 44.99

Code for most web sites mostly runs on the server. When a user clicks on a link, the site reacts slowly because the browser sends information to the server and the server sends it back again before di......一起来看看 《Single Page Web Applications》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具

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

HEX HSV 互换工具