Commit fe24b688 by 1161899172@qq.com

修改名称相关问题

parent b6b73878
......@@ -2,7 +2,7 @@
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 3.9" jdkType="Python SDK" />
<orderEntry type="jdk" jdkName="Python 3.8" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
......
This source diff could not be displayed because it is too large. You can view the blob instead.
"Epic","Feature","Story","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"","","","0","2","2","0","0"
{"uid":"b1a8273437954620fa374b796ffaacdd","name":"behaviors","children":[{"name":"test_Digital_Editorial_Assistant","uid":"9b3e1d21fa2693e3","parentUid":"b1a8273437954620fa374b796ffaacdd","status":"broken","time":{"start":1710401254575,"stop":1710401276953,"duration":22378},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":[],"tags":[]},{"name":"test_test1","uid":"9abc6c7cf617a4a4","parentUid":"b1a8273437954620fa374b796ffaacdd","status":"broken","time":{"start":1710401283662,"stop":1710401288555,"duration":4893},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":[],"tags":[]},{"name":"test_add[黑泽爽子-Rmb11111-密码错误]","uid":"d341dd6b7d4cd405","parentUid":"b1a8273437954620fa374b796ffaacdd","status":"passed","time":{"start":1710401288989,"stop":1710401290188,"duration":1199},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":["'Rmb11111'","'密码错误'","'黑泽爽子'"],"tags":[]},{"name":"test_add[鉴湖分社1-Rmb88888-账号不存在]","uid":"5b898c32d16842da","parentUid":"b1a8273437954620fa374b796ffaacdd","status":"passed","time":{"start":1710401290443,"stop":1710401291607,"duration":1164},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":["'Rmb88888'","'账号不存在'","'鉴湖分社1'"],"tags":[]}]}
\ No newline at end of file
"Category","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"Test defects","0","2","0","0","0"
{"uid":"4b4757e66a1912dae1a509f688f20b0f","name":"categories","children":[{"name":"Test defects","children":[{"name":"selenium.common.exceptions.TimeoutException: Message:","children":[{"name":"test_Digital_Editorial_Assistant","uid":"9b3e1d21fa2693e3","parentUid":"31bb78a6a95ede3f78b260ed048910d8","status":"broken","time":{"start":1710401254575,"stop":1710401276953,"duration":22378},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":[],"tags":[]}],"uid":"31bb78a6a95ede3f78b260ed048910d8"},{"name":"selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <span>...</span> is not clickable at point (958, 542). Other element would receive the click: <div class=\"ant-spin ant-spin-spinning\" aria-live=\"polite\" aria-busy=\"true\">...</div>\n (Session info: chrome=121.0.6167.86)","children":[{"name":"test_test1","uid":"9abc6c7cf617a4a4","parentUid":"da7082c73dc23518e2d62f510cb689d7","status":"broken","time":{"start":1710401283662,"stop":1710401288555,"duration":4893},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":[],"tags":[]}],"uid":"da7082c73dc23518e2d62f510cb689d7"}],"uid":"bdbf199525818fae7a8651db9eafe741"}]}
\ No newline at end of file
{"uid":"83edc06c07f9ae9e47eb6dd1b683e4e2","name":"packages","children":[{"name":"script","children":[{"name":"test_Digital_Employees","children":[{"name":"test_Digital_Editorial_Assistant","uid":"9b3e1d21fa2693e3","parentUid":"bcd985c344b7423d724791986772d7f3","status":"broken","time":{"start":1710401254575,"stop":1710401276953,"duration":22378},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":[],"tags":[]}],"uid":"bcd985c344b7423d724791986772d7f3"},{"name":"test_create","children":[{"name":"test_test1","uid":"9abc6c7cf617a4a4","parentUid":"f4a2ed3cde38f79c2b4ad2768b941f81","status":"broken","time":{"start":1710401283662,"stop":1710401288555,"duration":4893},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":[],"tags":[]},{"name":"test_add[黑泽爽子-Rmb11111-密码错误]","uid":"d341dd6b7d4cd405","parentUid":"f4a2ed3cde38f79c2b4ad2768b941f81","status":"passed","time":{"start":1710401288989,"stop":1710401290188,"duration":1199},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":["'Rmb11111'","'密码错误'","'黑泽爽子'"],"tags":[]},{"name":"test_add[鉴湖分社1-Rmb88888-账号不存在]","uid":"5b898c32d16842da","parentUid":"f4a2ed3cde38f79c2b4ad2768b941f81","status":"passed","time":{"start":1710401290443,"stop":1710401291607,"duration":1164},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":["'Rmb88888'","'账号不存在'","'鉴湖分社1'"],"tags":[]}],"uid":"f4a2ed3cde38f79c2b4ad2768b941f81"}],"uid":"2d258e50f809e12c60d78a98d379d9c8"}]}
\ No newline at end of file
"Status","Start Time","Stop Time","Duration in ms","Parent Suite","Suite","Sub Suite","Test Class","Test Method","Name","Description"
"broken","Thu Mar 14 15:28:03 CST 2024","Thu Mar 14 15:28:08 CST 2024","4893","script","test_create","TestCreate","","","test_test1",""
"broken","Thu Mar 14 15:27:34 CST 2024","Thu Mar 14 15:27:56 CST 2024","22378","script","test_Digital_Employees","TestCreate","","","test_Digital_Editorial_Assistant",""
"passed","Thu Mar 14 15:28:10 CST 2024","Thu Mar 14 15:28:11 CST 2024","1164","script","test_create","TestCreate","","","test_add[鉴湖分社1-Rmb88888-账号不存在]",""
"passed","Thu Mar 14 15:28:08 CST 2024","Thu Mar 14 15:28:10 CST 2024","1199","script","test_create","TestCreate","","","test_add[黑泽爽子-Rmb11111-密码错误]",""
{"uid":"98d3104e051c652961429bf95fa0b5d6","name":"suites","children":[{"name":"script","children":[{"name":"test_Digital_Employees","children":[{"name":"TestCreate","children":[{"name":"test_Digital_Editorial_Assistant","uid":"9b3e1d21fa2693e3","parentUid":"7f7752d82645e785d083557cb839b452","status":"broken","time":{"start":1710401254575,"stop":1710401276953,"duration":22378},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":[],"tags":[]}],"uid":"7f7752d82645e785d083557cb839b452"}],"uid":"c4d4959011d232796dc870dbbef63c8d"},{"name":"test_create","children":[{"name":"TestCreate","children":[{"name":"test_test1","uid":"9abc6c7cf617a4a4","parentUid":"d9a2a0bf905b852a015eecca34c03354","status":"broken","time":{"start":1710401283662,"stop":1710401288555,"duration":4893},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":[],"tags":[]},{"name":"test_add[黑泽爽子-Rmb11111-密码错误]","uid":"d341dd6b7d4cd405","parentUid":"d9a2a0bf905b852a015eecca34c03354","status":"passed","time":{"start":1710401288989,"stop":1710401290188,"duration":1199},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":["'Rmb11111'","'密码错误'","'黑泽爽子'"],"tags":[]},{"name":"test_add[鉴湖分社1-Rmb88888-账号不存在]","uid":"5b898c32d16842da","parentUid":"d9a2a0bf905b852a015eecca34c03354","status":"passed","time":{"start":1710401290443,"stop":1710401291607,"duration":1164},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":["'Rmb88888'","'账号不存在'","'鉴湖分社1'"],"tags":[]}],"uid":"d9a2a0bf905b852a015eecca34c03354"}],"uid":"f7ced00170bb40a7b7d96fe5c7e50399"}],"uid":"753b61216abbfea068f4ca4e530487c6"}]}
\ No newline at end of file
{"uid":"5b898c32d16842da","name":"test_add[鉴湖分社1-Rmb88888-账号不存在]","fullName":"script.test_create.TestCreate#test_add","historyId":"eab4def985e29627fa7379e10dede17e","time":{"start":1710401290443,"stop":1710401291607,"duration":1164},"status":"passed","flaky":false,"newFailed":false,"newBroken":false,"newPassed":false,"retriesCount":0,"retriesStatusChange":false,"beforeStages":[{"name":"_xunit_setup_class_fixture_TestCreate","time":{"start":1710401279207,"stop":1710401280492,"duration":1285},"status":"passed","steps":[],"attachments":[],"parameters":[],"hasContent":false,"stepsCount":0,"attachmentStep":false,"attachmentsCount":0,"shouldDisplayMessage":false},{"name":"_xunit_setup_method_fixture_TestCreate","time":{"start":1710401290192,"stop":1710401290442,"duration":250},"status":"passed","steps":[],"attachments":[],"parameters":[],"hasContent":false,"stepsCount":0,"attachmentStep":false,"attachmentsCount":0,"shouldDisplayMessage":false}],"testStage":{"status":"passed","steps":[],"attachments":[{"uid":"10918975c38372f8","name":"stdout","source":"10918975c38372f8.txt","type":"text/plain","size":16}],"parameters":[],"hasContent":true,"stepsCount":0,"attachmentStep":false,"attachmentsCount":1,"shouldDisplayMessage":false},"afterStages":[{"name":"_xunit_setup_method_fixture_TestCreate::0","time":{"start":1710401291609,"stop":1710401291609,"duration":0},"status":"passed","steps":[],"attachments":[],"parameters":[],"hasContent":false,"stepsCount":0,"attachmentStep":false,"attachmentsCount":0,"shouldDisplayMessage":false},{"name":"_xunit_setup_class_fixture_TestCreate::0","time":{"start":1710401291610,"stop":1710401293758,"duration":2148},"status":"passed","steps":[],"attachments":[],"parameters":[],"hasContent":false,"stepsCount":0,"attachmentStep":false,"attachmentsCount":0,"shouldDisplayMessage":false}],"labels":[{"name":"parentSuite","value":"script"},{"name":"suite","value":"test_create"},{"name":"subSuite","value":"TestCreate"},{"name":"host","value":"DCG027098"},{"name":"thread","value":"26200-MainThread"},{"name":"framework","value":"pytest"},{"name":"language","value":"cpython3"},{"name":"package","value":"script.test_create"},{"name":"resultFormat","value":"allure2"}],"parameters":[{"name":"password","value":"'Rmb88888'"},{"name":"result","value":"'账号不存在'"},{"name":"user","value":"'鉴湖分社1'"}],"links":[],"hidden":false,"retry":false,"extra":{"severity":"normal","retries":[],"categories":[],"tags":[]},"source":"5b898c32d16842da.json","parameterValues":["'Rmb88888'","'账号不存在'","'鉴湖分社1'"]}
\ No newline at end of file
{"uid":"9b3e1d21fa2693e3","name":"test_Digital_Editorial_Assistant","fullName":"script.test_Digital_Employees.TestCreate#test_Digital_Editorial_Assistant","historyId":"70a7e0a6eedd6b7b7fb4789fcbeee367","time":{"start":1710401254575,"stop":1710401276953,"duration":22378},"status":"broken","statusMessage":"selenium.common.exceptions.TimeoutException: Message:","statusTrace":"self = <script.test_Digital_Employees.TestCreate object at 0x00000185B3AC0490>\n\n def test_Digital_Editorial_Assistant(self):\n self.login.login(user_name, password)\n time.sleep(3)\n self.RAYSMPB.to_ai_studio()\n self.AIER.to_ai_room()\n> self.DEA.meld()\n\nscript\\test_Digital_Employees.py:37: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \npaga\\DigitalEmployeesPage.py:112: in meld\n self.find_ele(self.More).click()\nBase\\BasePage.py:20: in find_ele\n ele = WebDriverWait(self.driver, time, fre).until(lambda x: x.find_element(*loc))\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <selenium.webdriver.support.wait.WebDriverWait (session=\"0f629cce37f4865af9bca159b40c8787\")>\nmethod = <function BasePage.find_ele.<locals>.<lambda> at 0x00000185B39DC5E0>, message = ''\n\n def until(self, method, message=''):\n \"\"\"Calls the method provided with the driver as an argument until the \\\n return value is not False.\"\"\"\n screen = None\n stacktrace = None\n \n end_time = time.time() + self._timeout\n while True:\n try:\n value = method(self._driver)\n if value:\n return value\n except self._ignored_exceptions as exc:\n screen = getattr(exc, 'screen', None)\n stacktrace = getattr(exc, 'stacktrace', None)\n time.sleep(self._poll)\n if time.time() > end_time:\n break\n> raise TimeoutException(message, screen, stacktrace)\nE selenium.common.exceptions.TimeoutException: Message:\n\nD:\\Python\\Python38\\lib\\site-packages\\selenium\\webdriver\\support\\wait.py:80: TimeoutException","flaky":false,"newFailed":false,"newBroken":false,"newPassed":false,"retriesCount":0,"retriesStatusChange":false,"beforeStages":[{"name":"_xunit_setup_class_fixture_TestCreate","time":{"start":1710401247196,"stop":1710401249661,"duration":2465},"status":"passed","steps":[],"attachments":[],"parameters":[],"hasContent":false,"stepsCount":0,"attachmentStep":false,"attachmentsCount":0,"shouldDisplayMessage":false},{"name":"_xunit_setup_method_fixture_TestCreate","time":{"start":1710401249661,"stop":1710401254575,"duration":4914},"status":"passed","steps":[],"attachments":[],"parameters":[],"hasContent":false,"stepsCount":0,"attachmentStep":false,"attachmentsCount":0,"shouldDisplayMessage":false}],"afterStages":[{"name":"_xunit_setup_method_fixture_TestCreate::0","time":{"start":1710401277047,"stop":1710401277047,"duration":0},"status":"passed","steps":[],"attachments":[],"parameters":[],"hasContent":false,"stepsCount":0,"attachmentStep":false,"attachmentsCount":0,"shouldDisplayMessage":false},{"name":"_xunit_setup_class_fixture_TestCreate::0","time":{"start":1710401277048,"stop":1710401279202,"duration":2154},"status":"passed","steps":[],"attachments":[],"parameters":[],"hasContent":false,"stepsCount":0,"attachmentStep":false,"attachmentsCount":0,"shouldDisplayMessage":false}],"labels":[{"name":"parentSuite","value":"script"},{"name":"suite","value":"test_Digital_Employees"},{"name":"subSuite","value":"TestCreate"},{"name":"host","value":"DCG027098"},{"name":"thread","value":"26200-MainThread"},{"name":"framework","value":"pytest"},{"name":"language","value":"cpython3"},{"name":"package","value":"script.test_Digital_Employees"},{"name":"resultFormat","value":"allure2"}],"parameters":[],"links":[],"hidden":false,"retry":false,"extra":{"severity":"normal","retries":[],"categories":[{"name":"Test defects","matchedStatuses":[],"flaky":false}],"tags":[]},"source":"9b3e1d21fa2693e3.json","parameterValues":[]}
\ No newline at end of file
{"uid":"d341dd6b7d4cd405","name":"test_add[黑泽爽子-Rmb11111-密码错误]","fullName":"script.test_create.TestCreate#test_add","historyId":"df401873ad8367c08f74c43e024334e4","time":{"start":1710401288989,"stop":1710401290188,"duration":1199},"status":"passed","flaky":false,"newFailed":false,"newBroken":false,"newPassed":false,"retriesCount":0,"retriesStatusChange":false,"beforeStages":[{"name":"_xunit_setup_class_fixture_TestCreate","time":{"start":1710401279207,"stop":1710401280492,"duration":1285},"status":"passed","steps":[],"attachments":[],"parameters":[],"hasContent":false,"stepsCount":0,"attachmentStep":false,"attachmentsCount":0,"shouldDisplayMessage":false},{"name":"_xunit_setup_method_fixture_TestCreate","time":{"start":1710401288586,"stop":1710401288987,"duration":401},"status":"passed","steps":[],"attachments":[],"parameters":[],"hasContent":false,"stepsCount":0,"attachmentStep":false,"attachmentsCount":0,"shouldDisplayMessage":false}],"testStage":{"status":"passed","steps":[],"attachments":[{"uid":"47bc1d38340b55d1","name":"stdout","source":"47bc1d38340b55d1.txt","type":"text/plain","size":13}],"parameters":[],"hasContent":true,"stepsCount":0,"attachmentStep":false,"attachmentsCount":1,"shouldDisplayMessage":false},"afterStages":[{"name":"_xunit_setup_method_fixture_TestCreate::0","time":{"start":1710401290190,"stop":1710401290190,"duration":0},"status":"passed","steps":[],"attachments":[],"parameters":[],"hasContent":false,"stepsCount":0,"attachmentStep":false,"attachmentsCount":0,"shouldDisplayMessage":false},{"name":"_xunit_setup_class_fixture_TestCreate::0","time":{"start":1710401291610,"stop":1710401293758,"duration":2148},"status":"passed","steps":[],"attachments":[],"parameters":[],"hasContent":false,"stepsCount":0,"attachmentStep":false,"attachmentsCount":0,"shouldDisplayMessage":false}],"labels":[{"name":"parentSuite","value":"script"},{"name":"suite","value":"test_create"},{"name":"subSuite","value":"TestCreate"},{"name":"host","value":"DCG027098"},{"name":"thread","value":"26200-MainThread"},{"name":"framework","value":"pytest"},{"name":"language","value":"cpython3"},{"name":"package","value":"script.test_create"},{"name":"resultFormat","value":"allure2"}],"parameters":[{"name":"password","value":"'Rmb11111'"},{"name":"result","value":"'密码错误'"},{"name":"user","value":"'黑泽爽子'"}],"links":[],"hidden":false,"retry":false,"extra":{"severity":"normal","retries":[],"categories":[],"tags":[]},"source":"d341dd6b7d4cd405.json","parameterValues":["'Rmb11111'","'密码错误'","'黑泽爽子'"]}
\ No newline at end of file
{"uid":"ab17fc5a4eb3bca4b216b548c7f9fcbc","name":"timeline","children":[{"name":"DCG027098","children":[{"name":"26200-MainThread","children":[{"name":"test_add[黑泽爽子-Rmb11111-密码错误]","uid":"d341dd6b7d4cd405","parentUid":"338ad3e2461f73b18ed63596b3d9f75e","status":"passed","time":{"start":1710401288989,"stop":1710401290188,"duration":1199},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":["'Rmb11111'","'密码错误'","'黑泽爽子'"],"tags":[]},{"name":"test_add[鉴湖分社1-Rmb88888-账号不存在]","uid":"5b898c32d16842da","parentUid":"338ad3e2461f73b18ed63596b3d9f75e","status":"passed","time":{"start":1710401290443,"stop":1710401291607,"duration":1164},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":["'Rmb88888'","'账号不存在'","'鉴湖分社1'"],"tags":[]},{"name":"test_test1","uid":"9abc6c7cf617a4a4","parentUid":"338ad3e2461f73b18ed63596b3d9f75e","status":"broken","time":{"start":1710401283662,"stop":1710401288555,"duration":4893},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":[],"tags":[]},{"name":"test_Digital_Editorial_Assistant","uid":"9b3e1d21fa2693e3","parentUid":"338ad3e2461f73b18ed63596b3d9f75e","status":"broken","time":{"start":1710401254575,"stop":1710401276953,"duration":22378},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":[],"tags":[]}],"uid":"338ad3e2461f73b18ed63596b3d9f75e"}],"uid":"8e3386384176f0e6d977ee76189eb541"}]}
\ No newline at end of file
launch_status failed=0 1710401728000000000
launch_status broken=2 1710401728000000000
launch_status passed=2 1710401728000000000
launch_status skipped=0 1710401728000000000
launch_status unknown=0 1710401728000000000
launch_time duration=37032 1710401728000000000
launch_time min_duration=1164 1710401728000000000
launch_time max_duration=22378 1710401728000000000
launch_time sum_duration=29634 1710401728000000000
launch_problems test_defects=2 1710401728000000000
launch_retries retries=0 1710401728000000000
launch_retries run=4 1710401728000000000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Allure Report summary mail</title>
</head>
<body>
Mail body
</body>
</html>
launch_status_failed 0
launch_status_broken 2
launch_status_passed 2
launch_status_skipped 0
launch_status_unknown 0
launch_time_duration 37032
launch_time_min_duration 1164
launch_time_max_duration 22378
launch_time_sum_duration 29634
launch_problems_test_defects 2
launch_retries_retries 0
launch_retries_run 4
[{"data":{"Test defects":2}}]
\ No newline at end of file
[{"data":{"duration":37032}}]
\ No newline at end of file
[{"data":{"failed":0,"broken":2,"skipped":0,"passed":2,"unknown":0,"total":4}}]
\ No newline at end of file
{"df401873ad8367c08f74c43e024334e4":{"statistic":{"failed":0,"broken":0,"skipped":0,"passed":1,"unknown":0,"total":1},"items":[{"uid":"d341dd6b7d4cd405","status":"passed","time":{"start":1710401288989,"stop":1710401290188,"duration":1199}}]},"70a7e0a6eedd6b7b7fb4789fcbeee367":{"statistic":{"failed":0,"broken":1,"skipped":0,"passed":0,"unknown":0,"total":1},"items":[{"uid":"9b3e1d21fa2693e3","status":"broken","statusDetails":"selenium.common.exceptions.TimeoutException: Message:","time":{"start":1710401254575,"stop":1710401276953,"duration":22378}}]},"eab4def985e29627fa7379e10dede17e":{"statistic":{"failed":0,"broken":0,"skipped":0,"passed":1,"unknown":0,"total":1},"items":[{"uid":"5b898c32d16842da","status":"passed","time":{"start":1710401290443,"stop":1710401291607,"duration":1164}}]},"4613c7061f99fea2a704234c87a1a999":{"statistic":{"failed":0,"broken":1,"skipped":0,"passed":0,"unknown":0,"total":1},"items":[{"uid":"9abc6c7cf617a4a4","status":"broken","statusDetails":"selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <span>...</span> is not clickable at point (958, 542). Other element would receive the click: <div class=\"ant-spin ant-spin-spinning\" aria-live=\"polite\" aria-busy=\"true\">...</div>\n (Session info: chrome=121.0.6167.86)","time":{"start":1710401283662,"stop":1710401288555,"duration":4893}}]}}
\ No newline at end of file
[{"data":{"run":4,"retry":0}}]
\ No newline at end of file
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<title>Allure Report</title>
<link rel="favicon" href="favicon.ico">
<link rel="stylesheet" type="text/css" href="styles.css">
<link rel="stylesheet" type="text/css" href="plugin/screen-diff/styles.css">
</head>
<body>
<div id="alert"></div>
<div id="content">
<span class="spinner">
<span class="spinner__circle"></span>
</span>
</div>
<div id="popup"></div>
<script src="app.js"></script>
<script src="plugin/behaviors/index.js"></script>
<script src="plugin/packages/index.js"></script>
<script src="plugin/screen-diff/index.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FVWC4GKEYS"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-FVWC4GKEYS', {
'allureVersion': 'dev',
'reportUuid': 'a69e5ae8-f268-41d1-abe2-c6bf4c434493',
'single_file': false
});
</script>
</body>
</html>
'use strict';
allure.api.addTranslation('en', {
tab: {
behaviors: {
name: 'Behaviors'
}
},
widget: {
behaviors: {
name: 'Features by stories',
showAll: 'show all'
}
}
});
allure.api.addTranslation('ru', {
tab: {
behaviors: {
name: 'Функциональность'
}
},
widget: {
behaviors: {
name: 'Функциональность',
showAll: 'показать все'
}
}
});
allure.api.addTranslation('zh', {
tab: {
behaviors: {
name: '功能'
}
},
widget: {
behaviors: {
name: '特性场景',
showAll: '显示所有'
}
}
});
allure.api.addTranslation('de', {
tab: {
behaviors: {
name: 'Verhalten'
}
},
widget: {
behaviors: {
name: 'Features nach Stories',
showAll: 'Zeige alle'
}
}
});
allure.api.addTranslation('nl', {
tab: {
behaviors: {
name: 'Functionaliteit'
}
},
widget: {
behaviors: {
name: 'Features en story’s',
showAll: 'Toon alle'
}
}
});
allure.api.addTranslation('he', {
tab: {
behaviors: {
name: 'התנהגויות'
}
},
widget: {
behaviors: {
name: 'תכונות לפי סיפורי משתמש',
showAll: 'הצג הכול'
}
}
});
allure.api.addTranslation('br', {
tab: {
behaviors: {
name: 'Comportamentos'
}
},
widget: {
behaviors: {
name: 'Funcionalidades por história',
showAll: 'Mostrar tudo'
}
}
});
allure.api.addTranslation('ja', {
tab: {
behaviors: {
name: '振る舞い'
}
},
widget: {
behaviors: {
name: 'ストーリー別の機能',
showAll: '全て表示'
}
}
});
allure.api.addTranslation('es', {
tab: {
behaviors: {
name: 'Funcionalidades'
}
},
widget: {
behaviors: {
name: 'Funcionalidades por Historias de Usuario',
showAll: 'mostrar todo'
}
}
});
allure.api.addTranslation('kr', {
tab: {
behaviors: {
name: '동작'
}
},
widget: {
behaviors: {
name: '스토리별 기능',
showAll: '전체 보기'
}
}
});
allure.api.addTranslation('fr', {
tab: {
behaviors: {
name: 'Comportements'
}
},
widget: {
behaviors: {
name: 'Thèmes par histoires',
showAll: 'Montrer tout'
}
}
});
allure.api.addTranslation('pl', {
tab: {
behaviors: {
name: 'Zachowania'
}
},
widget: {
behaviors: {
name: 'Funkcje według historii',
showAll: 'pokaż wszystko'
}
}
});
allure.api.addTranslation('az', {
tab: {
behaviors: {
name: 'Davranışlar'
}
},
widget: {
behaviors: {
name: 'Hekayələr üzrə xüsusiyyətlər',
showAll: 'hamısını göstər'
}
}
});
allure.api.addTab('behaviors', {
title: 'tab.behaviors.name', icon: 'fa fa-list',
route: 'behaviors(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
onEnter: (function (testGroup, testResult, testResultTab) {
return new allure.components.TreeLayout({
testGroup: testGroup,
testResult: testResult,
testResultTab: testResultTab,
tabName: 'tab.behaviors.name',
baseUrl: 'behaviors',
url: 'data/behaviors.json',
csvUrl: 'data/behaviors.csv'
});
})
});
allure.api.addWidget('widgets', 'behaviors', allure.components.WidgetStatusView.extend({
rowTag: 'a',
title: 'widget.behaviors.name',
baseUrl: 'behaviors',
showLinks: true
}));
'use strict';
allure.api.addTranslation('en', {
tab: {
packages: {
name: 'Packages'
}
}
});
allure.api.addTranslation('ru', {
tab: {
packages: {
name: 'Пакеты'
}
}
});
allure.api.addTranslation('zh', {
tab: {
packages: {
name: '包'
}
}
});
allure.api.addTranslation('de', {
tab: {
packages: {
name: 'Pakete'
}
}
});
allure.api.addTranslation('nl', {
tab: {
packages: {
name: 'Packages'
}
}
});
allure.api.addTranslation('he', {
tab: {
packages: {
name: 'חבילות'
}
}
});
allure.api.addTranslation('br', {
tab: {
packages: {
name: 'Pacotes'
}
}
});
allure.api.addTranslation('ja', {
tab: {
packages: {
name: 'パッケージ'
}
}
});
allure.api.addTranslation('es', {
tab: {
packages: {
name: 'Paquetes'
}
}
});
allure.api.addTranslation('kr', {
tab: {
packages: {
name: '패키지'
}
}
});
allure.api.addTranslation('fr', {
tab: {
packages: {
name: 'Paquets'
}
}
});
allure.api.addTranslation('pl', {
tab: {
packages: {
name: 'Pakiety'
}
}
});
allure.api.addTranslation('az', {
tab: {
packages: {
name: 'Paketlər'
}
}
});
allure.api.addTab('packages', {
title: 'tab.packages.name', icon: 'fa fa-align-left',
route: 'packages(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
onEnter: (function (testGroup, testResult, testResultTab) {
return new allure.components.TreeLayout({
testGroup: testGroup,
testResult: testResult,
testResultTab: testResultTab,
tabName: 'tab.packages.name',
baseUrl: 'packages',
url: 'data/packages.json'
});
})
});
(function () {
var settings = allure.getPluginSettings('screen-diff', { diffType: 'diff' });
function renderImage(src) {
return (
'<div class="screen-diff__container">' +
'<img class="screen-diff__image" src="' +
src +
'">' +
'</div>'
);
}
function findImage(data, name) {
if (data.testStage && data.testStage.attachments) {
var matchedImage = data.testStage.attachments.filter(function (attachment) {
return attachment.name === name;
})[0];
if (matchedImage) {
return 'data/attachments/' + matchedImage.source;
}
}
return null;
}
function renderDiffContent(type, diffImage, actualImage, expectedImage) {
if (type === 'diff') {
if (diffImage) {
return renderImage(diffImage);
}
}
if (type === 'overlay' && expectedImage) {
return (
'<div class="screen-diff__overlay screen-diff__container">' +
'<img class="screen-diff__image" src="' +
expectedImage +
'">' +
'<div class="screen-diff__image-over">' +
'<img class="screen-diff__image" src="' +
actualImage +
'">' +
'</div>' +
'</div>'
);
}
if (actualImage) {
return renderImage(actualImage);
}
return 'No diff data provided';
}
var TestResultView = Backbone.Marionette.View.extend({
regions: {
subView: '.screen-diff-view',
},
template: function () {
return '<div class="screen-diff-view"></div>';
},
onRender: function () {
var data = this.model.toJSON();
var testType = data.labels.filter(function (label) {
return label.name === 'testType';
})[0];
var diffImage = findImage(data, 'diff');
var actualImage = findImage(data, 'actual');
var expectedImage = findImage(data, 'expected');
if (!testType || testType.value !== 'screenshotDiff') {
return;
}
this.showChildView(
'subView',
new ScreenDiffView({
diffImage: diffImage,
actualImage: actualImage,
expectedImage: expectedImage,
}),
);
},
});
var ErrorView = Backbone.Marionette.View.extend({
templateContext: function () {
return this.options;
},
template: function (data) {
return '<pre class="screen-diff-error">' + data.error + '</pre>';
},
});
var AttachmentView = Backbone.Marionette.View.extend({
regions: {
subView: '.screen-diff-view',
},
template: function () {
return '<div class="screen-diff-view"></div>';
},
onRender: function () {
jQuery
.getJSON(this.options.sourceUrl)
.then(this.renderScreenDiffView.bind(this), this.renderErrorView.bind(this));
},
renderErrorView: function (error) {
console.log(error);
this.showChildView(
'subView',
new ErrorView({
error: error.statusText,
}),
);
},
renderScreenDiffView: function (data) {
this.showChildView(
'subView',
new ScreenDiffView({
diffImage: data.diff,
actualImage: data.actual,
expectedImage: data.expected,
}),
);
},
});
var ScreenDiffView = Backbone.Marionette.View.extend({
className: 'pane__section',
events: function () {
return {
['click [name="screen-diff-type-' + this.cid + '"]']: 'onDiffTypeChange',
'mousemove .screen-diff__overlay': 'onOverlayMove',
};
},
initialize: function (options) {
this.diffImage = options.diffImage;
this.actualImage = options.actualImage;
this.expectedImage = options.expectedImage;
this.radioName = 'screen-diff-type-' + this.cid;
},
templateContext: function () {
return {
diffType: settings.get('diffType'),
diffImage: this.diffImage,
actualImage: this.actualImage,
expectedImage: this.expectedImage,
radioName: this.radioName,
};
},
template: function (data) {
if (!data.diffImage && !data.actualImage && !data.expectedImage) {
return '';
}
return (
'<h3 class="pane__section-title">Screen Diff</h3>' +
'<div class="screen-diff__content">' +
'<div class="screen-diff__switchers">' +
'<label><input type="radio" name="' +
data.radioName +
'" value="diff"> Show diff</label>' +
'<label><input type="radio" name="' +
data.radioName +
'" value="overlay"> Show overlay</label>' +
'</div>' +
renderDiffContent(
data.diffType,
data.diffImage,
data.actualImage,
data.expectedImage,
) +
'</div>'
);
},
adjustImageSize: function (event) {
var overImage = this.$(event.target);
overImage.width(overImage.width());
},
onRender: function () {
const diffType = settings.get('diffType');
this.$('[name="' + this.radioName + '"][value="' + diffType + '"]').prop(
'checked',
true,
);
if (diffType === 'overlay') {
this.$('.screen-diff__image-over img').on('load', this.adjustImageSize.bind(this));
}
},
onOverlayMove: function (event) {
var pageX = event.pageX;
var containerScroll = this.$('.screen-diff__container').scrollLeft();
var elementX = event.currentTarget.getBoundingClientRect().left;
var delta = pageX - elementX + containerScroll;
this.$('.screen-diff__image-over').width(delta);
},
onDiffTypeChange: function (event) {
settings.save('diffType', event.target.value);
this.render();
},
});
allure.api.addTestResultBlock(TestResultView, { position: 'before' });
allure.api.addAttachmentViewer('application/vnd.allure.image.diff', {
View: AttachmentView,
icon: 'fa fa-exchange',
});
})();
.screen-diff__switchers {
margin-bottom: 1em;
}
.screen-diff__switchers label + label {
margin-left: 1em;
}
.screen-diff__overlay {
position: relative;
cursor: col-resize;
}
.screen-diff__container {
overflow-x: auto;
}
.screen-diff__image-over {
top: 0;
left: 0;
bottom: 0;
background: #fff;
position: absolute;
overflow: hidden;
box-shadow: 2px 0 1px -1px #aaa;
}
.screen-diff-error {
color: #fd5a3e;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{"total":4,"items":[]}
\ No newline at end of file
[{"data":{"Test defects":2}}]
\ No newline at end of file
{"total":1,"items":[{"uid":"bdbf199525818fae7a8651db9eafe741","name":"Test defects","statistic":{"failed":0,"broken":2,"skipped":0,"passed":0,"unknown":0,"total":2}}]}
\ No newline at end of file
[{"data":{"duration":37032}}]
\ No newline at end of file
[{"uid":"9abc6c7cf617a4a4","name":"test_test1","time":{"start":1710401283662,"stop":1710401288555,"duration":4893},"status":"broken","severity":"normal"},{"uid":"9b3e1d21fa2693e3","name":"test_Digital_Editorial_Assistant","time":{"start":1710401254575,"stop":1710401276953,"duration":22378},"status":"broken","severity":"normal"},{"uid":"5b898c32d16842da","name":"test_add[鉴湖分社1-Rmb88888-账号不存在]","time":{"start":1710401290443,"stop":1710401291607,"duration":1164},"status":"passed","severity":"normal"},{"uid":"d341dd6b7d4cd405","name":"test_add[黑泽爽子-Rmb11111-密码错误]","time":{"start":1710401288989,"stop":1710401290188,"duration":1199},"status":"passed","severity":"normal"}]
\ No newline at end of file
[]
\ No newline at end of file
[]
\ No newline at end of file
[{"data":{"failed":0,"broken":2,"skipped":0,"passed":2,"unknown":0,"total":4}}]
\ No newline at end of file
[]
\ No newline at end of file
[{"data":{"run":4,"retry":0}}]
\ No newline at end of file
[{"uid":"9abc6c7cf617a4a4","name":"test_test1","time":{"start":1710401283662,"stop":1710401288555,"duration":4893},"status":"broken","severity":"normal"},{"uid":"9b3e1d21fa2693e3","name":"test_Digital_Editorial_Assistant","time":{"start":1710401254575,"stop":1710401276953,"duration":22378},"status":"broken","severity":"normal"},{"uid":"5b898c32d16842da","name":"test_add[鉴湖分社1-Rmb88888-账号不存在]","time":{"start":1710401290443,"stop":1710401291607,"duration":1164},"status":"passed","severity":"normal"},{"uid":"d341dd6b7d4cd405","name":"test_add[黑泽爽子-Rmb11111-密码错误]","time":{"start":1710401288989,"stop":1710401290188,"duration":1199},"status":"passed","severity":"normal"}]
\ No newline at end of file
[{"uid":"9abc6c7cf617a4a4","name":"test_test1","time":{"start":1710401283662,"stop":1710401288555,"duration":4893},"status":"broken","severity":"normal"},{"uid":"9b3e1d21fa2693e3","name":"test_Digital_Editorial_Assistant","time":{"start":1710401254575,"stop":1710401276953,"duration":22378},"status":"broken","severity":"normal"},{"uid":"5b898c32d16842da","name":"test_add[鉴湖分社1-Rmb88888-账号不存在]","time":{"start":1710401290443,"stop":1710401291607,"duration":1164},"status":"passed","severity":"normal"},{"uid":"d341dd6b7d4cd405","name":"test_add[黑泽爽子-Rmb11111-密码错误]","time":{"start":1710401288989,"stop":1710401290188,"duration":1199},"status":"passed","severity":"normal"}]
\ No newline at end of file
{"total":1,"items":[{"uid":"753b61216abbfea068f4ca4e530487c6","name":"script","statistic":{"failed":0,"broken":2,"skipped":0,"passed":2,"unknown":0,"total":4}}]}
\ No newline at end of file
{"reportName":"Allure Report","testRuns":[],"statistic":{"failed":0,"broken":2,"skipped":0,"passed":2,"unknown":0,"total":4},"time":{"start":1710401254575,"stop":1710401291607,"duration":37032,"minDuration":1164,"maxDuration":22378,"sumDuration":29634}}
\ No newline at end of file
......@@ -13,5 +13,5 @@ caps = {
}
appium_server_url = "http://127.0.0.1:4723/wd/hub"
user_name = "黑泽爽子"
password = "Rmb88888"
user_name = "17671436266"
password = "Xf123456"
# import time
#
# import pytest
# from selenium.webdriver.common.by import By
#
# from kuangjia.Base.BasePage import BasePage
# from kuangjia.common.cutils import get_text
#
#
# class TestLogin:
# @pytest.mark.parametrize("user,password,result",
# [("黑泽爽子", "Rmb11111", "密码错误"), ("黑泽爽子1", "Rmb88888", "账号不存在")])
# def test_add(self, user, password, result):
# base = BasePage()
# base.driver.get('https://rays7.5rs.me/login')
# base.find_ele((By.ID, 'userName')).send_keys(user)
# time.sleep(3)
# base.find_ele((By.ID, 'pwd')).send_keys(password)
# base.find_ele((By.XPATH, "//button[@class='ant-btn ant-btn-primary ant-btn-lg ant-btn-block']//span")).click()
# time.sleep(1)
# a = get_text((By.XPATH, '/html/body/div[2]/div/div/div/div/div/span[2]'))
# assert result == a
# print(a)
import os
# 这是一个示例 Python 脚本。
import pytest
import subprocess
pytest.main([r"D:\software\QiSelenium\kuangjia\script\test_create.py",
"-sv", "--alluredir", "./report/temp_jsonreport"])
os.system("allure generate ./report/temp_jsonreport -o ./report/html --clean")
#
# 主函数
pytest.main(['-v',"--alluredir=output/allure_report","--clean-alluredir"])
# 生成 HTML 报告
subprocess.call('allure generate output/allure_report -o output/allure_report_html --clean', shell=True)
\ No newline at end of file
{"uuid": "1cfb9aef-a511-4391-b565-13390478eb52", "children": ["096411b4-21c1-4abb-9cab-a39a56bf6b09"], "befores": [{"name": "_xunit_setup_class_fixture_TestCreate", "status": "passed", "start": 1710405771473, "stop": 1710405772733}], "afters": [{"name": "_xunit_setup_class_fixture_TestCreate::0", "status": "passed", "start": 1710405801623, "stop": 1710405803794}], "start": 1710405771473, "stop": 1710405803794}
\ No newline at end of file
{"name": "cs1", "status": "broken", "statusDetails": {"message": "selenium.common.exceptions.TimeoutException: Message:", "trace": "self = <script.test_Digital_Employees.TestCreate object at 0x000001EBCF8288B0>\n\n @allure.title(\"cs1\")\n def test_Digital_Editorial_Assistant(self):\n self.login.login(user_name, password)\n time.sleep(3)\n self.RAYSMPB.to_ai_studio()\n self.AIER.to_ai_room()\n> self.DEA.meld()\n\nscript\\test_Digital_Employees.py:39: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\npaga\\DigitalEmployeesPage.py:112: in meld\n self.find_ele(self.More).click()\nBase\\BasePage.py:20: in find_ele\n ele = WebDriverWait(self.driver, time, fre).until(lambda x: x.find_element(*loc))\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n\nself = <selenium.webdriver.support.wait.WebDriverWait (session=\"695d4b8941393c1d4a08135651fb009f\")>\nmethod = <function BasePage.find_ele.<locals>.<lambda> at 0x000001EBCF4E2430>\nmessage = ''\n\n def until(self, method, message=''):\n \"\"\"Calls the method provided with the driver as an argument until the \\\n return value is not False.\"\"\"\n screen = None\n stacktrace = None\n \n end_time = time.time() + self._timeout\n while True:\n try:\n value = method(self._driver)\n if value:\n return value\n except self._ignored_exceptions as exc:\n screen = getattr(exc, 'screen', None)\n stacktrace = getattr(exc, 'stacktrace', None)\n time.sleep(self._poll)\n if time.time() > end_time:\n break\n> raise TimeoutException(message, screen, stacktrace)\nE selenium.common.exceptions.TimeoutException: Message:\n\nD:\\Python\\Python38\\lib\\site-packages\\selenium\\webdriver\\support\\wait.py:80: TimeoutException"}, "start": 1710405775372, "stop": 1710405801560, "uuid": "096411b4-21c1-4abb-9cab-a39a56bf6b09", "historyId": "70a7e0a6eedd6b7b7fb4789fcbeee367", "testCaseId": "70a7e0a6eedd6b7b7fb4789fcbeee367", "fullName": "script.test_Digital_Employees.TestCreate#test_Digital_Editorial_Assistant", "labels": [{"name": "parentSuite", "value": "script"}, {"name": "suite", "value": "test_Digital_Employees"}, {"name": "subSuite", "value": "TestCreate"}, {"name": "host", "value": "DCG027098"}, {"name": "thread", "value": "23752-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "script.test_Digital_Employees"}]}
\ No newline at end of file
{"uuid": "ce8ecc60-0094-4366-bb14-55e3f10cac8f", "children": ["096411b4-21c1-4abb-9cab-a39a56bf6b09"], "befores": [{"name": "_xunit_setup_method_fixture_TestCreate", "status": "passed", "start": 1710405772734, "stop": 1710405775371}], "afters": [{"name": "_xunit_setup_method_fixture_TestCreate::0", "status": "passed", "start": 1710405801622, "stop": 1710405801622}], "start": 1710405772734, "stop": 1710405801622}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
"Epic","Feature","Story","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"","","","0","1","0","0","0"
{"uid":"b1a8273437954620fa374b796ffaacdd","name":"behaviors","children":[{"name":"cs1","uid":"dfb2eccfd67fc05c","parentUid":"b1a8273437954620fa374b796ffaacdd","status":"broken","time":{"start":1710405775372,"stop":1710405801560,"duration":26188},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":[],"tags":[]}]}
\ No newline at end of file
"Category","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"Test defects","0","1","0","0","0"
{"uid":"4b4757e66a1912dae1a509f688f20b0f","name":"categories","children":[{"name":"Test defects","children":[{"name":"selenium.common.exceptions.TimeoutException: Message:","children":[{"name":"cs1","uid":"dfb2eccfd67fc05c","parentUid":"31bb78a6a95ede3f78b260ed048910d8","status":"broken","time":{"start":1710405775372,"stop":1710405801560,"duration":26188},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":[],"tags":[]}],"uid":"31bb78a6a95ede3f78b260ed048910d8"}],"uid":"bdbf199525818fae7a8651db9eafe741"}]}
\ No newline at end of file
{"uid":"83edc06c07f9ae9e47eb6dd1b683e4e2","name":"packages","children":[{"name":"script.test_Digital_Employees","children":[{"name":"cs1","uid":"dfb2eccfd67fc05c","parentUid":"bcd985c344b7423d724791986772d7f3","status":"broken","time":{"start":1710405775372,"stop":1710405801560,"duration":26188},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":[],"tags":[]}],"uid":"script.test_Digital_Employees"}]}
\ No newline at end of file
"Status","Start Time","Stop Time","Duration in ms","Parent Suite","Suite","Sub Suite","Test Class","Test Method","Name","Description"
"broken","Thu Mar 14 16:42:55 CST 2024","Thu Mar 14 16:43:21 CST 2024","26188","script","test_Digital_Employees","TestCreate","","","cs1",""
{"uid":"98d3104e051c652961429bf95fa0b5d6","name":"suites","children":[{"name":"script","children":[{"name":"test_Digital_Employees","children":[{"name":"TestCreate","children":[{"name":"cs1","uid":"dfb2eccfd67fc05c","parentUid":"7f7752d82645e785d083557cb839b452","status":"broken","time":{"start":1710405775372,"stop":1710405801560,"duration":26188},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":[],"tags":[]}],"uid":"7f7752d82645e785d083557cb839b452"}],"uid":"c4d4959011d232796dc870dbbef63c8d"}],"uid":"753b61216abbfea068f4ca4e530487c6"}]}
\ No newline at end of file
{"uid":"dfb2eccfd67fc05c","name":"cs1","fullName":"script.test_Digital_Employees.TestCreate#test_Digital_Editorial_Assistant","historyId":"70a7e0a6eedd6b7b7fb4789fcbeee367","time":{"start":1710405775372,"stop":1710405801560,"duration":26188},"status":"broken","statusMessage":"selenium.common.exceptions.TimeoutException: Message:","statusTrace":"self = <script.test_Digital_Employees.TestCreate object at 0x000001EBCF8288B0>\n\n @allure.title(\"cs1\")\n def test_Digital_Editorial_Assistant(self):\n self.login.login(user_name, password)\n time.sleep(3)\n self.RAYSMPB.to_ai_studio()\n self.AIER.to_ai_room()\n> self.DEA.meld()\n\nscript\\test_Digital_Employees.py:39: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\npaga\\DigitalEmployeesPage.py:112: in meld\n self.find_ele(self.More).click()\nBase\\BasePage.py:20: in find_ele\n ele = WebDriverWait(self.driver, time, fre).until(lambda x: x.find_element(*loc))\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n\nself = <selenium.webdriver.support.wait.WebDriverWait (session=\"695d4b8941393c1d4a08135651fb009f\")>\nmethod = <function BasePage.find_ele.<locals>.<lambda> at 0x000001EBCF4E2430>\nmessage = ''\n\n def until(self, method, message=''):\n \"\"\"Calls the method provided with the driver as an argument until the \\\n return value is not False.\"\"\"\n screen = None\n stacktrace = None\n \n end_time = time.time() + self._timeout\n while True:\n try:\n value = method(self._driver)\n if value:\n return value\n except self._ignored_exceptions as exc:\n screen = getattr(exc, 'screen', None)\n stacktrace = getattr(exc, 'stacktrace', None)\n time.sleep(self._poll)\n if time.time() > end_time:\n break\n> raise TimeoutException(message, screen, stacktrace)\nE selenium.common.exceptions.TimeoutException: Message:\n\nD:\\Python\\Python38\\lib\\site-packages\\selenium\\webdriver\\support\\wait.py:80: TimeoutException","flaky":false,"newFailed":false,"newBroken":false,"newPassed":false,"retriesCount":0,"retriesStatusChange":false,"beforeStages":[{"name":"_xunit_setup_class_fixture_TestCreate","time":{"start":1710405771473,"stop":1710405772733,"duration":1260},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"hasContent":false,"attachmentStep":false,"stepsCount":0},{"name":"_xunit_setup_method_fixture_TestCreate","time":{"start":1710405772734,"stop":1710405775371,"duration":2637},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"hasContent":false,"attachmentStep":false,"stepsCount":0}],"afterStages":[{"name":"_xunit_setup_method_fixture_TestCreate::0","time":{"start":1710405801622,"stop":1710405801622,"duration":0},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"hasContent":false,"attachmentStep":false,"stepsCount":0},{"name":"_xunit_setup_class_fixture_TestCreate::0","time":{"start":1710405801623,"stop":1710405803794,"duration":2171},"status":"passed","steps":[],"attachments":[],"parameters":[],"shouldDisplayMessage":false,"attachmentsCount":0,"hasContent":false,"attachmentStep":false,"stepsCount":0}],"labels":[{"name":"parentSuite","value":"script"},{"name":"suite","value":"test_Digital_Employees"},{"name":"subSuite","value":"TestCreate"},{"name":"host","value":"DCG027098"},{"name":"thread","value":"23752-MainThread"},{"name":"framework","value":"pytest"},{"name":"language","value":"cpython3"},{"name":"package","value":"script.test_Digital_Employees"},{"name":"resultFormat","value":"allure2"}],"parameters":[],"links":[],"hidden":false,"retry":false,"extra":{"severity":"normal","retries":[],"categories":[{"name":"Test defects","matchedStatuses":[],"flaky":false}],"tags":[]},"source":"dfb2eccfd67fc05c.json","parameterValues":[]}
\ No newline at end of file
{"uid":"ab17fc5a4eb3bca4b216b548c7f9fcbc","name":"timeline","children":[{"name":"DCG027098","children":[{"name":"23752-MainThread","children":[{"name":"cs1","uid":"dfb2eccfd67fc05c","parentUid":"09dc31a1d9651d22ca7e4a6146c69553","status":"broken","time":{"start":1710405775372,"stop":1710405801560,"duration":26188},"flaky":false,"newFailed":false,"newPassed":false,"newBroken":false,"retriesCount":0,"retriesStatusChange":false,"parameters":[],"tags":[]}],"uid":"09dc31a1d9651d22ca7e4a6146c69553"}],"uid":"8e3386384176f0e6d977ee76189eb541"}]}
\ No newline at end of file
launch_status failed=0 1710405804000000000
launch_status broken=1 1710405804000000000
launch_status passed=0 1710405804000000000
launch_status skipped=0 1710405804000000000
launch_status unknown=0 1710405804000000000
launch_time duration=26188 1710405804000000000
launch_time min_duration=26188 1710405804000000000
launch_time max_duration=26188 1710405804000000000
launch_time sum_duration=26188 1710405804000000000
launch_problems test_defects=1 1710405804000000000
launch_retries retries=0 1710405804000000000
launch_retries run=1 1710405804000000000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Allure Report summary mail</title>
</head>
<body>
Mail body
</body>
</html>
launch_status_failed 0
launch_status_broken 1
launch_status_passed 0
launch_status_skipped 0
launch_status_unknown 0
launch_time_duration 26188
launch_time_min_duration 26188
launch_time_max_duration 26188
launch_time_sum_duration 26188
launch_problems_test_defects 1
launch_retries_retries 0
launch_retries_run 1
[{"data":{"Test defects":1}}]
\ No newline at end of file
[{"data":{"duration":26188}}]
\ No newline at end of file
[{"data":{"failed":0,"broken":1,"skipped":0,"passed":0,"unknown":0,"total":1}}]
\ No newline at end of file
{"70a7e0a6eedd6b7b7fb4789fcbeee367":{"statistic":{"failed":0,"broken":1,"skipped":0,"passed":0,"unknown":0,"total":1},"items":[{"uid":"dfb2eccfd67fc05c","status":"broken","statusDetails":"selenium.common.exceptions.TimeoutException: Message:","time":{"start":1710405775372,"stop":1710405801560,"duration":26188}}]}}
\ No newline at end of file
[{"data":{"run":1,"retry":0}}]
\ No newline at end of file
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<title>Allure Report</title>
<link rel="favicon" href="favicon.ico">
<link rel="stylesheet" type="text/css" href="styles.css">
<link rel="stylesheet" type="text/css" href="plugin/screen-diff/styles.css">
</head>
<body>
<div id="alert"></div>
<div id="content">
<span class="spinner">
<span class="spinner__circle"></span>
</span>
</div>
<div id="popup"></div>
<script src="app.js"></script>
<script src="plugin/behaviors/index.js"></script>
<script src="plugin/packages/index.js"></script>
<script src="plugin/screen-diff/index.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FVWC4GKEYS"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-FVWC4GKEYS', {
'allureVersion': 'dev',
'reportUuid': '6e029632-55a4-4366-8639-1e64fe95d588',
'single_file': false
});
</script>
</body>
</html>
'use strict';
allure.api.addTranslation('en', {
tab: {
behaviors: {
name: 'Behaviors'
}
},
widget: {
behaviors: {
name: 'Features by stories',
showAll: 'show all'
}
}
});
allure.api.addTranslation('ru', {
tab: {
behaviors: {
name: 'Функциональность'
}
},
widget: {
behaviors: {
name: 'Функциональность',
showAll: 'показать все'
}
}
});
allure.api.addTranslation('zh', {
tab: {
behaviors: {
name: '功能'
}
},
widget: {
behaviors: {
name: '特性场景',
showAll: '显示所有'
}
}
});
allure.api.addTranslation('de', {
tab: {
behaviors: {
name: 'Verhalten'
}
},
widget: {
behaviors: {
name: 'Features nach Stories',
showAll: 'Zeige alle'
}
}
});
allure.api.addTranslation('nl', {
tab: {
behaviors: {
name: 'Functionaliteit'
}
},
widget: {
behaviors: {
name: 'Features en story’s',
showAll: 'Toon alle'
}
}
});
allure.api.addTranslation('he', {
tab: {
behaviors: {
name: 'התנהגויות'
}
},
widget: {
behaviors: {
name: 'תכונות לפי סיפורי משתמש',
showAll: 'הצג הכול'
}
}
});
allure.api.addTranslation('br', {
tab: {
behaviors: {
name: 'Comportamentos'
}
},
widget: {
behaviors: {
name: 'Funcionalidades por história',
showAll: 'Mostrar tudo'
}
}
});
allure.api.addTranslation('ja', {
tab: {
behaviors: {
name: '振る舞い'
}
},
widget: {
behaviors: {
name: 'ストーリー別の機能',
showAll: '全て表示'
}
}
});
allure.api.addTranslation('es', {
tab: {
behaviors: {
name: 'Funcionalidades'
}
},
widget: {
behaviors: {
name: 'Funcionalidades por Historias de Usuario',
showAll: 'mostrar todo'
}
}
});
allure.api.addTranslation('kr', {
tab: {
behaviors: {
name: '동작'
}
},
widget: {
behaviors: {
name: '스토리별 기능',
showAll: '전체 보기'
}
}
});
allure.api.addTranslation('fr', {
tab: {
behaviors: {
name: 'Comportements'
}
},
widget: {
behaviors: {
name: 'Thèmes par histoires',
showAll: 'Montrer tout'
}
}
});
allure.api.addTranslation('pl', {
tab: {
behaviors: {
name: 'Zachowania'
}
},
widget: {
behaviors: {
name: 'Funkcje według historii',
showAll: 'pokaż wszystko'
}
}
});
allure.api.addTranslation('az', {
tab: {
behaviors: {
name: 'Davranışlar'
}
},
widget: {
behaviors: {
name: 'Hekayələr üzrə xüsusiyyətlər',
showAll: 'hamısını göstər'
}
}
});
allure.api.addTab('behaviors', {
title: 'tab.behaviors.name', icon: 'fa fa-list',
route: 'behaviors(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
onEnter: (function (testGroup, testResult, testResultTab) {
return new allure.components.TreeLayout({
testGroup: testGroup,
testResult: testResult,
testResultTab: testResultTab,
tabName: 'tab.behaviors.name',
baseUrl: 'behaviors',
url: 'data/behaviors.json',
csvUrl: 'data/behaviors.csv'
});
})
});
allure.api.addWidget('widgets', 'behaviors', allure.components.WidgetStatusView.extend({
rowTag: 'a',
title: 'widget.behaviors.name',
baseUrl: 'behaviors',
showLinks: true
}));
'use strict';
allure.api.addTranslation('en', {
tab: {
packages: {
name: 'Packages'
}
}
});
allure.api.addTranslation('ru', {
tab: {
packages: {
name: 'Пакеты'
}
}
});
allure.api.addTranslation('zh', {
tab: {
packages: {
name: '包'
}
}
});
allure.api.addTranslation('de', {
tab: {
packages: {
name: 'Pakete'
}
}
});
allure.api.addTranslation('nl', {
tab: {
packages: {
name: 'Packages'
}
}
});
allure.api.addTranslation('he', {
tab: {
packages: {
name: 'חבילות'
}
}
});
allure.api.addTranslation('br', {
tab: {
packages: {
name: 'Pacotes'
}
}
});
allure.api.addTranslation('ja', {
tab: {
packages: {
name: 'パッケージ'
}
}
});
allure.api.addTranslation('es', {
tab: {
packages: {
name: 'Paquetes'
}
}
});
allure.api.addTranslation('kr', {
tab: {
packages: {
name: '패키지'
}
}
});
allure.api.addTranslation('fr', {
tab: {
packages: {
name: 'Paquets'
}
}
});
allure.api.addTranslation('pl', {
tab: {
packages: {
name: 'Pakiety'
}
}
});
allure.api.addTranslation('az', {
tab: {
packages: {
name: 'Paketlər'
}
}
});
allure.api.addTab('packages', {
title: 'tab.packages.name', icon: 'fa fa-align-left',
route: 'packages(/)(:testGroup)(/)(:testResult)(/)(:testResultTab)(/)',
onEnter: (function (testGroup, testResult, testResultTab) {
return new allure.components.TreeLayout({
testGroup: testGroup,
testResult: testResult,
testResultTab: testResultTab,
tabName: 'tab.packages.name',
baseUrl: 'packages',
url: 'data/packages.json'
});
})
});
(function () {
var settings = allure.getPluginSettings('screen-diff', { diffType: 'diff' });
function renderImage(src) {
return (
'<div class="screen-diff__container">' +
'<img class="screen-diff__image" src="' +
src +
'">' +
'</div>'
);
}
function findImage(data, name) {
if (data.testStage && data.testStage.attachments) {
var matchedImage = data.testStage.attachments.filter(function (attachment) {
return attachment.name === name;
})[0];
if (matchedImage) {
return 'data/attachments/' + matchedImage.source;
}
}
return null;
}
function renderDiffContent(type, diffImage, actualImage, expectedImage) {
if (type === 'diff') {
if (diffImage) {
return renderImage(diffImage);
}
}
if (type === 'overlay' && expectedImage) {
return (
'<div class="screen-diff__overlay screen-diff__container">' +
'<img class="screen-diff__image" src="' +
expectedImage +
'">' +
'<div class="screen-diff__image-over">' +
'<img class="screen-diff__image" src="' +
actualImage +
'">' +
'</div>' +
'</div>'
);
}
if (actualImage) {
return renderImage(actualImage);
}
return 'No diff data provided';
}
var TestResultView = Backbone.Marionette.View.extend({
regions: {
subView: '.screen-diff-view',
},
template: function () {
return '<div class="screen-diff-view"></div>';
},
onRender: function () {
var data = this.model.toJSON();
var testType = data.labels.filter(function (label) {
return label.name === 'testType';
})[0];
var diffImage = findImage(data, 'diff');
var actualImage = findImage(data, 'actual');
var expectedImage = findImage(data, 'expected');
if (!testType || testType.value !== 'screenshotDiff') {
return;
}
this.showChildView(
'subView',
new ScreenDiffView({
diffImage: diffImage,
actualImage: actualImage,
expectedImage: expectedImage,
}),
);
},
});
var ErrorView = Backbone.Marionette.View.extend({
templateContext: function () {
return this.options;
},
template: function (data) {
return '<pre class="screen-diff-error">' + data.error + '</pre>';
},
});
var AttachmentView = Backbone.Marionette.View.extend({
regions: {
subView: '.screen-diff-view',
},
template: function () {
return '<div class="screen-diff-view"></div>';
},
onRender: function () {
jQuery
.getJSON(this.options.sourceUrl)
.then(this.renderScreenDiffView.bind(this), this.renderErrorView.bind(this));
},
renderErrorView: function (error) {
console.log(error);
this.showChildView(
'subView',
new ErrorView({
error: error.statusText,
}),
);
},
renderScreenDiffView: function (data) {
this.showChildView(
'subView',
new ScreenDiffView({
diffImage: data.diff,
actualImage: data.actual,
expectedImage: data.expected,
}),
);
},
});
var ScreenDiffView = Backbone.Marionette.View.extend({
className: 'pane__section',
events: function () {
return {
['click [name="screen-diff-type-' + this.cid + '"]']: 'onDiffTypeChange',
'mousemove .screen-diff__overlay': 'onOverlayMove',
};
},
initialize: function (options) {
this.diffImage = options.diffImage;
this.actualImage = options.actualImage;
this.expectedImage = options.expectedImage;
this.radioName = 'screen-diff-type-' + this.cid;
},
templateContext: function () {
return {
diffType: settings.get('diffType'),
diffImage: this.diffImage,
actualImage: this.actualImage,
expectedImage: this.expectedImage,
radioName: this.radioName,
};
},
template: function (data) {
if (!data.diffImage && !data.actualImage && !data.expectedImage) {
return '';
}
return (
'<h3 class="pane__section-title">Screen Diff</h3>' +
'<div class="screen-diff__content">' +
'<div class="screen-diff__switchers">' +
'<label><input type="radio" name="' +
data.radioName +
'" value="diff"> Show diff</label>' +
'<label><input type="radio" name="' +
data.radioName +
'" value="overlay"> Show overlay</label>' +
'</div>' +
renderDiffContent(
data.diffType,
data.diffImage,
data.actualImage,
data.expectedImage,
) +
'</div>'
);
},
adjustImageSize: function (event) {
var overImage = this.$(event.target);
overImage.width(overImage.width());
},
onRender: function () {
const diffType = settings.get('diffType');
this.$('[name="' + this.radioName + '"][value="' + diffType + '"]').prop(
'checked',
true,
);
if (diffType === 'overlay') {
this.$('.screen-diff__image-over img').on('load', this.adjustImageSize.bind(this));
}
},
onOverlayMove: function (event) {
var pageX = event.pageX;
var containerScroll = this.$('.screen-diff__container').scrollLeft();
var elementX = event.currentTarget.getBoundingClientRect().left;
var delta = pageX - elementX + containerScroll;
this.$('.screen-diff__image-over').width(delta);
},
onDiffTypeChange: function (event) {
settings.save('diffType', event.target.value);
this.render();
},
});
allure.api.addTestResultBlock(TestResultView, { position: 'before' });
allure.api.addAttachmentViewer('application/vnd.allure.image.diff', {
View: AttachmentView,
icon: 'fa fa-exchange',
});
})();
.screen-diff__switchers {
margin-bottom: 1em;
}
.screen-diff__switchers label + label {
margin-left: 1em;
}
.screen-diff__overlay {
position: relative;
cursor: col-resize;
}
.screen-diff__container {
overflow-x: auto;
}
.screen-diff__image-over {
top: 0;
left: 0;
bottom: 0;
background: #fff;
position: absolute;
overflow: hidden;
box-shadow: 2px 0 1px -1px #aaa;
}
.screen-diff-error {
color: #fd5a3e;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{"total":1,"items":[]}
\ No newline at end of file
[{"data":{"Test defects":1}}]
\ No newline at end of file
{"total":1,"items":[{"uid":"bdbf199525818fae7a8651db9eafe741","name":"Test defects","statistic":{"failed":0,"broken":1,"skipped":0,"passed":0,"unknown":0,"total":1}}]}
\ No newline at end of file
[{"data":{"duration":26188}}]
\ No newline at end of file
[{"uid":"dfb2eccfd67fc05c","name":"cs1","time":{"start":1710405775372,"stop":1710405801560,"duration":26188},"status":"broken","severity":"normal"}]
\ No newline at end of file
[{"data":{"failed":0,"broken":1,"skipped":0,"passed":0,"unknown":0,"total":1}}]
\ No newline at end of file
[{"data":{"run":1,"retry":0}}]
\ No newline at end of file
[{"uid":"dfb2eccfd67fc05c","name":"cs1","time":{"start":1710405775372,"stop":1710405801560,"duration":26188},"status":"broken","severity":"normal"}]
\ No newline at end of file
[{"uid":"dfb2eccfd67fc05c","name":"cs1","time":{"start":1710405775372,"stop":1710405801560,"duration":26188},"status":"broken","severity":"normal"}]
\ No newline at end of file
{"total":1,"items":[{"uid":"753b61216abbfea068f4ca4e530487c6","name":"script","statistic":{"failed":0,"broken":1,"skipped":0,"passed":0,"unknown":0,"total":1}}]}
\ No newline at end of file
{"reportName":"Allure Report","testRuns":[],"statistic":{"failed":0,"broken":1,"skipped":0,"passed":0,"unknown":0,"total":1},"time":{"start":1710405775372,"stop":1710405801560,"duration":26188,"minDuration":26188,"maxDuration":26188,"sumDuration":26188}}
\ No newline at end of file
......@@ -17,17 +17,17 @@ class DEA(BasePage):
self.Digital_editorial_assistant = (By.XPATH,
"(//div[@class='studio-name'][contains(text(),'数字编辑助理')])[1]")
# 更多
self.More = (By.XPATH, "//div[@class='button-list-item more-btn']")
self.More = (By.XPATH, "//div[@class='button-list-item more-btn hover-bg-color hover-text-color']")
# 数字编辑助理-制作英语听力配音
self.Make_English_listening_dubbing = (
By.XPATH, "//div[@class='button-type-list']//div[1]//div[2]//div[1]//div[1]//div[1]")
# 输入框
self.Input_field = (By.XPATH, "//div[@class='Editor-inner']")
self.Input_field = (By.XPATH, "//div[@role='textbox']")
# 发送
self.send = (By.XPATH, "//button[@class='send-button']")
# 数字编辑助理-推送英语配音
self.Make_dubbing = (By.XPATH,
"(//span[contains(text(),'制作英语听力')])[2]")
"//span[contains(text(),'制作英语听力')]")
# 数字编辑助理-制作多角色配音
self.Make_multi_character_voice_overs = (
By.XPATH, "//div[@class='button-type-list']//div[1]//div[2]//div[2]//div[1]//div[1]")
......@@ -249,6 +249,6 @@ if __name__ == '__main__':
Login().login(user_name, password)
RAYSMPB().to_ai_studio()
AIER().to_ai_room()
DEA().mpbokpra()
Del().delete()
DEA().meld()
# Del().delete()
DriverTools.quit_driver()
[pytest]
disable_test_id_escaping_and_forfeit_all_rights_to_community_support = True
;addopts = -s --html=report/admin/test_admin_login.html --self-contained-html
;addopts = pytest.main([r'--alluredir=./report/temp_jsonreport'])
addopts =-v --alluredir=output/allure_report --clean-alluredir
testpaths = ./script
python_files = test*
python_files = test_Digital_Employees.py
python_classes = Test*
python_functions = test*
\ No newline at end of file
{"uuid": "94d17211-425b-4d76-a5d4-05152f96921b", "children": ["fe3c1330-dd14-4bb4-9d96-b3ecdd6a3496"], "befores": [{"name": "_xunit_setup_class_fixture_TestCreate", "status": "passed", "start": 1710405393269, "stop": 1710405394538}], "afters": [{"name": "_xunit_setup_class_fixture_TestCreate::0", "status": "passed", "start": 1710405418378, "stop": 1710405420546}], "start": 1710405393269, "stop": 1710405420546}
\ No newline at end of file
{"uuid": "9813a949-c64e-42b6-9884-f6a7b0bdbf89", "children": ["fe3c1330-dd14-4bb4-9d96-b3ecdd6a3496"], "befores": [{"name": "_xunit_setup_method_fixture_TestCreate", "status": "passed", "start": 1710405394538, "stop": 1710405395872}], "afters": [{"name": "_xunit_setup_method_fixture_TestCreate::0", "status": "passed", "start": 1710405418377, "stop": 1710405418377}], "start": 1710405394538, "stop": 1710405418377}
\ No newline at end of file
{"name": "cs1", "status": "broken", "statusDetails": {"message": "selenium.common.exceptions.TimeoutException: Message:", "trace": "self = <script.test_Digital_Employees.TestCreate object at 0x0000013CED203820>\n\n @allure.title(\"cs1\")\n def test_Digital_Editorial_Assistant(self):\n self.login.login(user_name, password)\n time.sleep(3)\n self.RAYSMPB.to_ai_studio()\n self.AIER.to_ai_room()\n> self.DEA.meld()\n\ntest_Digital_Employees.py:39: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n..\\paga\\DigitalEmployeesPage.py:112: in meld\n self.find_ele(self.More).click()\n..\\Base\\BasePage.py:20: in find_ele\n ele = WebDriverWait(self.driver, time, fre).until(lambda x: x.find_element(*loc))\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\n\nself = <selenium.webdriver.support.wait.WebDriverWait (session=\"8cccefe034e52a847526a2d5e8682d7f\")>\nmethod = <function BasePage.find_ele.<locals>.<lambda> at 0x0000013CECE0F3A0>\nmessage = ''\n\n def until(self, method, message=''):\n \"\"\"Calls the method provided with the driver as an argument until the \\\n return value is not False.\"\"\"\n screen = None\n stacktrace = None\n \n end_time = time.time() + self._timeout\n while True:\n try:\n value = method(self._driver)\n if value:\n return value\n except self._ignored_exceptions as exc:\n screen = getattr(exc, 'screen', None)\n stacktrace = getattr(exc, 'stacktrace', None)\n time.sleep(self._poll)\n if time.time() > end_time:\n break\n> raise TimeoutException(message, screen, stacktrace)\nE selenium.common.exceptions.TimeoutException: Message:\n\nD:\\Python\\Python38\\lib\\site-packages\\selenium\\webdriver\\support\\wait.py:80: TimeoutException"}, "start": 1710405395873, "stop": 1710405418303, "uuid": "fe3c1330-dd14-4bb4-9d96-b3ecdd6a3496", "historyId": "70a7e0a6eedd6b7b7fb4789fcbeee367", "testCaseId": "70a7e0a6eedd6b7b7fb4789fcbeee367", "fullName": "script.test_Digital_Employees.TestCreate#test_Digital_Editorial_Assistant", "labels": [{"name": "parentSuite", "value": "script"}, {"name": "suite", "value": "test_Digital_Employees"}, {"name": "subSuite", "value": "TestCreate"}, {"name": "host", "value": "DCG027098"}, {"name": "thread", "value": "26376-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "script.test_Digital_Employees"}]}
\ No newline at end of file
import time
import allure
import pytest
from common.cutils import get_text
......@@ -29,6 +30,7 @@ class TestCreate:
DriverTools.quit_driver()
# 数字编辑助理流程
@allure.title("cs1")
def test_Digital_Editorial_Assistant(self):
self.login.login(user_name, password)
time.sleep(3)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment