df03976a680925b8.json 7.51 KB
Newer Older
xcn committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
{
  "uid" : "df03976a680925b8",
  "name" : "正向用例",
  "fullName" : "test_case.test_dependecy_template.test_dependecy_template.TestDependency#test_add_demo",
  "historyId" : "8721a2d64cab6ba6f324c88ca9e788fa",
  "time" : {
    "start" : 1704358247325,
    "stop" : 1704358247417,
    "duration" : 92
  },
  "status" : "failed",
  "statusMessage" : "AssertionError: 断言失败",
  "statusTrace" : "self = <InterfaceAutoTest.test_case.test_dependecy_template.test_dependecy_template.TestDependency object at 0x0000020F9B6037F0>\n\n    @allure.feature(\"维度管理\")\n    @allure.story(\"添加维度\")\n    @allure.title(\"正向用例\")\n    @allure.severity(\"\")\n    @pytest.mark.dependency(depends=[\"TestDependency::test_login\"])\n    def test_add_demo(self):\n        add_dem_url = \"http://120.46.172.186:8080/api/demension/v1/dem/addDem\"\n        add_dem_data = {\n            \"code\": \"dem_code_test_528\",\n            \"description\": \"测试维度528\",\n            \"isDefault\": 0,\n            \"name\": \"测试维度518\"\n        }\n        header = {\"Authorization\": \"Bearer \" + data_dict[\"token\"]}\n        print(header)\n        res = requests.request(method=\"post\", url=add_dem_url, json=add_dem_data, headers=header)\n        # 断言\n        try:\n>           assert \"成功\" in res.text\nE           assert '成功' in '{\"state\":false,\"message\":\"添加维度失败,维度编码【dem_code_test_528】在系统中已存在!\",\"value\":\"\"}'\nE            +  where '{\"state\":false,\"message\":\"添加维度失败,维度编码【dem_code_test_528】在系统中已存在!\",\"value\":\"\"}' = <Response [200]>.text\n\ntest_case\\test_dependecy_template\\test_dependecy_template.py:60: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <InterfaceAutoTest.test_case.test_dependecy_template.test_dependecy_template.TestDependency object at 0x0000020F9B6037F0>\n\n    @allure.feature(\"维度管理\")\n    @allure.story(\"添加维度\")\n    @allure.title(\"正向用例\")\n    @allure.severity(\"\")\n    @pytest.mark.dependency(depends=[\"TestDependency::test_login\"])\n    def test_add_demo(self):\n        add_dem_url = \"http://120.46.172.186:8080/api/demension/v1/dem/addDem\"\n        add_dem_data = {\n            \"code\": \"dem_code_test_528\",\n            \"description\": \"测试维度528\",\n            \"isDefault\": 0,\n            \"name\": \"测试维度518\"\n        }\n        header = {\"Authorization\": \"Bearer \" + data_dict[\"token\"]}\n        print(header)\n        res = requests.request(method=\"post\", url=add_dem_url, json=add_dem_data, headers=header)\n        # 断言\n        try:\n            assert \"成功\" in res.text\n        except AssertionError:\n>           raise AssertionError(\"断言失败\")\nE           AssertionError: 断言失败\n\ntest_case\\test_dependecy_template\\test_dependecy_template.py:62: AssertionError",
  "flaky" : false,
  "newFailed" : false,
  "beforeStages" : [ {
    "name" : "_session_faker",
    "time" : {
      "start" : 1704358247099,
      "stop" : 1704358247227,
      "duration" : 128
    },
    "status" : "passed",
    "steps" : [ ],
    "attachments" : [ ],
    "parameters" : [ ],
    "attachmentsCount" : 0,
    "shouldDisplayMessage" : false,
    "stepsCount" : 0,
    "hasContent" : false
  } ],
  "testStage" : {
    "status" : "failed",
    "statusMessage" : "AssertionError: 断言失败",
    "statusTrace" : "self = <InterfaceAutoTest.test_case.test_dependecy_template.test_dependecy_template.TestDependency object at 0x0000020F9B6037F0>\n\n    @allure.feature(\"维度管理\")\n    @allure.story(\"添加维度\")\n    @allure.title(\"正向用例\")\n    @allure.severity(\"\")\n    @pytest.mark.dependency(depends=[\"TestDependency::test_login\"])\n    def test_add_demo(self):\n        add_dem_url = \"http://120.46.172.186:8080/api/demension/v1/dem/addDem\"\n        add_dem_data = {\n            \"code\": \"dem_code_test_528\",\n            \"description\": \"测试维度528\",\n            \"isDefault\": 0,\n            \"name\": \"测试维度518\"\n        }\n        header = {\"Authorization\": \"Bearer \" + data_dict[\"token\"]}\n        print(header)\n        res = requests.request(method=\"post\", url=add_dem_url, json=add_dem_data, headers=header)\n        # 断言\n        try:\n>           assert \"成功\" in res.text\nE           assert '成功' in '{\"state\":false,\"message\":\"添加维度失败,维度编码【dem_code_test_528】在系统中已存在!\",\"value\":\"\"}'\nE            +  where '{\"state\":false,\"message\":\"添加维度失败,维度编码【dem_code_test_528】在系统中已存在!\",\"value\":\"\"}' = <Response [200]>.text\n\ntest_case\\test_dependecy_template\\test_dependecy_template.py:60: AssertionError\n\nDuring handling of the above exception, another exception occurred:\n\nself = <InterfaceAutoTest.test_case.test_dependecy_template.test_dependecy_template.TestDependency object at 0x0000020F9B6037F0>\n\n    @allure.feature(\"维度管理\")\n    @allure.story(\"添加维度\")\n    @allure.title(\"正向用例\")\n    @allure.severity(\"\")\n    @pytest.mark.dependency(depends=[\"TestDependency::test_login\"])\n    def test_add_demo(self):\n        add_dem_url = \"http://120.46.172.186:8080/api/demension/v1/dem/addDem\"\n        add_dem_data = {\n            \"code\": \"dem_code_test_528\",\n            \"description\": \"测试维度528\",\n            \"isDefault\": 0,\n            \"name\": \"测试维度518\"\n        }\n        header = {\"Authorization\": \"Bearer \" + data_dict[\"token\"]}\n        print(header)\n        res = requests.request(method=\"post\", url=add_dem_url, json=add_dem_data, headers=header)\n        # 断言\n        try:\n            assert \"成功\" in res.text\n        except AssertionError:\n>           raise AssertionError(\"断言失败\")\nE           AssertionError: 断言失败\n\ntest_case\\test_dependecy_template\\test_dependecy_template.py:62: AssertionError",
    "steps" : [ ],
    "attachments" : [ {
      "uid" : "e8860eb4d9bacc6f",
      "name" : "stdout",
      "source" : "e8860eb4d9bacc6f.txt",
      "type" : "text/plain",
      "size" : 224
    } ],
    "parameters" : [ ],
    "attachmentsCount" : 1,
    "shouldDisplayMessage" : true,
    "stepsCount" : 0,
    "hasContent" : true
  },
  "afterStages" : [ ],
  "labels" : [ {
    "name" : "feature",
    "value" : "维度管理"
  }, {
    "name" : "epic",
    "value" : "BPM系统依赖"
  }, {
    "name" : "story",
    "value" : "添加维度"
  }, {
    "name" : "severity",
    "value" : "高"
  }, {
    "name" : "tag",
    "value" : "dependency(depends=['TestDependency::test_login'])"
  }, {
    "name" : "parentSuite",
    "value" : "test_case.test_dependecy_template"
  }, {
    "name" : "suite",
    "value" : "test_dependecy_template"
  }, {
    "name" : "subSuite",
    "value" : "TestDependency"
  }, {
    "name" : "host",
    "value" : "TimeIsALine"
  }, {
    "name" : "thread",
    "value" : "18832-MainThread"
  }, {
    "name" : "framework",
    "value" : "pytest"
  }, {
    "name" : "language",
    "value" : "cpython3"
  }, {
    "name" : "package",
    "value" : "test_case.test_dependecy_template.test_dependecy_template"
  }, {
    "name" : "resultFormat",
    "value" : "allure2"
  } ],
  "parameters" : [ ],
  "links" : [ ],
  "hidden" : true,
  "retry" : true,
  "extra" : {
    "categories" : [ ],
    "tags" : [ "dependency(depends=['TestDependency::test_login'])" ]
  },
  "source" : "df03976a680925b8.json",
  "parameterValues" : [ ]
}