Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
interfaceTest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
zhaihuitao
interfaceTest
Commits
149f4434
Commit
149f4434
authored
Dec 16, 2020
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
7d349196
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
17 deletions
+22
-17
workspace.xml
.idea/workspace.xml
+12
-10
game_event.py
testcase/game/game_event.py
+5
-5
run_all_cases.py
testcase/run_all_cases.py
+5
-2
No files found.
.idea/workspace.xml
View file @
149f4434
...
...
@@ -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"
/>
...
...
@@ -443,13 +444,6 @@
<updated>
1596505503233
</updated>
<workItem
from=
"1596786333197"
duration=
"228000"
/>
</task>
<task
id=
"LOCAL-00035"
summary=
"add adshow enevt"
>
<created>
1598066542919
</created>
<option
name=
"number"
value=
"00035"
/>
<option
name=
"presentableId"
value=
"LOCAL-00035"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1598066542919
</updated>
</task>
<task
id=
"LOCAL-00036"
summary=
"update"
>
<created>
1598259165042
</created>
<option
name=
"number"
value=
"00036"
/>
...
...
@@ -786,7 +780,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1608118605393
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"84"
/>
<task
id=
"LOCAL-00084"
summary=
"update"
>
<created>
1608118787886
</created>
<option
name=
"number"
value=
"00084"
/>
<option
name=
"presentableId"
value=
"LOCAL-00084"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1608118787886
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"85"
/>
<servers
/>
</component>
<component
name=
"TodoView"
>
...
...
@@ -854,10 +855,10 @@
</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=
"716"
key=
"SettingsEditor/0.25.1280.716@0.25.1280.716"
timestamp=
"1606734406260"
/>
<state
x=
"240"
y=
"106"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"1608118
607305
"
>
<state
x=
"240"
y=
"106"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"1608118
815830
"
>
<screen
x=
"0"
y=
"0"
width=
"1280"
height=
"800"
/>
</state>
<state
x=
"240"
y=
"106"
key=
"Vcs.Push.Dialog.v2/0.0.1280.800@0.0.1280.800"
timestamp=
"1608118
607305
"
/>
<state
x=
"240"
y=
"106"
key=
"Vcs.Push.Dialog.v2/0.0.1280.800@0.0.1280.800"
timestamp=
"1608118
815830
"
/>
<state
x=
"240"
y=
"120"
key=
"Vcs.Push.Dialog.v2/0.25.1280.716@0.25.1280.716"
timestamp=
"1606734542701"
/>
</component>
</project>
\ No newline at end of file
testcase/game/game_event.py
View file @
149f4434
import
struct
import
socket
import
random
import
time
import
json
import
os
import
sys
import
importlib
importlib
.
reload
(
sys
)
import
time
import
json
from
testcase.game.game_param
import
allevent
...
...
testcase/run_all_cases.py
View file @
149f4434
...
...
@@ -20,6 +20,7 @@ json.dump({"imei": IMEI}, open('imei.json', 'w+'), sort_keys=True, indent=4)
print
(
IMEI
)
"""解决在Jenkins控制台无法打印中文的问题"""
os
.
environ
[
'NLS_LANG'
]
=
'Simplified Chinese_CHINA.ZHS16GBK'
...
...
@@ -29,12 +30,14 @@ curPath = os.path.abspath(os.path.dirname(__file__))
rootPath
=
os
.
path
.
split
(
curPath
)[
0
]
sys
.
path
.
append
(
rootPath
)
"""添加用例地址"""
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
...
...
@@ -50,7 +53,7 @@ if __name__ == "__main__":
runner.run(all_case())
"""在控制台打印日志"""
unittest.TextTestRunner(verbosity=0).run(all_case())
fp
.
close
()
fp.close()
'''
'''if __name__ == "__main__":
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment