Commit 59025f02 by zhaihuitao

update

parent ccfb5114
......@@ -21,6 +21,7 @@
<component name="ChangeListManager">
<list default="true" id="d0064643-2990-4ed3-bfb0-875849b30f4e" name="Default" comment="update">
<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" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
......@@ -414,11 +415,11 @@
<method v="2" />
</configuration>
<list>
<item itemvalue="Python.game_event" />
<item itemvalue="Python.params" />
<item itemvalue="Python.run_all_cases" />
<item itemvalue="Python tests.Nosetests for testcase.android_events._adclick.adclickTestCase.testadclick" />
<item itemvalue="Python tests.Nosetests for testcase.android_events._adshow.adshowTestCase.testadshow" />
<item itemvalue="Python.game_event" />
</list>
<recent_temporary>
<list>
......
......@@ -15,12 +15,6 @@ importlib.reload(sys)
import json
IMEI = json.load(open('imei.json', 'r+'))['imei'] + 1
json.dump({"imei": IMEI}, open('imei.json', 'w+'), sort_keys=True, indent=4)
print(IMEI)
"""解决在Jenkins控制台无法打印中文的问题"""
os.environ['NLS_LANG'] = 'Simplified Chinese_CHINA.ZHS16GBK'
......@@ -36,11 +30,12 @@ case_path = os.path.join(os.getcwd())
report_path = r"/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/report/result.html"
'''def all_case():
def all_case():
discover = unittest.defaultTestLoader.discover(case_path, "test*.py")
print(discover)
return discover
if __name__ == "__main__":
fp = open(report_path, 'wb')
runner = HTMLTestReportCN.HTMLTestRunner(
......@@ -52,7 +47,7 @@ if __name__ == "__main__":
runner.run(all_case())
"""在控制台打印日志"""
unittest.TextTestRunner(verbosity=0).run(all_case())
fp.close()'''
fp.close()
'''if __name__ == "__main__":
......
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