sigoden / htte Goto Github PK
View Code? Open in Web Editor NEWDocument Driven API Test Framework
License: MIT License
Document Driven API Test Framework
License: MIT License
新建一款插件其使用 mockjs 生成假数据
- describe: mock data
req:
body:
email: !$mock '@EMAIL'
url: !$mock "@URL('http', 'example.com')"
arr: !$moco
'list|1-10':
- 'id|+1': 1
Htte
have default folder modules
for module yaml files. This is error-prone and confusing.
use suffix '?' to mark value is optional.
req:
body:
k1: !@exist
k2?: !@exist
k2
with ?
means k2 is optional.
- describe: root
units:
- describe: g0
units:
- describe: g0-0
- describe: g1
units:
- describe: g1-0
打印描述现在是这样的
root
g0
1) g0-0
root
g1
2) g1-0
其实应该是这样的
root
g0
1) g0-0
g1
2) g1-0
测试 g1-0
不应该重复打印 root
@arraylike
is able to verify the element at a index or the length of array. It can be more powerful. Add '?' to check an element exists, Add '*' to check each element pass the rule.
a: [1, 2, 3]
We check 2
is existed in array a
a: !@arraylike
?: 2
We check each element of array a
is large than 0
a: !@arraylike
*: !@compare
op: gt
value: 0
在 Restful API 数据交换格式中 XML 也很常见,但 Htte 目前只支持 JSON。可以支持 XML 编码吗?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.