Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xm-uitest-sow
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiamai-test
xm-uitest-sow
Commits
b3b2b2f5
Commit
b3b2b2f5
authored
Jul 26, 2021
by
mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注入localStorage方法登陆
parent
0c59b700
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/framework/common.py
+2
-2
No files found.
src/framework/common.py
View file @
b3b2b2f5
...
@@ -103,7 +103,7 @@ def get_token(user):
...
@@ -103,7 +103,7 @@ def get_token(user):
# 创建一个直播课,返回课程id和课程名称
# 创建一个直播课,返回课程id和课程名称
def
create_a_live
(
start_time
,
start_time2
=
None
,
user
=
"lgw-b"
):
def
create_a_live
(
start_time
,
start_time2
=
None
,
user
=
"lgw-b"
):
xmtoken
=
get_token
(
user
=
user
)
xmtoken
=
get_token
(
user
=
user
)
[
"xmToken"
]
basic_imforation
=
readConfig
.
test_header
(
header_name
=
user
)
basic_imforation
=
readConfig
.
test_header
(
header_name
=
user
)
userId
=
basic_imforation
[
'userId'
]
userId
=
basic_imforation
[
'userId'
]
storeId
=
basic_imforation
[
'storeId'
]
storeId
=
basic_imforation
[
'storeId'
]
...
@@ -112,7 +112,7 @@ def create_a_live(start_time, start_time2=None, user="lgw-b"):
...
@@ -112,7 +112,7 @@ def create_a_live(start_time, start_time2=None, user="lgw-b"):
while
xmtoken
==
"登录过频繁"
:
while
xmtoken
==
"登录过频繁"
:
# 休息15s是因为可能会登录频繁
# 休息15s是因为可能会登录频繁
time
.
sleep
(
15
)
time
.
sleep
(
15
)
xmtoken
=
get_token
()
xmtoken
=
get_token
()
[
"xmToken"
]
print
(
xmtoken
)
print
(
xmtoken
)
dt
=
year_to_day
()
+
' 00:00:00'
dt
=
year_to_day
()
+
' 00:00:00'
calendarTime
=
int
(
time
.
mktime
(
time
.
strptime
(
dt
,
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
)))
*
1000
calendarTime
=
int
(
time
.
mktime
(
time
.
strptime
(
dt
,
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
)))
*
1000
...
...
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