Skip to content
GitLab
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
2c84072f
Commit
2c84072f
authored
Nov 21, 2023
by
17322369953
Browse files
添加部分采购案例
parent
8841d1b8
Changes
32
Hide whitespace changes
Inline
Side-by-side
data/test_buy/data.yaml
View file @
2c84072f
url
:
http://scdev.cmic.com.cn:8088/beta/
account
:
bj_qgl
password
:
Gyxc12345
supplier
:
'
1003207'
\ No newline at end of file
supplier
:
'
1003207'
warehouse
:
'
103356'
protocol
:
'
1216167'
businessman
:
'
11353403'
merchandise
:
'
10006280'
\ No newline at end of file
main.py
View file @
2c84072f
...
...
@@ -41,10 +41,13 @@ if __name__ == '__main__':
# ['-vs', 'D:/pythonProject/atuobase/test_login/test_login_success.py', '--reruns', '3', '--reruns-delay', '2', '--alluredir',
# report_dir, '--clean-alluredir'])
# 开始执行用例
pytest
.
main
(
[
'-vs'
,
'D:/pythonProject/atuobase/test_login'
,
'--reruns'
,
'3'
,
'--reruns-delay'
,
'2'
,
'--alluredir'
,
report_dir
,
'--clean-alluredir'
])
#
pytest.main(
#
['-vs', 'D:/pythonProject/atuobase/test_login',
'D:/pythonProject/atuobase/test_buy/test_buy_one_nonseq_commodity.py::TestBuyOneNonseqCommodity::test_buy_one_nonseq_commodity',
'--reruns', '3', '--reruns-delay', '2', '--alluredir',
#
report_dir, '--clean-alluredir'])
# Mail().send()
pytest
.
main
(
[
'-vs'
,
'--reruns'
,
'3'
,
'--reruns-delay'
,
'2'
,
'--alluredir'
,
report_dir
,
'--clean-alluredir'
])
os
.
system
(
'allure serve %s'
%
report_dir
)
# 可以在终端执行命令 pytest D:\pythonProject\atuobase\test_login\test_login_success.py
page_class/base_page.py
View file @
2c84072f
...
...
@@ -29,13 +29,18 @@ class BasePage(object):
'''单击一个元素'''
def
single_click
(
self
,
page_element
):
self
.
wait_seconds
(
1
)
page_element
.
click
()
#action_chains = ActionChains(self.driver)
#action_chains.move_to_element(page_element)
#action_chains.click()
#action_chains.perform()
# self.driver.execute_script("arguments[0].click();", page_element)
def
single_click_then_wait
(
self
,
page_element
,
seconds
):
page_element
.
click
()
self
.
wait_seconds
(
seconds
)
'''获取一个元素上的文本信息'''
def
get_text
(
self
,
page_element
):
...
...
@@ -82,6 +87,7 @@ class BasePage(object):
"""获取一个表,指定行的列信息"""
def
get_all_columns_from_row
(
self
,
row_element
):
self
.
wait_seconds
(
self
.
time_seconds
)
columns
=
row_element
.
find_elements
(
By
.
TAG_NAME
,
"td"
)
return
columns
...
...
report/0983d36b-1b52-4ce3-aaf4-c3bfca04fe05-container.json
deleted
100644 → 0
View file @
8841d1b8
{
"uuid"
:
"209f5de0-e30b-4271-b874-97a1c1fea87f"
,
"children"
:
[
"a4d17bdd-9108-4e8b-ba93-0dc1b0e02b13"
],
"befores"
:
[{
"name"
:
"housework"
,
"status"
:
"passed"
,
"start"
:
1700472864625
,
"stop"
:
1700472864625
}],
"start"
:
1700472864625
,
"stop"
:
1700472871507
}
\ No newline at end of file
report/18d9e0ea-d1f3-437b-8662-ee941dff3459-attachment.txt
deleted
100644 → 0
View file @
8841d1b8
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段url值为http://scdev.cmic.com.cn:8088/beta/
INFO root:steps_login.py:26 当前url: http://scdev.cmic.com.cn:8088/beta/
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段url值为http://scdev.cmic.com.cn:8088/beta/
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段account值为bj_qgl
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段password值为Gyxc12345
INFO root:verifycode.py:9 开始解析验证码
INFO root:verifycode.py:23 当前验证码的文字为:UK7B
INFO root:steps_login.py:82 输入的验证码为:UK7B
\ No newline at end of file
report/1f6a9b69-7a1b-4b16-bd12-62b6f77fe04c-container.json
deleted
100644 → 0
View file @
8841d1b8
{
"uuid"
:
"73709d31-8d6d-4562-83a3-97470b15aaea"
,
"children"
:
[
"57b2c080-a1a0-49c7-a297-f9a6c60b9322"
],
"befores"
:
[{
"name"
:
"housework"
,
"status"
:
"passed"
,
"start"
:
1700472850035
,
"stop"
:
1700472850035
}],
"start"
:
1700472850035
,
"stop"
:
1700472858023
}
\ No newline at end of file
report/32a60125-5cdd-4f9d-8c2f-f494dceac4b1-container.json
deleted
100644 → 0
View file @
8841d1b8
{
"uuid"
:
"9ec1ac72-ef2d-4ab1-92b4-7242487c087b"
,
"children"
:
[
"8df9c1dc-783a-4ee4-9855-b0898884a95b"
],
"befores"
:
[{
"name"
:
"housework"
,
"status"
:
"passed"
,
"start"
:
1700472902740
,
"stop"
:
1700472902740
}],
"start"
:
1700472902740
,
"stop"
:
1700472909413
}
\ No newline at end of file
report/3451b6fb-19cf-418e-af03-069111ef8014-result.json
deleted
100644 → 0
View file @
8841d1b8
{
"name"
:
"test_login_verify_code_error"
,
"status"
:
"passed"
,
"steps"
:
[{
"name"
:
"打开浏览器"
,
"status"
:
"passed"
,
"start"
:
1700472902741
,
"stop"
:
1700472902844
},
{
"name"
:
"输入账号密码"
,
"status"
:
"passed"
,
"parameters"
:
[{
"name"
:
"flag"
,
"value"
:
"0"
}],
"start"
:
1700472902844
,
"stop"
:
1700472904948
},
{
"name"
:
"输入验证码"
,
"status"
:
"passed"
,
"parameters"
:
[{
"name"
:
"flag"
,
"value"
:
"1"
}],
"start"
:
1700472904948
,
"stop"
:
1700472907364
},
{
"name"
:
"点击登录"
,
"status"
:
"passed"
,
"start"
:
1700472907364
,
"stop"
:
1700472908400
},
{
"name"
:
"登录错误结果校验"
,
"status"
:
"passed"
,
"parameters"
:
[{
"name"
:
"flag"
,
"value"
:
"0"
}],
"start"
:
1700472908400
,
"stop"
:
1700472909411
}],
"attachments"
:
[{
"name"
:
"log"
,
"source"
:
"f9bdeb94-cc54-438b-b9b2-3d0d93d1a2ff-attachment.txt"
,
"type"
:
"text/plain"
}],
"start"
:
1700472902741
,
"stop"
:
1700472909413
,
"uuid"
:
"8df9c1dc-783a-4ee4-9855-b0898884a95b"
,
"historyId"
:
"ede6c7f0e1e7a2af3e978d67fba55397"
,
"testCaseId"
:
"3055648340d6ae4c20cfb3b690f12d9a"
,
"fullName"
:
"atuobase.test_login.test_login_verify_code_error.TestLoginVerifyCodeError#test_login_verify_code_error"
,
"labels"
:
[{
"name"
:
"story"
,
"value"
:
"登录验证码错误案例-点击登录"
},
{
"name"
:
"feature"
,
"value"
:
"登录模块"
},
{
"name"
:
"parentSuite"
,
"value"
:
"atuobase.test_login"
},
{
"name"
:
"suite"
,
"value"
:
"test_login_verify_code_error"
},
{
"name"
:
"subSuite"
,
"value"
:
"TestLoginVerifyCodeError"
},
{
"name"
:
"host"
,
"value"
:
"HUAWEI"
},
{
"name"
:
"thread"
,
"value"
:
"13928-MainThread"
},
{
"name"
:
"framework"
,
"value"
:
"pytest"
},
{
"name"
:
"language"
,
"value"
:
"cpython3"
},
{
"name"
:
"package"
,
"value"
:
"atuobase.test_login.test_login_verify_code_error"
}]}
\ No newline at end of file
report/379ecb5e-0e40-4511-84eb-f442f7c38f3b-container.json
deleted
100644 → 0
View file @
8841d1b8
{
"uuid"
:
"e154583b-e6ad-42d4-a031-d62af1f3ea1b"
,
"children"
:
[
"08f89516-a331-4f0f-87e7-f7105fd65ba0"
],
"befores"
:
[{
"name"
:
"housework"
,
"status"
:
"passed"
,
"start"
:
1700472896097
,
"stop"
:
1700472896097
}],
"start"
:
1700472896097
,
"stop"
:
1700472902735
}
\ No newline at end of file
report/391b25a1-10fb-42e9-8e41-ad0e7d04ed62-result.json
deleted
100644 → 0
View file @
8841d1b8
{
"name"
:
"test_login_no_input_verifycode"
,
"status"
:
"passed"
,
"steps"
:
[{
"name"
:
"打开浏览器"
,
"status"
:
"passed"
,
"start"
:
1700472858025
,
"stop"
:
1700472858123
},
{
"name"
:
"输入账号密码"
,
"status"
:
"passed"
,
"parameters"
:
[{
"name"
:
"flag"
,
"value"
:
"0"
}],
"start"
:
1700472858123
,
"stop"
:
1700472860225
},
{
"name"
:
"输入验证码"
,
"status"
:
"passed"
,
"parameters"
:
[{
"name"
:
"flag"
,
"value"
:
"2"
}],
"start"
:
1700472860225
,
"stop"
:
1700472862567
},
{
"name"
:
"点击登录"
,
"status"
:
"passed"
,
"start"
:
1700472862567
,
"stop"
:
1700472863603
},
{
"name"
:
"登录错误结果校验"
,
"status"
:
"passed"
,
"parameters"
:
[{
"name"
:
"flag"
,
"value"
:
"3"
}],
"start"
:
1700472863603
,
"stop"
:
1700472864620
}],
"attachments"
:
[{
"name"
:
"log"
,
"source"
:
"18d9e0ea-d1f3-437b-8662-ee941dff3459-attachment.txt"
,
"type"
:
"text/plain"
}],
"start"
:
1700472858025
,
"stop"
:
1700472864620
,
"uuid"
:
"363fb4df-ca00-448d-aa56-0d96cfa082ed"
,
"historyId"
:
"1eb6d2660c1ffd3692c35d343ff5f6de"
,
"testCaseId"
:
"7135ee4b659905a7032c89f8e6f8102f"
,
"fullName"
:
"atuobase.test_login.test_login_no_input_verifycode.TestLoginNoInputVerifycode#test_login_no_input_verifycode"
,
"labels"
:
[{
"name"
:
"story"
,
"value"
:
"不输入验证码案例-点击登录"
},
{
"name"
:
"feature"
,
"value"
:
"登录模块"
},
{
"name"
:
"parentSuite"
,
"value"
:
"atuobase.test_login"
},
{
"name"
:
"suite"
,
"value"
:
"test_login_no_input_verifycode"
},
{
"name"
:
"subSuite"
,
"value"
:
"TestLoginNoInputVerifycode"
},
{
"name"
:
"host"
,
"value"
:
"HUAWEI"
},
{
"name"
:
"thread"
,
"value"
:
"13928-MainThread"
},
{
"name"
:
"framework"
,
"value"
:
"pytest"
},
{
"name"
:
"language"
,
"value"
:
"cpython3"
},
{
"name"
:
"package"
,
"value"
:
"atuobase.test_login.test_login_no_input_verifycode"
}]}
\ No newline at end of file
report/524c786f-20f3-495a-bc31-a1f898521b2f-result.json
deleted
100644 → 0
View file @
8841d1b8
{
"name"
:
"test_login_success_click"
,
"status"
:
"passed"
,
"steps"
:
[{
"name"
:
"打开浏览器"
,
"status"
:
"passed"
,
"start"
:
1700472871511
,
"stop"
:
1700472871613
},
{
"name"
:
"输入账号密码"
,
"status"
:
"passed"
,
"parameters"
:
[{
"name"
:
"flag"
,
"value"
:
"0"
}],
"start"
:
1700472871613
,
"stop"
:
1700472873712
},
{
"name"
:
"输入验证码"
,
"status"
:
"passed"
,
"parameters"
:
[{
"name"
:
"flag"
,
"value"
:
"0"
}],
"start"
:
1700472873712
,
"stop"
:
1700472876101
},
{
"name"
:
"点击登录"
,
"status"
:
"passed"
,
"start"
:
1700472876101
,
"stop"
:
1700472877144
},
{
"name"
:
"判断是否登录成功"
,
"status"
:
"passed"
,
"start"
:
1700472877144
,
"stop"
:
1700472878217
}],
"attachments"
:
[{
"name"
:
"log"
,
"source"
:
"ee4b9e59-2376-4164-90d8-8eba81851367-attachment.txt"
,
"type"
:
"text/plain"
}],
"start"
:
1700472871511
,
"stop"
:
1700472878217
,
"uuid"
:
"0b88d4b8-7a55-4cb2-81cb-839660f62e0e"
,
"historyId"
:
"994bdc7d7f2d92350503243c6e75259e"
,
"testCaseId"
:
"f473e68493409c6e5d7b915b06c2bb77"
,
"fullName"
:
"atuobase.test_login.test_login_success.TestLoginSuccess#test_login_success_click"
,
"labels"
:
[{
"name"
:
"story"
,
"value"
:
"登录成功案例-点击登录"
},
{
"name"
:
"feature"
,
"value"
:
"登录模块"
},
{
"name"
:
"parentSuite"
,
"value"
:
"atuobase.test_login"
},
{
"name"
:
"suite"
,
"value"
:
"test_login_success"
},
{
"name"
:
"subSuite"
,
"value"
:
"TestLoginSuccess"
},
{
"name"
:
"host"
,
"value"
:
"HUAWEI"
},
{
"name"
:
"thread"
,
"value"
:
"13928-MainThread"
},
{
"name"
:
"framework"
,
"value"
:
"pytest"
},
{
"name"
:
"language"
,
"value"
:
"cpython3"
},
{
"name"
:
"package"
,
"value"
:
"atuobase.test_login.test_login_success"
}]}
\ No newline at end of file
report/568894e6-c0e4-495a-be24-99071485b507-result.json
deleted
100644 → 0
View file @
8841d1b8
{
"name"
:
"test_login_no_input_userid"
,
"status"
:
"passed"
,
"steps"
:
[{
"name"
:
"打开浏览器"
,
"status"
:
"passed"
,
"start"
:
1700472850035
,
"stop"
:
1700472851462
},
{
"name"
:
"输入账号密码"
,
"status"
:
"passed"
,
"parameters"
:
[{
"name"
:
"flag"
,
"value"
:
"2"
}],
"start"
:
1700472851462
,
"stop"
:
1700472853542
},
{
"name"
:
"输入验证码"
,
"status"
:
"passed"
,
"parameters"
:
[{
"name"
:
"flag"
,
"value"
:
"0"
}],
"start"
:
1700472853542
,
"stop"
:
1700472855957
},
{
"name"
:
"点击登录"
,
"status"
:
"passed"
,
"start"
:
1700472855957
,
"stop"
:
1700472857006
},
{
"name"
:
"登录错误结果校验"
,
"status"
:
"passed"
,
"parameters"
:
[{
"name"
:
"flag"
,
"value"
:
"2"
}],
"start"
:
1700472857007
,
"stop"
:
1700472858021
}],
"attachments"
:
[{
"name"
:
"log"
,
"source"
:
"6e0334ea-9ea8-4951-892f-f038f27f1552-attachment.txt"
,
"type"
:
"text/plain"
}],
"start"
:
1700472850035
,
"stop"
:
1700472858021
,
"uuid"
:
"57b2c080-a1a0-49c7-a297-f9a6c60b9322"
,
"historyId"
:
"25dad1d66da10ac8330f09b02006392f"
,
"testCaseId"
:
"ad2e7b0e7feeb5ab37c5db7ceb3bf349"
,
"fullName"
:
"atuobase.test_login.test_login_no_input_userid.TestLoginNoInputUserid#test_login_no_input_userid"
,
"labels"
:
[{
"name"
:
"story"
,
"value"
:
"不输入用户名登录失败案例-点击登录"
},
{
"name"
:
"feature"
,
"value"
:
"登录模块"
},
{
"name"
:
"parentSuite"
,
"value"
:
"atuobase.test_login"
},
{
"name"
:
"suite"
,
"value"
:
"test_login_no_input_userid"
},
{
"name"
:
"subSuite"
,
"value"
:
"TestLoginNoInputUserid"
},
{
"name"
:
"host"
,
"value"
:
"HUAWEI"
},
{
"name"
:
"thread"
,
"value"
:
"13928-MainThread"
},
{
"name"
:
"framework"
,
"value"
:
"pytest"
},
{
"name"
:
"language"
,
"value"
:
"cpython3"
},
{
"name"
:
"package"
,
"value"
:
"atuobase.test_login.test_login_no_input_userid"
}]}
\ No newline at end of file
report/61df1257-3ee8-430a-9379-1640625b9f06-container.json
deleted
100644 → 0
View file @
8841d1b8
{
"uuid"
:
"1a8c9dd2-3af3-4e5d-9a17-8525507244a2"
,
"children"
:
[
"08f89516-a331-4f0f-87e7-f7105fd65ba0"
],
"befores"
:
[{
"name"
:
"housework"
,
"status"
:
"passed"
,
"start"
:
1700472878223
,
"stop"
:
1700472878223
}],
"start"
:
1700472878223
,
"stop"
:
1700472885205
}
\ No newline at end of file
report/62140e5c-5ff1-4494-8679-f69adf7d9d72-attachment.txt
deleted
100644 → 0
View file @
8841d1b8
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段url值为http://scdev.cmic.com.cn:8088/beta/
INFO root:steps_login.py:26 当前url: http://scdev.cmic.com.cn:8088/beta/
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段url值为http://scdev.cmic.com.cn:8088/beta/
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段account值为bj_qgl
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段password值为Gyxc12345
INFO root:verifycode.py:9 开始解析验证码
INFO root:verifycode.py:23 当前验证码的文字为:OKVV
INFO root:steps_login.py:82 输入的验证码为:OKVV
ERROR root:steps_login.py:152 登录错误结果校验,案例执行失败
ERROR root:steps_login.py:153 self.page_login.get_text(login_result_element)=验证码错误!!
ERROR root:steps_login.py:155 result_value=用户名或密码错误
ERROR root:steps_login.py:156 self.page_login.get_text(login_result_element)与result_value不一致
ERROR root:steps_login.py:159 登录错误结果校验问题:Assertion failed.Traceback (most recent call last):
File "D:\pythonProject\atuobase\test_login\steps_login.py", line 157, in judge_result_error
assert False
AssertionError
\ No newline at end of file
report/6e0334ea-9ea8-4951-892f-f038f27f1552-attachment.txt
deleted
100644 → 0
View file @
8841d1b8
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段url值为http://scdev.cmic.com.cn:8088/beta/
INFO root:steps_login.py:26 当前url: http://scdev.cmic.com.cn:8088/beta/
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段url值为http://scdev.cmic.com.cn:8088/beta/
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段account值为bj_qgl
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段password值为Gyxc12345
INFO root:verifycode.py:9 开始解析验证码
INFO root:verifycode.py:23 当前验证码的文字为:AX3Y
INFO root:steps_login.py:82 输入的验证码为:AX3Y
\ No newline at end of file
report/7c909a5d-7d08-47e8-8912-b02affe8ee28-container.json
deleted
100644 → 0
View file @
8841d1b8
{
"uuid"
:
"d3270a21-52eb-4dd6-9773-87c220812304"
,
"children"
:
[
"363fb4df-ca00-448d-aa56-0d96cfa082ed"
],
"befores"
:
[{
"name"
:
"housework"
,
"status"
:
"passed"
,
"start"
:
1700472858025
,
"stop"
:
1700472858025
}],
"start"
:
1700472858025
,
"stop"
:
1700472864620
}
\ No newline at end of file
report/838fa8d4-da0c-4a38-b103-709aec13d699-attachment.txt
deleted
100644 → 0
View file @
8841d1b8
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段url值为http://scdev.cmic.com.cn:8088/beta/
INFO root:steps_login.py:26 当前url: http://scdev.cmic.com.cn:8088/beta/
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段url值为http://scdev.cmic.com.cn:8088/beta/
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段account值为bj_qgl
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段password值为Gyxc12345
INFO root:verifycode.py:9 开始解析验证码
INFO root:verifycode.py:23 当前验证码的文字为:OKVV
INFO root:steps_login.py:82 输入的验证码为:OKVV
ERROR root:steps_login.py:152 登录错误结果校验,案例执行失败
ERROR root:steps_login.py:153 self.page_login.get_text(login_result_element)=验证码错误!!
ERROR root:steps_login.py:155 result_value=用户名或密码错误
ERROR root:steps_login.py:156 self.page_login.get_text(login_result_element)与result_value不一致
ERROR root:steps_login.py:159 登录错误结果校验问题:Assertion failed.Traceback (most recent call last):
File "D:\pythonProject\atuobase\test_login\steps_login.py", line 157, in judge_result_error
assert False
AssertionError
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段url值为http://scdev.cmic.com.cn:8088/beta/
INFO root:steps_login.py:26 当前url: http://scdev.cmic.com.cn:8088/beta/
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段url值为http://scdev.cmic.com.cn:8088/beta/
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段account值为bj_qgl
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段password值为Gyxc12345
INFO root:verifycode.py:9 开始解析验证码
INFO root:verifycode.py:23 当前验证码的文字为:FEIT
INFO root:steps_login.py:82 输入的验证码为:FEIT
ERROR root:steps_login.py:152 登录错误结果校验,案例执行失败
ERROR root:steps_login.py:153 self.page_login.get_text(login_result_element)=验证码错误!!
ERROR root:steps_login.py:155 result_value=用户名或密码错误
ERROR root:steps_login.py:156 self.page_login.get_text(login_result_element)与result_value不一致
ERROR root:steps_login.py:159 登录错误结果校验问题:Assertion failed.Traceback (most recent call last):
File "D:\pythonProject\atuobase\test_login\steps_login.py", line 157, in judge_result_error
assert False
AssertionError
\ No newline at end of file
report/8e634884-68cb-454c-b456-9e9e91cc0d74-result.json
deleted
100644 → 0
View file @
8841d1b8
{
"name"
:
"test_login_password_error"
,
"status"
:
"passed"
,
"steps"
:
[{
"name"
:
"打开浏览器"
,
"status"
:
"passed"
,
"start"
:
1700472864625
,
"stop"
:
1700472864937
},
{
"name"
:
"输入账号密码"
,
"status"
:
"passed"
,
"parameters"
:
[{
"name"
:
"flag"
,
"value"
:
"4"
}],
"start"
:
1700472864937
,
"stop"
:
1700472867041
},
{
"name"
:
"输入验证码"
,
"status"
:
"passed"
,
"parameters"
:
[{
"name"
:
"flag"
,
"value"
:
"0"
}],
"start"
:
1700472867041
,
"stop"
:
1700472869440
},
{
"name"
:
"点击登录"
,
"status"
:
"passed"
,
"start"
:
1700472869441
,
"stop"
:
1700472870495
},
{
"name"
:
"登录错误结果校验"
,
"status"
:
"passed"
,
"parameters"
:
[{
"name"
:
"flag"
,
"value"
:
"1"
}],
"start"
:
1700472870495
,
"stop"
:
1700472871506
}],
"attachments"
:
[{
"name"
:
"log"
,
"source"
:
"be48ff94-2839-4962-ba6d-605003bdfe2c-attachment.txt"
,
"type"
:
"text/plain"
}],
"start"
:
1700472864625
,
"stop"
:
1700472871507
,
"uuid"
:
"a4d17bdd-9108-4e8b-ba93-0dc1b0e02b13"
,
"historyId"
:
"96a8543f273893c9553c54f7b88da5f0"
,
"testCaseId"
:
"e5ed5afbfc3640ddaf17a72fada70aa0"
,
"fullName"
:
"atuobase.test_login.test_login_password_error.TestLoginPasswordError#test_login_password_error"
,
"labels"
:
[{
"name"
:
"story"
,
"value"
:
"输入错误密码登录失败案例-点击登录"
},
{
"name"
:
"feature"
,
"value"
:
"登录模块"
},
{
"name"
:
"parentSuite"
,
"value"
:
"atuobase.test_login"
},
{
"name"
:
"suite"
,
"value"
:
"test_login_password_error"
},
{
"name"
:
"subSuite"
,
"value"
:
"TestLoginPasswordError"
},
{
"name"
:
"host"
,
"value"
:
"HUAWEI"
},
{
"name"
:
"thread"
,
"value"
:
"13928-MainThread"
},
{
"name"
:
"framework"
,
"value"
:
"pytest"
},
{
"name"
:
"language"
,
"value"
:
"cpython3"
},
{
"name"
:
"package"
,
"value"
:
"atuobase.test_login.test_login_password_error"
}]}
\ No newline at end of file
report/90997e19-7bfd-4b4f-b97e-32a66a75dd84-attachment.txt
deleted
100644 → 0
View file @
8841d1b8
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段url值为http://scdev.cmic.com.cn:8088/beta/
INFO root:steps_login.py:26 当前url: http://scdev.cmic.com.cn:8088/beta/
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段url值为http://scdev.cmic.com.cn:8088/beta/
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段account值为bj_qgl
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段password值为Gyxc12345
INFO root:verifycode.py:9 开始解析验证码
INFO root:verifycode.py:23 当前验证码的文字为:OKVV
INFO root:steps_login.py:82 输入的验证码为:OKVV
ERROR root:steps_login.py:152 登录错误结果校验,案例执行失败
ERROR root:steps_login.py:153 self.page_login.get_text(login_result_element)=验证码错误!!
ERROR root:steps_login.py:155 result_value=用户名或密码错误
ERROR root:steps_login.py:156 self.page_login.get_text(login_result_element)与result_value不一致
ERROR root:steps_login.py:159 登录错误结果校验问题:Assertion failed.Traceback (most recent call last):
File "D:\pythonProject\atuobase\test_login\steps_login.py", line 157, in judge_result_error
assert False
AssertionError
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段url值为http://scdev.cmic.com.cn:8088/beta/
INFO root:steps_login.py:26 当前url: http://scdev.cmic.com.cn:8088/beta/
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段url值为http://scdev.cmic.com.cn:8088/beta/
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段account值为bj_qgl
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段password值为Gyxc12345
INFO root:verifycode.py:9 开始解析验证码
INFO root:verifycode.py:23 当前验证码的文字为:FEIT
INFO root:steps_login.py:82 输入的验证码为:FEIT
ERROR root:steps_login.py:152 登录错误结果校验,案例执行失败
ERROR root:steps_login.py:153 self.page_login.get_text(login_result_element)=验证码错误!!
ERROR root:steps_login.py:155 result_value=用户名或密码错误
ERROR root:steps_login.py:156 self.page_login.get_text(login_result_element)与result_value不一致
ERROR root:steps_login.py:159 登录错误结果校验问题:Assertion failed.Traceback (most recent call last):
File "D:\pythonProject\atuobase\test_login\steps_login.py", line 157, in judge_result_error
assert False
AssertionError
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段url值为http://scdev.cmic.com.cn:8088/beta/
INFO root:steps_login.py:26 当前url: http://scdev.cmic.com.cn:8088/beta/
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段url值为http://scdev.cmic.com.cn:8088/beta/
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段account值为bj_qgl
INFO root:read_yaml.py:34 当前的yaml文件路径:D:\pythonProject\atuobase\data\test_login\data.yaml
INFO root:read_yaml.py:37 文件data中字段password值为Gyxc12345
INFO root:verifycode.py:9 开始解析验证码
INFO root:verifycode.py:23 当前验证码的文字为:DRG7
INFO root:steps_login.py:82 输入的验证码为:DRG7
\ No newline at end of file
report/93df9439-5f5b-49f9-8322-196aec366edf-container.json
deleted
100644 → 0
View file @
8841d1b8
{
"uuid"
:
"cea7612f-79f8-42e4-91b4-8e19396bf6d5"
,
"children"
:
[
"08f89516-a331-4f0f-87e7-f7105fd65ba0"
],
"befores"
:
[{
"name"
:
"housework"
,
"status"
:
"passed"
,
"start"
:
1700472887210
,
"stop"
:
1700472887210
}],
"start"
:
1700472887210
,
"stop"
:
1700472894095
}
\ No newline at end of file
Prev
1
2
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