{"name": "登陆失败用例,用户名为15574413902,密码123458", "status": "failed", "statusDetails": {"message": "AssertionError: 登陆失败\nassert '手机号或密码错误！' == '手机号码错误'\n  \n  - 手机号码错误\n  + 手机号或密码错误！\n  ?    ++   +", "trace": "self = <test_case.login_test.TestCase object at 0x00000183D7F412A0>\ndriver = <selenium.webdriver.chrome.webdriver.WebDriver (session=\"bd1dc110aadabf08be302a121da2f330\")>\nusername = 15574413902, passoword = 123458, expect = '手机号码错误'\n\n    @allure.feature('登陆功能')\n    @allure.story(\"这是登陆失败功能噢\")\n    @allure.title(\"登陆-失败用例\")\n    @allure.testcase(\"用例链接地址:http://120.25.127.201:18001/\")\n    @allure.issue(\"缺陷链接地址:http://120.25.127.201:18001/.html\")\n    @allure.description(\"登陆失败,这是没问题的描述\")\n    @allure.severity(\"blocker\")\n    @pytest.mark.parametrize(\"username,passoword,expect\", load_excel(\"./data/登陆账号失败.xlsx\"))\n    def test_login_fail(self, driver, username, passoword, expect):\n        allure.dynamic.title(f\"登陆失败用例,用户名为{username},密码{passoword}\")\n        self.login_page = LoginPage(driver)\n        self.login_page.login(username, passoword)\n        # 断言\n        sjmsg=self.login_page.get_result_text()\n>       assert sjmsg == expect, \"登陆失败\"\nE       AssertionError: 登陆失败\nE       assert '手机号或密码错误！' == '手机号码错误'\nE         \nE         - 手机号码错误\nE         + 手机号或密码错误！\nE         ?    ++   +\n\ntest_case\\login_test.py:39: AssertionError"}, "description": "登陆失败,这是没问题的描述", "steps": [{"name": "访问浏览器", "status": "passed", "steps": [{"name": "访问", "status": "passed", "parameters": [{"name": "url", "value": "'http://novel.hctestedu.com/user/login.html'"}], "start": 1752642890586, "stop": 1752642892047}], "start": 1752642890586, "stop": 1752642892047}, {"name": "输入用户名15574413902", "status": "passed", "steps": [{"name": "元素定位", "status": "passed", "parameters": [{"name": "name", "value": "'xpath'"}, {"name": "value", "value": "'//input[@id='txtUName']'"}], "start": 1752642892047, "stop": 1752642892071}], "start": 1752642892047, "stop": 1752642892144}, {"name": "输入密码123458", "status": "passed", "steps": [{"name": "元素定位", "status": "passed", "parameters": [{"name": "name", "value": "'xpath'"}, {"name": "value", "value": "'//input[@id='txtPassword']'"}], "start": 1752642892145, "stop": 1752642892167}], "start": 1752642892144, "stop": 1752642892201}, {"name": "点击登陆", "status": "passed", "steps": [{"name": "点击", "status": "passed", "steps": [{"name": "元素定位", "status": "passed", "parameters": [{"name": "name", "value": "'xpath'"}, {"name": "value", "value": "'//input[@id='btnLogin']'"}], "start": 1752642892202, "stop": 1752642892219}], "parameters": [{"name": "name", "value": "'xpath'"}, {"name": "value", "value": "'//input[@id='btnLogin']'"}], "start": 1752642892201, "stop": 1752642892270}], "start": 1752642892201, "stop": 1752642892270}, {"name": "获得返回文本", "status": "passed", "parameters": [{"name": "name", "value": "'xpath'"}, {"name": "value", "value": "'//*[@id=\"LabErr\"]'"}], "start": 1752642892270, "stop": 1752642892820}, {"name": "添加失败的截图 ---> ", "status": "passed", "attachments": [{"name": "失败的截图", "source": "36993e69-4ad8-4632-9dd1-305eb3349e7d-attachment.png", "type": "image/png"}], "start": 1752642892827, "stop": 1752642892952}], "parameters": [{"name": "username", "value": "15574413902"}, {"name": "passoword", "value": "123458"}, {"name": "expect", "value": "'手机号码错误'"}], "start": 1752642890585, "stop": 1752642892820, "uuid": "f6866a99-5eaf-4f60-a1fc-ca6694eb78cc", "historyId": "c49c201d6832574cfa34dcd356ed2cda", "testCaseId": "9944dad59fde8161031337d81eb6efd8", "fullName": "test_case.login_test.TestCase#test_login_fail", "labels": [{"name": "feature", "value": "登陆功能"}, {"name": "severity", "value": "blocker"}, {"name": "story", "value": "这是登陆失败功能噢"}, {"name": "epic", "value": "读书屋项目"}, {"name": "parentSuite", "value": "test_case"}, {"name": "suite", "value": "login_test"}, {"name": "subSuite", "value": "TestCase"}, {"name": "host", "value": "chiyu"}, {"name": "thread", "value": "24028-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.login_test"}], "links": [{"type": "issue", "url": "缺陷链接地址:http://120.25.127.201:18001/.html", "name": "缺陷链接地址:http://120.25.127.201:18001/.html"}, {"type": "tms", "url": "用例链接地址:http://120.25.127.201:18001/", "name": "用例链接地址:http://120.25.127.201:18001/"}]}