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
f87b2d62
Commit
f87b2d62
authored
Jun 18, 2021
by
linguangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改店铺验证元素
parent
4d51708b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
30 deletions
+44
-30
.idea/workspace.xml
+43
-29
src/pageobject/loginpage.py
+1
-1
No files found.
.idea/workspace.xml
View file @
f87b2d62
...
...
@@ -4,15 +4,9 @@
<option
name=
"autoReloadType"
value=
"SELECTIVE"
/>
</component>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"f091fe1a-072c-4ac2-a8ca-080be739597a"
name=
"Default Changelist"
comment=
"同步"
>
<change
afterPath=
"$PROJECT_DIR$/.idea/inspectionProfiles/Project_Default.xml"
afterDir=
"false"
/>
<list
default=
"true"
id=
"f091fe1a-072c-4ac2-a8ca-080be739597a"
name=
"Default Changelist"
comment=
"登录-开课-结束课程-关闭客户端"
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/main.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/main.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/requirements.txt"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/requirements.txt"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/framework/common.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/framework/common.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/pageobject/basepage.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/pageobject/basepage.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/pageobject/mainpage.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/pageobject/mainpage.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/testcase/testLoginPage.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/testcase/testLoginPage.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/pageobject/loginpage.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/pageobject/loginpage.py"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
@@ -106,7 +100,7 @@
<property
name=
"node.js.selected.package.tslint"
value=
"(autodetect)"
/>
<property
name=
"nodejs_interpreter_path.stuck_in_default_project"
value=
"undefined stuck path"
/>
<property
name=
"nodejs_npm_path_reset_for_default_project"
value=
"true"
/>
<property
name=
"settings.editor.selected.configurable"
value=
"
project.propVCSSupport.Mappings
"
/>
<property
name=
"settings.editor.selected.configurable"
value=
"
vcs.Git
"
/>
</component>
<component
name=
"RecentsManager"
>
<key
name=
"CopyFile.RECENT_KEYS"
>
...
...
@@ -117,24 +111,29 @@
<recent
name=
"C:\Users\Administrator\PycharmProjects\xm-uitest-live"
/>
</key>
</component>
<component
name=
"RunManager"
selected=
"Python
tests.pytest for testMainPage.TestMainPage.test_2_StartLive
"
>
<configuration
name=
"
pytest for testMainPage.TestMainPage"
type=
"tests"
factoryName=
"py.test
"
temporary=
"true"
nameIsGenerated=
"true"
>
<component
name=
"RunManager"
selected=
"Python
.main
"
>
<configuration
name=
"
main"
type=
"PythonConfigurationType"
factoryName=
"Python
"
temporary=
"true"
nameIsGenerated=
"true"
>
<module
name=
"xm-uitest-live"
/>
<option
name=
"INTERPRETER_OPTIONS"
value=
""
/>
<option
name=
"PARENT_ENVS"
value=
"true"
/>
<envs>
<env
name=
"PYTHONUNBUFFERED"
value=
"1"
/>
</envs>
<option
name=
"SDK_HOME"
value=
""
/>
<option
name=
"WORKING_DIRECTORY"
value=
"$PROJECT_DIR$
/src/testcase
"
/>
<option
name=
"WORKING_DIRECTORY"
value=
"$PROJECT_DIR$"
/>
<option
name=
"IS_MODULE_SDK"
value=
"true"
/>
<option
name=
"ADD_CONTENT_ROOTS"
value=
"true"
/>
<option
name=
"ADD_SOURCE_ROOTS"
value=
"true"
/>
<option
name=
"_new_keywords"
value=
""""
/>
<option
name=
"_new_parameters"
value=
""""
/>
<option
name=
"_new_additionalArguments"
value=
""""
/>
<option
name=
"_new_target"
value=
""testMainPage.TestMainPage""
/>
<option
name=
"_new_targetType"
value=
""PYTHON""
/>
<option
name=
"SCRIPT_NAME"
value=
"$PROJECT_DIR$/main.py"
/>
<option
name=
"PARAMETERS"
value=
""
/>
<option
name=
"SHOW_COMMAND_LINE"
value=
"false"
/>
<option
name=
"EMULATE_TERMINAL"
value=
"false"
/>
<option
name=
"MODULE_MODE"
value=
"false"
/>
<option
name=
"REDIRECT_INPUT"
value=
"false"
/>
<option
name=
"INPUT_FILE"
value=
""
/>
<method
v=
"2"
/>
</configuration>
<configuration
name=
"pytest for testMainPage.TestMainPage
.test_1_UnStartLive
"
type=
"tests"
factoryName=
"py.test"
temporary=
"true"
nameIsGenerated=
"true"
>
<configuration
name=
"pytest for testMainPage.TestMainPage"
type=
"tests"
factoryName=
"py.test"
temporary=
"true"
nameIsGenerated=
"true"
>
<module
name=
"xm-uitest-live"
/>
<option
name=
"INTERPRETER_OPTIONS"
value=
""
/>
<option
name=
"PARENT_ENVS"
value=
"true"
/>
...
...
@@ -146,11 +145,11 @@
<option
name=
"_new_keywords"
value=
""""
/>
<option
name=
"_new_parameters"
value=
""""
/>
<option
name=
"_new_additionalArguments"
value=
""""
/>
<option
name=
"_new_target"
value=
""testMainPage.TestMainPage
.test_1_UnStartLive
""
/>
<option
name=
"_new_target"
value=
""testMainPage.TestMainPage""
/>
<option
name=
"_new_targetType"
value=
""PYTHON""
/>
<method
v=
"2"
/>
</configuration>
<configuration
name=
"pytest for testMainPage.TestMainPage.test_
2_
StartLive"
type=
"tests"
factoryName=
"py.test"
temporary=
"true"
nameIsGenerated=
"true"
>
<configuration
name=
"pytest for testMainPage.TestMainPage.test_
1_Un
StartLive"
type=
"tests"
factoryName=
"py.test"
temporary=
"true"
nameIsGenerated=
"true"
>
<module
name=
"xm-uitest-live"
/>
<option
name=
"INTERPRETER_OPTIONS"
value=
""
/>
<option
name=
"PARENT_ENVS"
value=
"true"
/>
...
...
@@ -162,11 +161,11 @@
<option
name=
"_new_keywords"
value=
""""
/>
<option
name=
"_new_parameters"
value=
""""
/>
<option
name=
"_new_additionalArguments"
value=
""""
/>
<option
name=
"_new_target"
value=
""testMainPage.TestMainPage.test_
2_
StartLive""
/>
<option
name=
"_new_target"
value=
""testMainPage.TestMainPage.test_
1_Un
StartLive""
/>
<option
name=
"_new_targetType"
value=
""PYTHON""
/>
<method
v=
"2"
/>
</configuration>
<configuration
name=
"pytest for testMainPage.TestMainPage.test_
4
_StartLive"
type=
"tests"
factoryName=
"py.test"
temporary=
"true"
nameIsGenerated=
"true"
>
<configuration
name=
"pytest for testMainPage.TestMainPage.test_
2
_StartLive"
type=
"tests"
factoryName=
"py.test"
temporary=
"true"
nameIsGenerated=
"true"
>
<module
name=
"xm-uitest-live"
/>
<option
name=
"INTERPRETER_OPTIONS"
value=
""
/>
<option
name=
"PARENT_ENVS"
value=
"true"
/>
...
...
@@ -178,11 +177,11 @@
<option
name=
"_new_keywords"
value=
""""
/>
<option
name=
"_new_parameters"
value=
""""
/>
<option
name=
"_new_additionalArguments"
value=
""""
/>
<option
name=
"_new_target"
value=
""testMainPage.TestMainPage.test_
4
_StartLive""
/>
<option
name=
"_new_target"
value=
""testMainPage.TestMainPage.test_
2
_StartLive""
/>
<option
name=
"_new_targetType"
value=
""PYTHON""
/>
<method
v=
"2"
/>
</configuration>
<configuration
name=
"pytest
in testMainPage.py
"
type=
"tests"
factoryName=
"py.test"
temporary=
"true"
nameIsGenerated=
"true"
>
<configuration
name=
"pytest
for testMainPage.TestMainPage.test_4_StartLive
"
type=
"tests"
factoryName=
"py.test"
temporary=
"true"
nameIsGenerated=
"true"
>
<module
name=
"xm-uitest-live"
/>
<option
name=
"INTERPRETER_OPTIONS"
value=
""
/>
<option
name=
"PARENT_ENVS"
value=
"true"
/>
...
...
@@ -194,17 +193,17 @@
<option
name=
"_new_keywords"
value=
""""
/>
<option
name=
"_new_parameters"
value=
""""
/>
<option
name=
"_new_additionalArguments"
value=
""""
/>
<option
name=
"_new_target"
value=
""
$PROJECT_DIR$/src/testcase/testMainPage.py
""
/>
<option
name=
"_new_targetType"
value=
""P
ATH
""
/>
<option
name=
"_new_target"
value=
""
testMainPage.TestMainPage.test_4_StartLive
""
/>
<option
name=
"_new_targetType"
value=
""P
YTHON
""
/>
<method
v=
"2"
/>
</configuration>
<recent_temporary>
<list>
<item
itemvalue=
"Python.main"
/>
<item
itemvalue=
"Python tests.pytest for testMainPage.TestMainPage.test_2_StartLive"
/>
<item
itemvalue=
"Python tests.pytest for testMainPage.TestMainPage.test_4_StartLive"
/>
<item
itemvalue=
"Python tests.pytest for testMainPage.TestMainPage"
/>
<item
itemvalue=
"Python tests.pytest for testMainPage.TestMainPage.test_1_UnStartLive"
/>
<item
itemvalue=
"Python tests.pytest in testMainPage.py"
/>
</list>
</recent_temporary>
</component>
...
...
@@ -269,7 +268,21 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1622638018445
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"7"
/>
<task
id=
"LOCAL-00007"
summary=
"登录-开课-结束课程-关闭客户端"
>
<created>
1624007574648
</created>
<option
name=
"number"
value=
"00007"
/>
<option
name=
"presentableId"
value=
"LOCAL-00007"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1624007574649
</updated>
</task>
<task
id=
"LOCAL-00008"
summary=
"登录-开课-结束课程-关闭客户端"
>
<created>
1624007701385
</created>
<option
name=
"number"
value=
"00008"
/>
<option
name=
"presentableId"
value=
"LOCAL-00008"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1624007701385
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"9"
/>
<servers
/>
</component>
<component
name=
"TestHistory"
>
...
...
@@ -338,7 +351,8 @@
<MESSAGE
value=
"just just test"
/>
<MESSAGE
value=
"rename"
/>
<MESSAGE
value=
"同步"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"同步"
/>
<MESSAGE
value=
"登录-开课-结束课程-关闭客户端"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"登录-开课-结束课程-关闭客户端"
/>
</component>
<component
name=
"editorHistoryManager"
>
<entry
file=
"file://$PROJECT_DIR$/server.log"
/>
...
...
src/pageobject/loginpage.py
View file @
f87b2d62
...
...
@@ -18,7 +18,7 @@ class LoginPage(Page):
# 验证元素
# 店铺名称
store_name
=
(
By
.
CLASS_NAME
,
"inst
"
)
store_name
=
(
By
.
XPATH
,
"""//div[@class="inst"]""
"
)
def
__init__
(
self
,
driver
):
Page
.
__init__
(
self
,
driver
)
...
...
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