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
59a4c502
Commit
59a4c502
authored
Jul 21, 2021
by
linguangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
review
parent
bd45c632
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
src/framework/common.py
+1
-1
src/pageobject/basepage.py
+1
-1
src/testcase/test_LoginPage.py
+3
-2
No files found.
src/framework/common.py
View file @
59a4c502
...
...
@@ -109,7 +109,7 @@ def create_a_live(start_time, start_time2=None, user="lgw-b"):
storeUserId
=
basic_imforation
[
'storeUserId'
]
enterpriseId
=
basic_imforation
[
'enterpriseId'
]
while
xmtoken
==
"登录过频繁"
:
# 休息5s是因为可能会登录频繁
# 休息
1
5s是因为可能会登录频繁
time
.
sleep
(
15
)
xmtoken
=
get_token
()
print
(
xmtoken
)
...
...
src/pageobject/basepage.py
View file @
59a4c502
...
...
@@ -201,7 +201,7 @@ class Page(object):
# login_page.sleep(2)
login_page
.
input_text
(
account_input
,
readConfig
.
test_header
(
user
)[
'username'
])
login_page
.
input_text
(
password_input
,
readConfig
.
test_header
(
user
)[
'
username
'
])
login_page
.
input_text
(
password_input
,
readConfig
.
test_header
(
user
)[
'
password
'
])
login_page
.
click
(
login_button
)
login_page
.
sleep
(
2
)
login_page
.
click_text
(
"取 消"
)
...
...
src/testcase/test_LoginPage.py
View file @
59a4c502
...
...
@@ -10,9 +10,10 @@ from config import readConfig
class
TestLoginPage
(
object
):
@pytest.fixture
(
scope
=
"function"
)
def
before_test_case
(
self
):
self
.
user
=
"lgw-b"
self
.
logger
=
Logger
(
'login page'
)
.
getlog
()
self
.
account
=
readConfig
.
test_
account
()
self
.
password
=
readConfig
.
test_
password
()
self
.
account
=
readConfig
.
test_
header
(
self
.
user
)[
'username'
]
self
.
password
=
readConfig
.
test_
header
(
self
.
user
)[
'password'
]
cloud_class_location
=
readConfig
.
test_location
()
self
.
env
=
readConfig
.
get_env
()
# 指定客户端的本地路径,在/config/config.ini配置
...
...
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