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

XML Hacks

XML Hacks

Michael Fitzgerald / O'Reilly Media, Inc. / 2004-07-27 / USD 24.95

Developers and system administrators alike are uncovering the true power of XML, the Extensible Markup Language that enables data to be sent over the Internet from one computer platform to another or ......一起来看看 《XML Hacks》 这本书的介绍吧!

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

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

html转js在线工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试