From c1267d79b6f1a777bfb50e1b28229f1aefa5d42c Mon Sep 17 00:00:00 2001 From: root <978663747@qq.com> Date: Thu, 16 Aug 2018 07:51:03 +0000 Subject: [PATCH 01/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8D=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eosapi/httpapi/http_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eosapi/httpapi/http_client.py b/eosapi/httpapi/http_client.py index 9626344..a82b0fa 100644 --- a/eosapi/httpapi/http_client.py +++ b/eosapi/httpapi/http_client.py @@ -73,7 +73,7 @@ def __init__(self, nodes, **kwargs): ''' self.nodes = cycle(self._nodes(nodes)) - self.node_url = 'http://127.0.0.1:8888' + self.node_url = ' ' self.next_node() def next_node(self): From 02fdbf00385901e45283cbc0788e340ac348b456 Mon Sep 17 00:00:00 2001 From: zhangshiqi <32862838+zsq978663747@users.noreply.github.com> Date: Fri, 17 Aug 2018 14:24:18 +0800 Subject: [PATCH 02/10] Update README_CN.md --- README_CN.md | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/README_CN.md b/README_CN.md index 54df2e1..722d37f 100644 --- a/README_CN.md +++ b/README_CN.md @@ -49,25 +49,20 @@ startmonster.py 会循环调用,并把 common_params 和 testcase指定的para ![image](./image/startmonster.png) -1.注意 - -在运行前需要打开eosapi/httpapi/http_client.py,在```class HttpClient(object):```中初始化的时候设置指定节点的url, -``` -if __name__ == '__main__': - h = HttpClient(["http://127.0.0.1:8888"]) -``` - -2.新增的测试用例,需要修改成自己的内容,account1 表示转账发起者,account2表示转账接收者和注册bp的账户,pubkey表示注册bp的公钥 +1.新增的测试用例,需要修改成自己的内容,creator 表示转账发起者,newaccount表示转账接收者和注册bp的账户,bppubkey表示注册bp的公钥 ``` { "casename": "Testcase 01_get_request", "pre_call": "echo 'This is called BEFORE cmdline call'", "post_call": "echo 'This is called AFTER cmdline call'", "stoponfail": "true", - "cmdline": "python3.6 testcases/01_get_request.py ", + "cmdline": "python3.6 testcases/01_get_request.py", "params": { "demo_param1": "demo_param1", - "demo_param2": 100 + "demo_param2": 100, + "creator": "zhangshiqi12", + "newaccount":"zhangshiqi11", + "bppubkey":"EOS8HrnMdHbgrchNFtV9ySE4uwCSnoix4f3JZnJcw9ryyydg2DSup" } } ``` From 7c40e7ded79e3480b0fd8cf941da81cfb4d9a34e Mon Sep 17 00:00:00 2001 From: root <978663747@qq.com> Date: Fri, 17 Aug 2018 08:01:55 +0000 Subject: [PATCH 03/10] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.json | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/config.json b/config.json index 863c6f9..c279db9 100644 --- a/config.json +++ b/config.json @@ -18,6 +18,20 @@ "demo_param1": "demo_param1", "demo_param2": 100 } + }, + { + "casename": "Testcase 01_get_request", + "pre_call": "echo 'This is called BEFORE cmdline call'", + "post_call": "echo 'This is called AFTER cmdline call'", + "stoponfail": "true", + "cmdline": "python3.6 testcases/01_get_request.py", + "params": { + "demo_param1": "demo_param1", + "demo_param2": 100, + "creator": "zhangshiqi12", + "newaccount":"zhangshiqi11", + "bppubkey":"EOS8HrnMdHbgrchNFtV9ySE4uwCSnoix4f3JZnJcw9ryyydg2DSup" + } } ] -} \ No newline at end of file +} From 0a9b9892890ca560b476598d1fd33636f41a9fd7 Mon Sep 17 00:00:00 2001 From: root <978663747@qq.com> Date: Fri, 17 Aug 2018 08:20:40 +0000 Subject: [PATCH 04/10] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- startmonster.py | 2 + testcases/01_get_request.py | 189 ++++++++++++++++++++++++++++++++++++ 2 files changed, 191 insertions(+) create mode 100644 testcases/01_get_request.py diff --git a/startmonster.py b/startmonster.py index 059a50f..cab734b 100755 --- a/startmonster.py +++ b/startmonster.py @@ -63,6 +63,8 @@ def run_testcase(case_dict, common_params): fp.write(json.dumps(params, indent=True, sort_keys=True, ensure_ascii=False)) cmdline = case_dict['cmdline'] + " " + params_file + if case_dict['casename'] == 'Testcase 01_get_request': + cmdline = case_dict['cmdline'] + " " + case_dict['params']['creator'] + " "+ case_dict['params']['newaccount'] + " " + case_dict['params']['bppubkey'] + " " + params_file logger.info('Going to execute cmdline: {} {}'.format(case_dict['casename'], cmdline)) pmsg = subprocess.check_output(cmdline, stderr=subprocess.STDOUT, shell=True) logger.info(pmsg) diff --git a/testcases/01_get_request.py b/testcases/01_get_request.py new file mode 100644 index 0000000..75be86a --- /dev/null +++ b/testcases/01_get_request.py @@ -0,0 +1,189 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +from __future__ import unicode_literals +import os +import sys +import time +import json +import string +import requests +import argparse +import random +from subprocess import Popen, PIPE +import traceback +import multiprocessing +from decimal import Decimal, getcontext + + +#creator = 'zhangshiqi12' +creator = sys.argv[1] +def account_random(): + seed = "12345abcdefghijklmnopqrstuvwxyz" + sa = [] + for i in range(12): + sa.append(random.choice(seed)) + res = ''.join(sa) + return res + +#get info +def get_info(): + cmdline = "cleos get info" + process = Popen(cmdline, stdout=PIPE, stderr=PIPE,shell=True) + stdout, stderr = process.communicate() + if stdout: + param = json.loads(stdout) + print('param:',param) + if param['chain_id'] == '5fff1dae8dc8e2fc4d5b23b2c7665c97f9e9d8edf2b6485a86ba311c25639191': + print(f'chain_id is right') + return True + else: + print(f'chain_id is wrong') + return False + if stderr: + print(f'{cmdline} =========================== fail') + print(stderr) + return False + +#transfer +def transfer(): + account1_balance1 = 0 + account1_balance2 = 0 + account2_balance1 = 0 + account2_balance2 = 0 + #创建一个账户 + #newaccount = account_random() + newaccount = 'zhangshiqi11' + print('creator:',creator) + print('new account :',newaccount) + #cmdline = f'cleos system newaccount --stake-net \"5 EOS\" --stake-cpu \"5 EOS\" --buy-ram \"2 EOS\" {creator} {newaccount} ' + #process = Popen(cmdline, stdout=PIPE, stderr=PIPE,shell=True) + #time.sleep(1) + #cmdlinel = f"cleos get account {newaccount}" + #process = Popen(cmdlinel, stdout=PIPE, stderr=PIPE,shell=True) + #stdout, stderr = process.communicate() + #if stdout: + # print(f'{cmdline} =========================== ok') + #if stderr: + # print(f'{cmdline} =========================== fail') + # print(stderr) + + #获取转账钱的=余额 + cmdline = f"cleos get currency balance eosio.token {creator}" + process = Popen(cmdline, stdout=PIPE, stderr=PIPE,shell=True) + stdout, stderr = process.communicate() + if stdout: + print(f'{cmdline} =========================== ok') + account1_balance1 = stdout + print("account1_balance1 ==",account1_balance1) + if stderr: + print(f'{cmdline} =========================== fail') + print(stderr) + + cmdline = f"cleos get currency balance eosio.token {newaccount} " + process = Popen(cmdline, stdout=PIPE, stderr=PIPE,shell=True) + stdout, stderr = process.communicate() + if stdout: + print(f'{cmdline} =========================== ok') + account2_balance1 = stdout + print("account2_balance1 ==",account2_balance1) + if stderr: + print(f'{cmdline} =========================== fail') + print(stderr) + #执行转账 + cmdline2 = f'cleos transfer {creator} {newaccount} \"2.0000 EOS\" ' + process = Popen(cmdline2, stdout=PIPE, stderr=PIPE,shell=True) + #stdout, stderr = process.communicate() + #if stdout: + # print(f'{cmdline2} =========================== ok') + #if stderr: + # print(f'{cmdline2} =========================== fail') + # print(stderr) + time.sleep(3) + #查看转账后的余额 + cmdline = f"cleos get currency balance eosio.token {creator} " + process = Popen(cmdline, stdout=PIPE, stderr=PIPE,shell=True) + stdout, stderr = process.communicate() + if stdout: + account1_balance2 = stdout + print("account1_balance1 ==",account1_balance2) + if stderr: + print(f'{cmdline} =========================== fail') + print(stderr) + + cmdline = f"cleos get currency balance eosio.token {newaccount}" + process = Popen(cmdline, stdout=PIPE, stderr=PIPE,shell=True) + stdout, stderr = process.communicate() + if stdout: + account2_balance2 = stdout + print("account2_balance2 ==",account2_balance2) + if stderr: + print(f'{cmdline} =========================== fail') + print(stderr) + #判断是否与预期相等 + if (float(account1_balance1[:-4])- float(account1_balance2[:-4])) == (float(account2_balance2[:-4]) - float(account2_balance1[:-4])): + print(f'{cmdline2} =========================== ok') + else: + print(f'{cmdline2} =========================== fail') + +#system contract +def system_contract(): + #reprod + cmdline = "cleos system regproducer zhangshiqi11 EOS5NKY5vhyqWNgKeNbiUx2iC6cEnooiQsYQMjCmFFMoVLUExGHba https://www.eos.store 900" + process = Popen(cmdline, stdout=PIPE, stderr=PIPE,shell=True) + time.sleep(2) + cmdline1 = "cleos get table eosio eosio producers -l 100" + process = Popen(cmdline1, stdout=PIPE, stderr=PIPE,shell=True) + stdout, stderr = process.communicate() + if stdout: + result = json.loads(stdout) + pro = result['rows'] + for i in pro: + if i['owner'] == 'zhangshiqi11': + print(f'{cmdline} =========================== ok') + res = True + if stderr: + print(f'{cmdline} =========================== fail') + print(stderr) + res = False + + cmdline = "cleos system unregprod zhangshiqi11" + process = Popen(cmdline, stdout=PIPE, stderr=PIPE,shell=True) + time.sleep(2) + cmdline1 = "cleos get table eosio eosio producers -l 100" + process = Popen(cmdline1, stdout=PIPE, stderr=PIPE,shell=True) + stdout, stderr = process.communicate() + if stdout: + result = json.loads(stdout) + pro = result['rows'] + for i in pro: + if i['owner'] == 'zhangshiqi11': + print(f'{cmdline} =========================== ok') + res = True + if stderr: + print(f'{cmdline} =========================== fail') + print(stderr) + res = False + return res + +def main(): + #if len(sys.argv)<1: + # print('ERROR:Please supply the param file') + # return False + #param_dict, param_str = None, '' + #with open(sys.argv[1], 'r') as fp: + # param_str = fp.read() + # param_dict = json.loads(param_str) + #if not param_dict: + # print('ERROR:param file can NOT be empty') + # return False + res = get_info() + if not res: + return False + #system_contract() + #transfer() + #print('Get params:', sys.argv[0], param_str) + return True + +if __name__ == '__main__': + sys.exit( 0 if main() else 1) From 1bfc65c881ecfbe76e9897b1e154232ff93a5ac9 Mon Sep 17 00:00:00 2001 From: root <978663747@qq.com> Date: Fri, 17 Aug 2018 08:26:18 +0000 Subject: [PATCH 05/10] =?UTF-8?q?=E5=A2=9E=E5=8A=A0chain=5Fid=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- startmonster.py | 2 +- testcases/01_get_request.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/startmonster.py b/startmonster.py index cab734b..5cad787 100755 --- a/startmonster.py +++ b/startmonster.py @@ -64,7 +64,7 @@ def run_testcase(case_dict, common_params): cmdline = case_dict['cmdline'] + " " + params_file if case_dict['casename'] == 'Testcase 01_get_request': - cmdline = case_dict['cmdline'] + " " + case_dict['params']['creator'] + " "+ case_dict['params']['newaccount'] + " " + case_dict['params']['bppubkey'] + " " + params_file + cmdline = case_dict['cmdline'] + " " + case_dict['params']['creator'] + " "+ case_dict['params']['newaccount'] + " " + case_dict['params']['bppubkey'] + " " +case_dict['params']['chain_id']+ " " + params_file logger.info('Going to execute cmdline: {} {}'.format(case_dict['casename'], cmdline)) pmsg = subprocess.check_output(cmdline, stderr=subprocess.STDOUT, shell=True) logger.info(pmsg) diff --git a/testcases/01_get_request.py b/testcases/01_get_request.py index 75be86a..4869911 100644 --- a/testcases/01_get_request.py +++ b/testcases/01_get_request.py @@ -18,6 +18,7 @@ #creator = 'zhangshiqi12' creator = sys.argv[1] +chain_id = sys.argv[4] def account_random(): seed = "12345abcdefghijklmnopqrstuvwxyz" sa = [] @@ -34,7 +35,7 @@ def get_info(): if stdout: param = json.loads(stdout) print('param:',param) - if param['chain_id'] == '5fff1dae8dc8e2fc4d5b23b2c7665c97f9e9d8edf2b6485a86ba311c25639191': + if param['chain_id'] == chain_id: print(f'chain_id is right') return True else: From 1613bc28ea0dc0dadb418743b481f2e511392b13 Mon Sep 17 00:00:00 2001 From: root <978663747@qq.com> Date: Fri, 17 Aug 2018 08:28:12 +0000 Subject: [PATCH 06/10] =?UTF-8?q?=E5=A2=9E=E5=8A=A0chain=5Fid=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.json b/config.json index c279db9..ad352b0 100644 --- a/config.json +++ b/config.json @@ -30,7 +30,8 @@ "demo_param2": 100, "creator": "zhangshiqi12", "newaccount":"zhangshiqi11", - "bppubkey":"EOS8HrnMdHbgrchNFtV9ySE4uwCSnoix4f3JZnJcw9ryyydg2DSup" + "bppubkey":"EOS8HrnMdHbgrchNFtV9ySE4uwCSnoix4f3JZnJcw9ryyydg2DSup", + "chain_id":"5fff1dae8dc8e2fc4d5b23b2c7665c97f9e9d8edf2b6485a86ba311c25639191" } } ] From d055ca62572f397523e542521998f1a003bcc946 Mon Sep 17 00:00:00 2001 From: root <978663747@qq.com> Date: Fri, 17 Aug 2018 08:57:29 +0000 Subject: [PATCH 07/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E7=9A=84=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- startmonster.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/startmonster.py b/startmonster.py index 5cad787..b0f33c2 100755 --- a/startmonster.py +++ b/startmonster.py @@ -62,9 +62,10 @@ def run_testcase(case_dict, common_params): with open(params_file, "w") as fp: fp.write(json.dumps(params, indent=True, sort_keys=True, ensure_ascii=False)) - cmdline = case_dict['cmdline'] + " " + params_file - if case_dict['casename'] == 'Testcase 01_get_request': - cmdline = case_dict['cmdline'] + " " + case_dict['params']['creator'] + " "+ case_dict['params']['newaccount'] + " " + case_dict['params']['bppubkey'] + " " +case_dict['params']['chain_id']+ " " + params_file + if case_dict['casename'] == 'Testcase Demo': + cmdline = case_dict['cmdline'] + " " + params_file + elif case_dict['casename'] == 'Testcase 01_get_request': + cmdline = case_dict['cmdline'] + " " + params['creator'] + " "+ params['newaccount'] + " " + params['bppubkey'] + " " + params['chain_id']+ " " + params_file logger.info('Going to execute cmdline: {} {}'.format(case_dict['casename'], cmdline)) pmsg = subprocess.check_output(cmdline, stderr=subprocess.STDOUT, shell=True) logger.info(pmsg) From 8ab95df184cd556fab71f4f4d108f88a7f4e2485 Mon Sep 17 00:00:00 2001 From: root <978663747@qq.com> Date: Mon, 20 Aug 2018 09:16:24 +0000 Subject: [PATCH 08/10] =?UTF-8?q?=E4=BB=A5=E6=96=87=E4=BB=B6=E4=BC=A0?= =?UTF-8?q?=E5=85=A5=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.json | 2 -- startmonster.py | 5 +--- testcases/01_get_request.py | 58 ++++++++++++++++++------------------- 3 files changed, 29 insertions(+), 36 deletions(-) diff --git a/config.json b/config.json index ad352b0..370dc1a 100644 --- a/config.json +++ b/config.json @@ -26,8 +26,6 @@ "stoponfail": "true", "cmdline": "python3.6 testcases/01_get_request.py", "params": { - "demo_param1": "demo_param1", - "demo_param2": 100, "creator": "zhangshiqi12", "newaccount":"zhangshiqi11", "bppubkey":"EOS8HrnMdHbgrchNFtV9ySE4uwCSnoix4f3JZnJcw9ryyydg2DSup", diff --git a/startmonster.py b/startmonster.py index b0f33c2..059a50f 100755 --- a/startmonster.py +++ b/startmonster.py @@ -62,10 +62,7 @@ def run_testcase(case_dict, common_params): with open(params_file, "w") as fp: fp.write(json.dumps(params, indent=True, sort_keys=True, ensure_ascii=False)) - if case_dict['casename'] == 'Testcase Demo': - cmdline = case_dict['cmdline'] + " " + params_file - elif case_dict['casename'] == 'Testcase 01_get_request': - cmdline = case_dict['cmdline'] + " " + params['creator'] + " "+ params['newaccount'] + " " + params['bppubkey'] + " " + params['chain_id']+ " " + params_file + cmdline = case_dict['cmdline'] + " " + params_file logger.info('Going to execute cmdline: {} {}'.format(case_dict['casename'], cmdline)) pmsg = subprocess.check_output(cmdline, stderr=subprocess.STDOUT, shell=True) logger.info(pmsg) diff --git a/testcases/01_get_request.py b/testcases/01_get_request.py index 4869911..c4d4d0a 100644 --- a/testcases/01_get_request.py +++ b/testcases/01_get_request.py @@ -17,8 +17,8 @@ #creator = 'zhangshiqi12' -creator = sys.argv[1] -chain_id = sys.argv[4] +#creator = sys.argv[1] +#chain_id = sys.argv[4] def account_random(): seed = "12345abcdefghijklmnopqrstuvwxyz" sa = [] @@ -28,7 +28,7 @@ def account_random(): return res #get info -def get_info(): +def get_info(chain_id): cmdline = "cleos get info" process = Popen(cmdline, stdout=PIPE, stderr=PIPE,shell=True) stdout, stderr = process.communicate() @@ -47,14 +47,15 @@ def get_info(): return False #transfer -def transfer(): +def transfer(params): account1_balance1 = 0 account1_balance2 = 0 account2_balance1 = 0 account2_balance2 = 0 #创建一个账户 #newaccount = account_random() - newaccount = 'zhangshiqi11' + creator = params["creator"] + newaccount = params["newaccount"] print('creator:',creator) print('new account :',newaccount) #cmdline = f'cleos system newaccount --stake-net \"5 EOS\" --stake-cpu \"5 EOS\" --buy-ram \"2 EOS\" {creator} {newaccount} ' @@ -94,12 +95,7 @@ def transfer(): #执行转账 cmdline2 = f'cleos transfer {creator} {newaccount} \"2.0000 EOS\" ' process = Popen(cmdline2, stdout=PIPE, stderr=PIPE,shell=True) - #stdout, stderr = process.communicate() - #if stdout: - # print(f'{cmdline2} =========================== ok') - #if stderr: - # print(f'{cmdline2} =========================== fail') - # print(stderr) + time.sleep(3) #查看转账后的余额 cmdline = f"cleos get currency balance eosio.token {creator} " @@ -128,9 +124,11 @@ def transfer(): print(f'{cmdline2} =========================== fail') #system contract -def system_contract(): +def system_contract(params): #reprod - cmdline = "cleos system regproducer zhangshiqi11 EOS5NKY5vhyqWNgKeNbiUx2iC6cEnooiQsYQMjCmFFMoVLUExGHba https://www.eos.store 900" + newaccount= params["newaccount"] + bppubkey = params["bppubkey"] + cmdline = f"cleos system regproducer {newaccount} {bppubkey} https://www.xxx.com 900" process = Popen(cmdline, stdout=PIPE, stderr=PIPE,shell=True) time.sleep(2) cmdline1 = "cleos get table eosio eosio producers -l 100" @@ -140,7 +138,7 @@ def system_contract(): result = json.loads(stdout) pro = result['rows'] for i in pro: - if i['owner'] == 'zhangshiqi11': + if i['owner'] == newaccount: print(f'{cmdline} =========================== ok') res = True if stderr: @@ -148,7 +146,7 @@ def system_contract(): print(stderr) res = False - cmdline = "cleos system unregprod zhangshiqi11" + cmdline = f"cleos system unregprod {newaccount}" process = Popen(cmdline, stdout=PIPE, stderr=PIPE,shell=True) time.sleep(2) cmdline1 = "cleos get table eosio eosio producers -l 100" @@ -158,7 +156,7 @@ def system_contract(): result = json.loads(stdout) pro = result['rows'] for i in pro: - if i['owner'] == 'zhangshiqi11': + if i['owner'] == newaccount: print(f'{cmdline} =========================== ok') res = True if stderr: @@ -168,22 +166,22 @@ def system_contract(): return res def main(): - #if len(sys.argv)<1: - # print('ERROR:Please supply the param file') - # return False - #param_dict, param_str = None, '' - #with open(sys.argv[1], 'r') as fp: - # param_str = fp.read() - # param_dict = json.loads(param_str) - #if not param_dict: - # print('ERROR:param file can NOT be empty') - # return False - res = get_info() + if len(sys.argv)<1: + print('ERROR:Please supply the param file') + return False + param_dict, param_str = None, '' + with open(sys.argv[1], 'r') as fp: + param_str = fp.read() + param_dict = json.loads(param_str) + if not param_dict: + print('ERROR:param file can NOT be empty') + return False + print('Get params:', sys.argv[0], param_str) + res = get_info(param_dict["chain_id"]) if not res: return False - #system_contract() - #transfer() - #print('Get params:', sys.argv[0], param_str) + system_contract(param_dict) + transfer(param_dict) return True if __name__ == '__main__': From 079db6b547e251e3a42582ad6ae76fc8f9049869 Mon Sep 17 00:00:00 2001 From: root <978663747@qq.com> Date: Tue, 21 Aug 2018 06:48:24 +0000 Subject: [PATCH 09/10] =?UTF-8?q?=E5=A2=9E=E5=8A=A0testcase=E7=9A=84?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.json b/config.json index 370dc1a..12b0c5b 100644 --- a/config.json +++ b/config.json @@ -21,8 +21,8 @@ }, { "casename": "Testcase 01_get_request", - "pre_call": "echo 'This is called BEFORE cmdline call'", - "post_call": "echo 'This is called AFTER cmdline call'", + "pre_call": "echo 'This is called BEFORE system_test call'", + "post_call": "echo 'This is called AFTER system_test call'", "stoponfail": "true", "cmdline": "python3.6 testcases/01_get_request.py", "params": { From b1ff612cf815a2d640d4b2b78fbe7bf0e4e00743 Mon Sep 17 00:00:00 2001 From: root <978663747@qq.com> Date: Tue, 21 Aug 2018 06:52:35 +0000 Subject: [PATCH 10/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9python3-->python3.6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0a50301..5969286 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Collection of EOSIO function testcase scripts from the community. Main functionatily of this project is to test the function of the eosio-mainnet conveniently. -We choose to use **Python3** for future. +We choose to use **Python3.6** for future. [点击查看中文](README_CN.md) @@ -48,7 +48,7 @@ Steps: 3. run startmoster.py ``` - python3 ./startmoster.py + python3.6 ./startmoster.py ``` ![image](./image/startmonster.png)