Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-sc
Commits
a3601612
Commit
a3601612
authored
1 year ago
by
17322369953
Browse files
Options
Download
Email Patches
Plain Diff
air更新
parent
6c225100
main
master
No related merge requests found
Changes
63
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
test_login/test_login_verify_code_error.py
+0
-30
test_login/test_login_verify_code_error.py
test_sell/page_sell.py
+1
-1
test_sell/page_sell.py
test_sell/steps_sell.py
+1
-1
test_sell/steps_sell.py
with
2 additions
and
32 deletions
+2
-32
test_login/test_login_verify_code_error.py
deleted
100644 → 0
+
0
-
30
View file @
6c225100
# author:qinguanglei
# ddate:2023/11/16 16:40
import
allure
import
pytest
from
test_login.steps_login
import
StepsLogin
module
=
'test_login'
@
allure
.
feature
(
'登录模块'
)
class
TestLoginVerifyCodeError
(
object
):
@
pytest
.
fixture
(
scope
=
'function'
,
autouse
=
True
)
def
housework
(
self
,
driver_fixture
):
# 驱动器从fixture传来
self
.
driver
=
driver_fixture
@
allure
.
story
(
'登录验证码错误案例-点击登录'
)
def
test_login_verify_code_error
(
self
):
# 载入步骤集合
steps_login
=
StepsLogin
(
self
.
driver
)
# 打开浏览器
steps_login
.
open_browser
()
# 输入账号密码,都输入正确的
steps_login
.
enter_account_password
(
0
)
# 输入验证码,错误的验证码
steps_login
.
enter_verify_code
(
1
)
# 点击登录
steps_login
.
click_login_button
()
# 判断结果
steps_login
.
judge_result_error
(
0
)
This diff is collapsed.
Click to expand it.
test_sell/page_sell.py
+
1
-
1
View file @
a3601612
# author:qinguanglei
# ddate:2023/11/22 9:17
from
test_login.page
_login
import
PageLogin
from
operator.operator
_login
import
PageLogin
from
selenium.webdriver.remote.webdriver
import
By
...
...
This diff is collapsed.
Click to expand it.
test_sell/steps_sell.py
+
1
-
1
View file @
a3601612
...
...
@@ -10,7 +10,7 @@ from common.read_yaml import get_filed_from_yaml
from
common.verifycode
import
VerifyCode
from
test_sell.page_sell
import
PageSell
module
=
'
test_
sell'
module
=
'sell'
class
StepsSell
(
object
):
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
3
4
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets