Commit Graph

459 Commits

Author SHA1 Message Date
debugtalk
3b60fb8985 fix: CSV relative path detection 2019-03-07 17:47:23 +08:00
debugtalk
7e84c01b07 bump to 2.0.5 2019-03-04 19:37:20 +08:00
debugtalk
bfc15592f1 fix: xss in response json 2019-03-04 19:34:49 +08:00
debugtalk
d94a682cb0 Merge branch 'master' into save-variables-output 2019-03-04 19:26:05 +08:00
debugtalk
36c2186a20 implement method to get variables and output 2019-03-01 10:32:58 +08:00
debugtalk
e21a3a1b78 Release 2.0.4 2019-02-28 15:56:46 +08:00
debugtalk
2f0f59372d Merge branch 'master' into save-variables-output 2019-02-28 15:51:25 +08:00
debugtalk
b5ec47c068 Merge branch 'master' into bugfix/random-run-many-times 2019-02-28 15:33:27 +08:00
debugtalk
3cbeb0eb8b Merge branch 'master' into save-variables-output 2019-02-28 15:32:34 +08:00
debugtalk
c8428ea58e bugfix verify priority: nested testcase config > testcase config 2019-02-28 15:22:08 +08:00
hluguoj
fb091079a4 bugfix random function in config variables run many times 2019-02-27 21:21:11 +08:00
debugtalk
29faf4a5ea dump loaded tests when running tests_mapping directly 2019-02-27 15:30:36 +08:00
debugtalk
66a4e62d55 bump to 2.0.3 2019-02-24 20:05:08 +08:00
debugtalk
f7cc2f8081 bugfix verify priority: teststep > config 2019-02-24 19:37:59 +08:00
debugtalk
469cc17984 bugfix: Chinese charactor in log_file encoding error in Windows 2019-02-20 11:57:18 +08:00
debugtalk
275e69b968 bugfix: dump file with Chinese charactor in Python 3 2019-02-20 11:53:04 +08:00
debugtalk
e045863796 display result from hook functions 2019-01-25 18:03:46 +08:00
debugtalk
578fe1569d each teststeps in one testcase share the same session. 2019-01-25 14:08:53 +08:00
debugtalk
646dccea96 fix duplicate API definition output 2019-01-25 12:18:07 +08:00
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
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
f3db42f8a3 bugfix: override current teststep variables with former testcase output variables 2019-01-17 13:38:33 +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
52a30cad24 update prepare_locust_tests 2018-12-27 16:50:31 +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
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
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
cb92572a37 remove builtin setup hook: prepare post data 2018-12-17 20:55:19 +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
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
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