Commit 4432c839 by zhaihuitao

update

parent 149f4434
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="d0064643-2990-4ed3-bfb0-875849b30f4e" name="Default" comment="update"> <list default="true" id="d0064643-2990-4ed3-bfb0-875849b30f4e" name="Default" comment="update">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/testcase/game/game_event.py" beforeDir="false" afterPath="$PROJECT_DIR$/testcase/game/game_event.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/testcase/game/game_event.py" beforeDir="false" afterPath="$PROJECT_DIR$/testcase/game/game_event.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/testcase/run_all_cases.py" beforeDir="false" afterPath="$PROJECT_DIR$/testcase/run_all_cases.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/testcase/run_all_cases.py" beforeDir="false" afterPath="$PROJECT_DIR$/testcase/run_all_cases.py" afterDir="false" />
</list> </list>
...@@ -444,13 +445,6 @@ ...@@ -444,13 +445,6 @@
<updated>1596505503233</updated> <updated>1596505503233</updated>
<workItem from="1596786333197" duration="228000" /> <workItem from="1596786333197" duration="228000" />
</task> </task>
<task id="LOCAL-00036" summary="update">
<created>1598259165042</created>
<option name="number" value="00036" />
<option name="presentableId" value="LOCAL-00036" />
<option name="project" value="LOCAL" />
<updated>1598259165042</updated>
</task>
<task id="LOCAL-00037" summary="update"> <task id="LOCAL-00037" summary="update">
<created>1598324138933</created> <created>1598324138933</created>
<option name="number" value="00037" /> <option name="number" value="00037" />
...@@ -787,7 +781,14 @@ ...@@ -787,7 +781,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1608118787886</updated> <updated>1608118787886</updated>
</task> </task>
<option name="localTasksCounter" value="85" /> <task id="LOCAL-00085" summary="update">
<created>1608119153721</created>
<option name="number" value="00085" />
<option name="presentableId" value="LOCAL-00085" />
<option name="project" value="LOCAL" />
<updated>1608119153721</updated>
</task>
<option name="localTasksCounter" value="86" />
<servers /> <servers />
</component> </component>
<component name="TodoView"> <component name="TodoView">
...@@ -855,10 +856,10 @@ ...@@ -855,10 +856,10 @@
</state> </state>
<state x="149" y="25" width="982" height="728" key="SettingsEditor/0.0.1280.800@0.0.1280.800" timestamp="1608117997488" /> <state x="149" y="25" width="982" height="728" key="SettingsEditor/0.0.1280.800@0.0.1280.800" timestamp="1608117997488" />
<state x="149" y="25" width="982" height="716" key="SettingsEditor/0.25.1280.716@0.25.1280.716" timestamp="1606734406260" /> <state x="149" y="25" width="982" height="716" key="SettingsEditor/0.25.1280.716@0.25.1280.716" timestamp="1606734406260" />
<state x="240" y="106" key="Vcs.Push.Dialog.v2" timestamp="1608118815830"> <state x="240" y="106" key="Vcs.Push.Dialog.v2" timestamp="1608119155711">
<screen x="0" y="0" width="1280" height="800" /> <screen x="0" y="0" width="1280" height="800" />
</state> </state>
<state x="240" y="106" key="Vcs.Push.Dialog.v2/0.0.1280.800@0.0.1280.800" timestamp="1608118815830" /> <state x="240" y="106" key="Vcs.Push.Dialog.v2/0.0.1280.800@0.0.1280.800" timestamp="1608119155711" />
<state x="240" y="120" key="Vcs.Push.Dialog.v2/0.25.1280.716@0.25.1280.716" timestamp="1606734542701" /> <state x="240" y="120" key="Vcs.Push.Dialog.v2/0.25.1280.716@0.25.1280.716" timestamp="1606734542701" />
</component> </component>
</project> </project>
\ No newline at end of file
import os import os
import sys import sys
import importlib import importlib
importlib.reload(sys) importlib.reload(sys)
import time import time
import json import json
from testcase.game.game_param import allevent from testcase.game.game_param import allevent
'''curPath = os.path.abspath(os.path.dirname(__file__))
curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0] rootPath = os.path.split(curPath)[0]
sys.path.append(rootPath) sys.path.append(rootPath)'''
base_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(base_dir)
lst = [] lst = []
newList = ['195713813811'] newList = ['195713813811']
appkey = 'ff2c15d87db8fb16e6d0e82d8f2b4a6d' appkey = 'ff2c15d87db8fb16e6d0e82d8f2b4a6d'
event = 'exception' event = 'exception'
i = json.load(open('imei.json', 'r+'))['imei'] + 1 i = json.load(open('imei.json', 'r+'))['imei'] + 1
json.dump({"imei": i}, open('imei.json', 'w+'), sort_keys=True, indent=4) json.dump({"imei": i}, open('imei.json', 'w+'), sort_keys=True, indent=4)
print(i) print(i)
...@@ -29,9 +31,9 @@ print(i) ...@@ -29,9 +31,9 @@ print(i)
# # time.sleep(2) # # time.sleep(2)
# allevent().event_economy(i,appkey,c) # allevent().event_economy(i,appkey,c)
# for _ in range(1): # for _ in range(1):
# i = ''.join(str(random.choice(range(10))) for _ in range(12)) # i = ''.join(str(random.choice(range(10))) for _ in range(12))
# c = ''.join(str(random.choice(range(10))) for _ in range(12)) # c = ''.join(str(random.choice(range(10))) for _ in range(12))
allevent().event_install(i, appkey) allevent().event_install(i, appkey)
time.sleep(2) time.sleep(2)
allevent().event_register(i, appkey) allevent().event_register(i, appkey)
...@@ -44,6 +46,3 @@ time.sleep(2) ...@@ -44,6 +46,3 @@ time.sleep(2)
# allevent().event_economy(i,appkey,c) # allevent().event_economy(i,appkey,c)
lst.append(i) lst.append(i)
print(lst) print(lst)
...@@ -31,7 +31,6 @@ rootPath = os.path.split(curPath)[0] ...@@ -31,7 +31,6 @@ rootPath = os.path.split(curPath)[0]
sys.path.append(rootPath) sys.path.append(rootPath)
"""添加用例地址""" """添加用例地址"""
case_path = os.path.join(os.getcwd()) case_path = os.path.join(os.getcwd())
report_path = r"/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/report/result.html" report_path = r"/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/report/result.html"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment