Commit Graph

908 Commits

Author SHA1 Message Date
debugtalk
7d94fdfb14 print testcase output 2019-01-24 17:14:44 +08:00
debugtalk
fd13fef0d5 print Invalid testcase path or testcases 2019-01-24 15:22:10 +08:00
debugtalk
343229c583 change log level of Variables 2019-01-21 17:19:31 +08:00
debugtalk
3541d600ce Merge pull request #495 from HttpRunner/bugfix
release 2.0.1
v2.0.1
2019-01-18 19:30:02 +08:00
debugtalk
65ef0b4741 add Release History 2019-01-18 19:08:34 +08:00
debugtalk
efee458ded bugfix: add request method in report 2019-01-18 12:47:55 +08:00
debugtalk
843f1d2e8c bugfix: skip undefined variable when parsing string content 2019-01-17 18:40:46 +08:00
debugtalk
14f64f8bd4 bugfix: make compatible with testcase name is empty 2019-01-17 16:52:34 +08:00
debugtalk
dee4af3cf7 update unittest 2019-01-17 16:52:34 +08:00
debugtalk
f3db42f8a3 bugfix: override current teststep variables with former testcase output variables 2019-01-17 13:38:33 +08:00
debugtalk
5a9d09967d Merge pull request #475 from HttpRunner/2.0
Release 2.0.0
2.0 v2.0.0
2019-01-01 23:24:28 +08:00
debugtalk
c68e7be512 update omitting request & response length:
1, request: only omit upload file type;
2, response: keep raw content for extracting; omit in summary
2018-12-28 16:15:18 +08:00
debugtalk
c1048d01a8 bugfix: extend_variables 2018-12-28 14:35:20 +08:00
debugtalk
611ecb5d1a update report: add testcase stat to summary 2018-12-28 12:03:58 +08:00
debugtalk
b301c96e5d fix unittest 2018-12-27 17:12:47 +08:00
debugtalk
1b205dce31 remove unused files 2018-12-27 17:04:38 +08:00
debugtalk
52a30cad24 update prepare_locust_tests 2018-12-27 16:50:31 +08:00
debugtalk
d3ada11b3a update unittest for api base_url 2018-12-27 16:39:37 +08:00
debugtalk
73c9cc9c1d add unittest 2018-12-27 15:33:14 +08:00
debugtalk
1842560906 set default log level to INFO for HttpRunner class 2018-12-26 15:15:27 +08:00
debugtalk
edc627bff7 set log level and file path in HttpRunner class 2018-12-25 19:17:17 +08:00
debugtalk
32eae9390c fix: run api folder, each api should be encapsulated as individual testcase 2018-12-24 12:24:30 +08:00
debugtalk
b0155c8f71 fix unittest for Python 2.7/3.4/3.5 2018-12-22 23:26:50 +08:00
debugtalk
e507e69e89 fix locust in testsuite 2018-12-22 23:09:05 +08:00
debugtalk
2f445135e9 fix error when testcase parameters is {} 2018-12-21 19:07:26 +08:00
debugtalk
b6cf9649f2 add unittest for request with params 2018-12-21 18:54:05 +08:00
debugtalk
8b87cf3fb4 fix base_url priority: testcase config > testsuite config 2018-12-21 18:26:32 +08:00
debugtalk
2b66e8e15f fix os sep: make compatible with Windows/Linux 2018-12-20 23:03:41 +08:00
debugtalk
ef58073afc fix NameError 2018-12-20 22:42:42 +08:00
debugtalk
f18d892876 enhance report: display all 30X redirect request and response 2018-12-20 17:59:11 +08:00
debugtalk
78015e281d fix bug when nested function and variable exists in variables:
e.g.

"variables": {
    "host2": "https://httprunner.org",
    "num4": "${sum_two($num0, 5)}",
    "num3": "${sum_two($num2, 4)}",
    "num2": "${sum_two($num1, 3)}",
    "num1": "${sum_two(1, 2)}"
}
2018-12-19 19:36:42 +08:00
debugtalk
751a7469d8 fix RecursionError caused by locust 2018-12-18 16:21:24 +08:00
debugtalk
ab3fe57c68 fix unittest 31dcc40233 2018-12-17 23:08:35 +08:00
debugtalk
b87740a33c add unittest to verify cookie persistence 2018-12-17 22:47:30 +08:00
debugtalk
f527ded21b add unittest for request with cookies 2018-12-17 22:29:12 +08:00
debugtalk
aa6f523576 remove unused files 2018-12-17 21:45:33 +08:00
debugtalk
cb92572a37 remove builtin setup hook: prepare post data 2018-12-17 20:55:19 +08:00
debugtalk
4f609a686a update unittest 2018-12-17 20:38:55 +08:00
debugtalk
94464c323a update parameterize feature:
def get_user_agent():
        return ["iOS/10.1", "iOS/10.2"]

    def get_account_in_tuple():
        return [("user1", "111111"), ("user2", "222222")]
2018-12-17 20:19:01 +08:00
debugtalk
73ba469b42 update licence 2018-12-17 18:40:26 +08:00
debugtalk
f7d525cd64 fix unittest for Python 2.7/3.4/3.5 2018-12-16 00:48:59 +08:00
debugtalk
f0d6bda573 add unittest for running single api 2018-12-16 00:38:02 +08:00
debugtalk
5beb25470f add new feature: parameters 2018-12-14 23:29:17 +08:00
debugtalk
9f1fb62cd1 make parameters in testcase template compatible with mapping style:
new mapping style:
    parameters: {
        a: [1, 2, 3],
        b: "${P(f.csv)}"
    }

    Also, the former list style is still valid:
    extract: [
        {a: [1, 2, 3]},
        {b: "${P(f.csv)}"}
    ]
2018-12-13 17:52:46 +08:00
debugtalk
4a4198fd26 remove unused code 2018-12-13 16:58:04 +08:00
debugtalk
763d41617c omit request and response data length greater than 512 2018-12-13 16:19:17 +08:00
debugtalk
2d9695a1ec log exception request_type and name for locust stat 2018-12-11 21:48:14 +08:00
debugtalk
7d20f95068 refactor testcase layer mechanism:
1, autotest testsuite layer
2, performance test
2018-12-10 16:10:06 +08:00
debugtalk
4939f2cc0c fix #455: response time ascends while locusts running, with concurrency unchanged 2018-12-05 21:04:13 +08:00
debugtalk
de23957518 save api in individual file: each file is corresponding to one api definition 2018-12-04 22:38:41 +08:00