Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new feature: support parameters and data driven
- Loading branch information
httprunner
committed
Feb 15, 2018
1 parent
1db17cb
commit f8569aa
Showing
9 changed files
with
294 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.9.1' | ||
__version__ = '0.9.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
app_version | ||
2.8.5 | ||
2.8.6 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
- config: | ||
name: "user management testset." | ||
parameters: | ||
- user_agent: Random | ||
- app_version: Sequential | ||
variables: | ||
- user_agent: 'iOS/10.3' | ||
- device_sn: ${gen_random_string(15)} | ||
- os_platform: 'ios' | ||
- app_version: '2.8.6' | ||
request: | ||
base_url: $BASE_URL | ||
headers: | ||
Content-Type: application/json | ||
device_sn: $device_sn | ||
output: | ||
- token | ||
|
||
- test: | ||
name: get token with $user_agent and $app_version | ||
api: get_token($user_agent, $device_sn, $os_platform, $app_version) | ||
extract: | ||
- token: content.token | ||
validate: | ||
- "eq": ["status_code", 200] | ||
- "len_eq": ["content.token", 16] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
user_agent | ||
iOS/10.1 | ||
iOS/10.2 | ||
iOS/10.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
username,password | ||
test1,111111 | ||
test2,222222 | ||
test3,333333 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f8569aa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix issues: #22 #74 #87 #88 #97
设计文档:http://debugtalk.com/post/httprunner-data-driven/
使用文档:http://cn.httprunner.org/data-driven/