Commit Graph

121 Commits

Author SHA1 Message Date
httprunner
73dd8128fa bugfix: Python2 does not support encoding parameter in open function; use codecs.open instead. 2017-08-17 21:56:43 +08:00
httprunner
78ac4049c1 bugfix: open file with utf-8 encoding 2017-08-17 17:15:41 +08:00
httprunner
256d7de90f make result displayed in order 2017-08-16 20:33:05 +08:00
httprunner
c61a7070f1 fix print version 2017-08-16 18:04:44 +08:00
httprunner
862a2928f4 update docstring of run_test 2017-08-15 19:34:50 +08:00
httprunner
802cdec952 make jenkins-mail-py as extras_require 2017-08-14 22:52:47 +08:00
httprunner
0d3fd40602 update with jenkins-mail-py 0.2.2 2017-08-14 15:09:43 +08:00
httprunner
cc7fda06cf Merge branch 'master' into mail 2017-08-03 23:58:39 +08:00
httprunner
dfba8143ee make comparator classified 2017-08-03 23:56:05 +08:00
httprunner
4dbae83199 add return value in cli.main to adapt jenkins:
1, if all testcases passed, then jenkins job pass;
2, if any testcase failed, then jenkins job fail.
2017-08-03 14:30:49 +08:00
httprunner
80d3febf87 Merge branch 'master' into mail 2017-08-03 14:12:41 +08:00
httprunner
5485b5a532 Merge pull request #14 from diaojunxian/master
bugfix: add maxreplace=1 to avoid similar variables are replaced by mistaken.
For instance, if user=1000, then "/$user/$userid" will be replaced to be "/1000/1000id".
2017-08-03 13:34:29 +08:00
httprunner
053b73fc91 Merge branch 'master' into mail 2017-08-03 12:03:49 +08:00
httprunner
bfc18b38a3 bugfix: when a variable binds to None, it should not raise exception 2017-08-03 12:02:37 +08:00
diaojunxian
249cf0dc9b fix bug|>update parse_variables and add testcase test_parse_variables_multiple_identical_variables 2017-08-03 11:10:36 +08:00
httprunner
728c379f09 bugfix: remove return value, otherwise jenkins job will consider it as failure 2017-08-03 10:53:33 +08:00
httprunner
8e3bf499a0 add jenkins-mail-py to support mail test result 2017-08-02 23:58:00 +08:00
httprunner
bb94408144 add test result flag 2017-08-02 23:30:54 +08:00
httprunner
a7bb4c450b collect test result 2017-08-02 17:36:03 +08:00
httprunner
393fea8d84 bugfix: comparison with None should raise exception in Python 2.7 2017-08-02 16:44:51 +08:00
httprunner
dd488bd48e add parser argument failfast 2017-08-02 15:34:51 +08:00
httprunner
74d653f94d bugfix: TypeError in match_expected 2017-08-02 15:21:37 +08:00
httprunner
4d471d7cda optimize response validation: if validation failed, then raise ValidationError directly 2017-08-02 15:10:38 +08:00
httprunner
a18c7bc62f optimize exception type 2017-08-02 14:19:14 +08:00
httprunner
cd27f325eb optimize response validation 2017-08-02 13:33:07 +08:00
httprunner
a55672e612 remove termcolor 2017-08-02 11:37:40 +08:00
httprunner
60ef698ee6 update version to 0.3.0 2017-07-31 22:59:04 +08:00
httprunner
5267d4f5e5 restructure code: move code related to testcase from ate/utils.py to ate/testcase.py 2017-07-31 22:51:28 +08:00
httprunner
533ff9198a bugfix #9: handle string content with multiple identical variables. 2017-07-31 22:26:09 +08:00
httprunner
233978007e bugfix: when the bind value of variable is not in string type, it should be converted to string first, or it will raise TypeError in replace function 2017-07-31 21:04:19 +08:00
httprunner
c3856f7599 bugfix #9: handle string content with multiple variables. 2017-07-30 16:18:11 +08:00
httprunner
4de4cfe3a3 specify run times in testcase 2017-07-27 14:44:32 +08:00
httprunner
137b381957 Stop the test run on the first error or failure. 2017-07-24 22:16:15 +08:00
httprunner
7901a8e26a update tag to 0.2.2 2017-07-24 18:16:07 +08:00
httprunner
16307e2ebe refactor mock server:
1, remove authentication switcher;
2, change authentication method: from verify request data's md5 to get token at the beginning.
2017-07-22 15:15:05 +08:00
httprunner
5e59951e73 bugfix: testset_shared_variables_mapping should be OrderedDict 2017-07-21 17:04:27 +08:00
httprunner
68a00bcc0d change context variable name 2017-07-21 09:26:33 +08:00
httprunner
4849a25ea2 refactor variable context:
1, variable context has two level, testset and testcase;
2, testset level variables can be used in whole test suite, while testcase level variables can only be used in testcase;
3, when variable binds with functions, the funtions will be called and the result will be set to the variable.
2017-07-20 22:43:18 +08:00
httprunner
da04c8793e bugfix: variable name and function name could have _ 2017-07-20 12:24:44 +08:00
httprunner
43bb240da9 make custom module importable anywhere 2017-07-20 10:32:58 +08:00
httprunner
031727c613 change method to specify testset path 2017-07-19 23:29:29 +08:00
httprunner
2652362185 add command argument: show version 2017-07-19 21:24:37 +08:00
httprunner
aaeffeb14f add setup 2017-07-19 19:10:11 +08:00
httprunner
e3f4249f53 change with PyUnitReport 2017-07-19 19:06:02 +08:00
httprunner
4d1c78354f split ate/main.py to ate/cli.py and ate/task.py 2017-07-19 15:49:15 +08:00
httprunner
e0c00ca326 add report_name argument to specify report name, if not specified, use current time as default 2017-07-17 18:36:23 +08:00
httprunner
a99d1aeb37 set testcase filename as output folder name 2017-07-14 17:34:05 +08:00
httprunner
7109911ad9 bugfix: make compatible with None field in testcase 2017-07-14 15:41:44 +08:00
httprunner
318f5b4130 add custom functions: gen_urlencode_str, get_timestamp 2017-07-14 15:16:47 +08:00
httprunner
a06c61a883 generate html test report with HtmlTestRunner 2017-07-14 12:44:44 +08:00