Eazin hai 4 meses
pai
achega
39c494b469
Modificáronse 94 ficheiros con 779 adicións e 200 borrados
  1. 1 0
      allure-results/020ce00e-9ad3-48af-9e14-9c60613a843a-container.json
  2. 1 0
      allure-results/0cf7415c-aa69-40ea-ae73-8a44f446ac99-result.json
  3. 1 0
      allure-results/0d90a045-8108-4edd-825c-4006a4cee1c3-result.json
  4. 1 0
      allure-results/0d96d594-8c56-4715-9531-af64f772f41e-result.json
  5. 1 0
      allure-results/0f1faa1b-661b-4aab-9585-13a025ef67f9-result.json
  6. 1 0
      allure-results/16c1a111-3bcb-42b2-bf05-e244e40ace39-result.json
  7. 1 0
      allure-results/177269e5-78b0-4f27-b0b9-424713c87ae4-container.json
  8. 1 0
      allure-results/18c628a8-e9dd-42aa-9da9-39158e85825b-result.json
  9. 1 0
      allure-results/1cfdb307-af30-40d6-96c5-9bb7abd300ac-result.json
  10. 1 0
      allure-results/1fca325d-5bb8-45ae-835d-207e726ccfa0-result.json
  11. 1 0
      allure-results/2044dd92-3f4f-4f60-8e36-2ce973e84449-result.json
  12. 1 0
      allure-results/2880e54d-67c1-499b-8761-5f537eca992c-container.json
  13. 1 0
      allure-results/2a348e8e-a6c3-405a-8714-1306e617b9ab-result.json
  14. 1 0
      allure-results/2b8bf0e7-48ef-4ca4-9322-f4ae22d632c4-result.json
  15. 1 0
      allure-results/2bc99d87-e3b3-434b-b18f-bc062f7495ee-container.json
  16. 1 0
      allure-results/2c32133a-aafe-4cbd-93f3-361fe4e7fe68-result.json
  17. 1 0
      allure-results/311a33be-e636-4fb7-a532-0b8760167aa7-result.json
  18. 1 0
      allure-results/39a5c3b4-c0ff-4e9a-a633-02c6977f0b7b-container.json
  19. 1 0
      allure-results/4552b67f-61f7-4c6c-bd67-5562c6cecd4a-result.json
  20. 1 0
      allure-results/4643e0f3-a2e3-43ea-8676-00d8c6ec5851-result.json
  21. 1 0
      allure-results/46ef6491-e642-4596-9582-36435db629ed-container.json
  22. 1 0
      allure-results/49679665-cf72-46e7-bdd8-99696f19aad5-container.json
  23. 1 0
      allure-results/49f5d2d6-b1d5-4955-ad31-011bba21eeb2-result.json
  24. 1 0
      allure-results/4ae26fdd-195f-46ca-b35e-f7aa0cb4e4de-result.json
  25. 1 0
      allure-results/4c3391d6-ee24-40f0-91d2-b23fcd4d4297-result.json
  26. 1 0
      allure-results/533c0787-44b3-47ec-9768-5a7c4030141b-result.json
  27. 1 0
      allure-results/5343e526-0656-4994-bec0-924ba4b1eb74-container.json
  28. 1 0
      allure-results/56205ce7-792d-482d-9de7-7acea79ef43c-container.json
  29. 1 0
      allure-results/5cc67af0-3040-46db-b6ca-1b3c15d076ab-container.json
  30. 1 0
      allure-results/621f246d-672f-46ce-b1d4-2764cc51cd49-container.json
  31. 1 0
      allure-results/65996468-c015-4371-96d0-46163d0933ec-container.json
  32. 1 0
      allure-results/68873741-17f2-4ab3-831f-62db8eefe95d-result.json
  33. 1 0
      allure-results/6d7b79ae-f65a-4205-b820-28422b6216d1-container.json
  34. 1 0
      allure-results/740751e8-9678-4c40-b03d-14846fcb89c7-container.json
  35. 1 0
      allure-results/8106100b-c936-4a61-8dd0-ce8a061fe623-result.json
  36. 1 0
      allure-results/84bfca36-dcf2-4ddc-b281-8a73507c32ba-result.json
  37. 1 0
      allure-results/88abe694-b271-46b9-91bc-71720da74667-container.json
  38. 1 0
      allure-results/89dfa907-0ae0-45f2-b714-3f382758a3d2-result.json
  39. 1 0
      allure-results/8abee6d3-272b-4b2c-ae27-040183d2ba54-container.json
  40. 1 0
      allure-results/8b14464e-4107-4216-9bd6-715430fe2a41-container.json
  41. 1 0
      allure-results/8cd489ec-e7ce-4501-b771-3f0d3ed5ab3e-result.json
  42. 1 0
      allure-results/91bc6456-0419-4186-91a6-4a8d266951af-container.json
  43. 1 0
      allure-results/9441f476-e153-4e50-a5eb-390bad0457ad-result.json
  44. 1 0
      allure-results/971b272a-fd54-42aa-8939-08f9b659e42a-result.json
  45. 1 0
      allure-results/980e96a1-9a3a-4e7f-bf57-6e2897ff4469-result.json
  46. 1 0
      allure-results/a0800c2c-7023-4200-ade8-99ba02b03a7f-container.json
  47. 1 0
      allure-results/a263a350-d3ea-419c-8ed3-167f06e32e56-result.json
  48. 1 0
      allure-results/a2e2d940-87c0-4596-a3f8-9dd4a2aa9e22-result.json
  49. 1 0
      allure-results/a5c050ef-9aeb-4e2f-8135-d61f0d93e83c-result.json
  50. 1 0
      allure-results/a80c0d29-a8f8-4269-9f05-9df444618e9b-result.json
  51. 1 0
      allure-results/aef153a2-0392-4712-9b2a-e6a80d2860e5-container.json
  52. 1 0
      allure-results/b3b83b72-7a53-4bc2-963e-6910e0a82c25-result.json
  53. 1 0
      allure-results/b5388b39-c575-4205-8513-c4aed41f37d4-result.json
  54. 1 0
      allure-results/b8bb1940-8339-4756-aa23-79a14596a132-result.json
  55. 1 0
      allure-results/bfdf3f71-f572-4c17-bb49-dd1ac46298b9-result.json
  56. 1 0
      allure-results/c6c311e2-b20c-4431-b18d-39998a6fca51-container.json
  57. 1 0
      allure-results/c9521a22-422b-4a6e-b8a5-2d585ef4e40e-result.json
  58. 1 0
      allure-results/cb9704d5-0cb2-461d-b4aa-9b91fcf4b789-container.json
  59. 1 0
      allure-results/d119c80a-c88e-4677-adea-bd63abfb9e28-result.json
  60. 1 0
      allure-results/d165a73e-721e-45d9-b3da-a9602c70060f-container.json
  61. 1 0
      allure-results/d2aee96d-63bf-49cc-9ee3-800c1617940d-result.json
  62. 1 0
      allure-results/d41e7db1-c2cd-4421-b747-a49a70efe02c-result.json
  63. 1 0
      allure-results/d4bffcfc-2a71-4db7-952f-a326b44a8047-container.json
  64. 1 0
      allure-results/d5ff704c-d0c8-4ac4-a68d-36b6e5d0e8e4-container.json
  65. 1 0
      allure-results/d710c6c5-f94e-49f6-9fd6-894e2df59f8a-container.json
  66. 1 0
      allure-results/d75e5ede-dd78-44b6-b4f0-51da578b6a09-container.json
  67. 1 0
      allure-results/d7fe4098-f901-4479-a259-dac6ccd2f08f-container.json
  68. 1 0
      allure-results/d8a09a60-3c28-40b0-865b-4dd0b22a9cfe-container.json
  69. 1 0
      allure-results/df5afa12-3341-45f1-8355-a78e65b6cb3c-container.json
  70. 1 0
      allure-results/e0e71cf0-1b45-4217-8fb8-bcc9d283704c-result.json
  71. 1 0
      allure-results/e3ddfa5d-f7aa-498d-bc20-f1d77cc6cbc3-result.json
  72. 1 0
      allure-results/e47f1901-3f95-4e8f-99c6-e506431ba1ab-container.json
  73. 1 0
      allure-results/e6b769a3-8b3e-4474-b918-dbb5be4684ff-result.json
  74. 1 0
      allure-results/e853301f-75ba-461c-a6d0-173c90f6998c-result.json
  75. 1 0
      allure-results/ef25b265-c316-4738-8edc-ced48568af8d-result.json
  76. 1 0
      allure-results/ef32d472-0b12-4535-abad-5346b6d71ee9-result.json
  77. 1 0
      allure-results/f19819e6-7f84-478f-b7c4-20044c1f9cb3-container.json
  78. 1 0
      allure-results/f5466dad-a99a-4a9e-a1bc-3eb18e3f78b1-result.json
  79. 1 0
      allure-results/f70a6c85-89f3-4550-afa4-10b79d8b05d5-container.json
  80. 1 0
      allure-results/f81f9990-97c8-4139-bbc7-ae806a88e8b6-result.json
  81. 27 2
      src/test/java/page/DeclareStewardPageTest.java
  82. 79 6
      src/test/java/page/HomePageTest.java
  83. 27 2
      src/test/java/page/LoginPageTest.java
  84. 14 1
      src/test/java/page/NewsCenterTest.java
  85. 16 2
      src/test/java/page/NotLoginStatusTest.java
  86. 101 17
      src/test/java/page/NoticeDetailPageTest.java
  87. 106 43
      src/test/java/page/PolicyDetailPageTest.java
  88. 83 26
      src/test/java/page/PolicyDictionaryPageTest.java
  89. 64 23
      src/test/java/page/PolicyFileDetailPageTest.java
  90. 125 60
      src/test/java/page/PolicyLibraryTest.java
  91. 25 6
      src/test/java/page/PolicySubjectPageTest.java
  92. 1 0
      src/test/java/page/ProjectMatchPage2120Test.java
  93. 19 9
      src/test/java/page/ProjectMatchRecordPageTest.java
  94. 12 3
      src/test/java/page/UserCenterTest.java

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/020ce00e-9ad3-48af-9e14-9c60613a843a-container.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/0cf7415c-aa69-40ea-ae73-8a44f446ac99-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/0d90a045-8108-4edd-825c-4006a4cee1c3-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/0d96d594-8c56-4715-9531-af64f772f41e-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/0f1faa1b-661b-4aab-9585-13a025ef67f9-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/16c1a111-3bcb-42b2-bf05-e244e40ace39-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/177269e5-78b0-4f27-b0b9-424713c87ae4-container.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/18c628a8-e9dd-42aa-9da9-39158e85825b-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/1cfdb307-af30-40d6-96c5-9bb7abd300ac-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/1fca325d-5bb8-45ae-835d-207e726ccfa0-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/2044dd92-3f4f-4f60-8e36-2ce973e84449-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/2880e54d-67c1-499b-8761-5f537eca992c-container.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/2a348e8e-a6c3-405a-8714-1306e617b9ab-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/2b8bf0e7-48ef-4ca4-9322-f4ae22d632c4-result.json


+ 1 - 0
allure-results/2bc99d87-e3b3-434b-b18f-bc062f7495ee-container.json

@@ -0,0 +1 @@
+{"uuid":"2bc99d87-e3b3-434b-b18f-bc062f7495ee","name":"公示详情","children":["4643e0f3-a2e3-43ea-8676-00d8c6ec5851","16c1a111-3bcb-42b2-bf05-e244e40ace39","d41e7db1-c2cd-4421-b747-a49a70efe02c","ef25b265-c316-4738-8edc-ced48568af8d","980e96a1-9a3a-4e7f-bf57-6e2897ff4469","4c3391d6-ee24-40f0-91d2-b23fcd4d4297","2044dd92-3f4f-4f60-8e36-2ce973e84449"],"befores":[],"afters":[],"start":1739244618307,"stop":1739244671857}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/2c32133a-aafe-4cbd-93f3-361fe4e7fe68-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/311a33be-e636-4fb7-a532-0b8760167aa7-result.json


+ 1 - 0
allure-results/39a5c3b4-c0ff-4e9a-a633-02c6977f0b7b-container.json

@@ -0,0 +1 @@
+{"uuid":"39a5c3b4-c0ff-4e9a-a633-02c6977f0b7b","name":"政策文库","children":["8cd489ec-e7ce-4501-b771-3f0d3ed5ab3e","a2e2d940-87c0-4596-a3f8-9dd4a2aa9e22","a80c0d29-a8f8-4269-9f05-9df444618e9b","b5388b39-c575-4205-8513-c4aed41f37d4","b3b83b72-7a53-4bc2-963e-6910e0a82c25","89dfa907-0ae0-45f2-b714-3f382758a3d2","ef32d472-0b12-4535-abad-5346b6d71ee9","e853301f-75ba-461c-a6d0-173c90f6998c"],"befores":[],"afters":[],"start":1739244441889,"stop":1739244510323}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/4552b67f-61f7-4c6c-bd67-5562c6cecd4a-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/4643e0f3-a2e3-43ea-8676-00d8c6ec5851-result.json


+ 1 - 0
allure-results/46ef6491-e642-4596-9582-36435db629ed-container.json

@@ -0,0 +1 @@
+{"uuid":"46ef6491-e642-4596-9582-36435db629ed","name":"通知详情","children":["1cfdb307-af30-40d6-96c5-9bb7abd300ac","d2aee96d-63bf-49cc-9ee3-800c1617940d","1fca325d-5bb8-45ae-835d-207e726ccfa0","2c32133a-aafe-4cbd-93f3-361fe4e7fe68","2b8bf0e7-48ef-4ca4-9322-f4ae22d632c4","49f5d2d6-b1d5-4955-ad31-011bba21eeb2","e3ddfa5d-f7aa-498d-bc20-f1d77cc6cbc3","0cf7415c-aa69-40ea-ae73-8a44f446ac99"],"befores":[],"afters":[],"start":1739244510332,"stop":1739244571864}

+ 1 - 0
allure-results/49679665-cf72-46e7-bdd8-99696f19aad5-container.json

@@ -0,0 +1 @@
+{"uuid":"49679665-cf72-46e7-bdd8-99696f19aad5","name":"page.PolicyLibraryTest.beforeMethod","children":["a2e2d940-87c0-4596-a3f8-9dd4a2aa9e22"],"description":"","befores":[{"name":"beforeMethod","status":"passed","stage":"finished","description":"","steps":[],"attachments":[],"parameters":[],"start":1739244463324,"stop":1739244464332}],"afters":[],"start":1739244463324,"stop":1739244464332}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/49f5d2d6-b1d5-4955-ad31-011bba21eeb2-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/4ae26fdd-195f-46ca-b35e-f7aa0cb4e4de-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/4c3391d6-ee24-40f0-91d2-b23fcd4d4297-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/533c0787-44b3-47ec-9768-5a7c4030141b-result.json


+ 1 - 0
allure-results/5343e526-0656-4994-bec0-924ba4b1eb74-container.json

@@ -0,0 +1 @@
+{"uuid":"5343e526-0656-4994-bec0-924ba4b1eb74","name":"page.PolicyLibraryTest.beforeMethod","children":["b3b83b72-7a53-4bc2-963e-6910e0a82c25"],"description":"","befores":[{"name":"beforeMethod","status":"passed","stage":"finished","description":"","steps":[],"attachments":[],"parameters":[],"start":1739244481174,"stop":1739244482189}],"afters":[],"start":1739244481174,"stop":1739244482189}

+ 1 - 0
allure-results/56205ce7-792d-482d-9de7-7acea79ef43c-container.json

@@ -0,0 +1 @@
+{"uuid":"56205ce7-792d-482d-9de7-7acea79ef43c","name":"page.PolicyLibraryTest.beforeMethod","children":["b5388b39-c575-4205-8513-c4aed41f37d4"],"description":"","befores":[{"name":"beforeMethod","status":"passed","stage":"finished","description":"","steps":[],"attachments":[],"parameters":[],"start":1739244472581,"stop":1739244473586}],"afters":[],"start":1739244472581,"stop":1739244473586}

+ 1 - 0
allure-results/5cc67af0-3040-46db-b6ca-1b3c15d076ab-container.json

@@ -0,0 +1 @@
+{"uuid":"5cc67af0-3040-46db-b6ca-1b3c15d076ab","name":"page.PolicyLibraryTest.beforeMethod","children":["e853301f-75ba-461c-a6d0-173c90f6998c"],"description":"","befores":[{"name":"beforeMethod","status":"passed","stage":"finished","description":"","steps":[],"attachments":[],"parameters":[],"start":1739244501443,"stop":1739244502450}],"afters":[],"start":1739244501443,"stop":1739244502450}

+ 1 - 0
allure-results/621f246d-672f-46ce-b1d4-2764cc51cd49-container.json

@@ -0,0 +1 @@
+{"uuid":"621f246d-672f-46ce-b1d4-2764cc51cd49","name":"page.PolicyLibraryTest.beforeMethod","children":["8cd489ec-e7ce-4501-b771-3f0d3ed5ab3e"],"description":"","befores":[{"name":"beforeMethod","status":"passed","stage":"finished","description":"","steps":[],"attachments":[],"parameters":[],"start":1739244459544,"stop":1739244460551}],"afters":[],"start":1739244459544,"stop":1739244460552}

+ 1 - 0
allure-results/65996468-c015-4371-96d0-46163d0933ec-container.json

@@ -0,0 +1 @@
+{"uuid":"65996468-c015-4371-96d0-46163d0933ec","name":"page.PolicyLibraryTest.beforeMethod","children":["89dfa907-0ae0-45f2-b714-3f382758a3d2"],"description":"","befores":[{"name":"beforeMethod","status":"passed","stage":"finished","description":"","steps":[],"attachments":[],"parameters":[],"start":1739244484712,"stop":1739244485716}],"afters":[],"start":1739244484712,"stop":1739244485716}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/68873741-17f2-4ab3-831f-62db8eefe95d-result.json


+ 1 - 0
allure-results/6d7b79ae-f65a-4205-b820-28422b6216d1-container.json

@@ -0,0 +1 @@
+{"uuid":"6d7b79ae-f65a-4205-b820-28422b6216d1","name":"page.PolicyFileDetailPageTest.beforeMethod","children":["9441f476-e153-4e50-a5eb-390bad0457ad"],"description":"","befores":[{"name":"beforeMethod","status":"passed","stage":"finished","description":"","steps":[],"attachments":[],"parameters":[],"start":1739244588103,"stop":1739244589715}],"afters":[],"start":1739244588103,"stop":1739244589715}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/740751e8-9678-4c40-b03d-14846fcb89c7-container.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/8106100b-c936-4a61-8dd0-ce8a061fe623-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/84bfca36-dcf2-4ddc-b281-8a73507c32ba-result.json


+ 1 - 0
allure-results/88abe694-b271-46b9-91bc-71720da74667-container.json

@@ -0,0 +1 @@
+{"uuid":"88abe694-b271-46b9-91bc-71720da74667","name":"page.PolicyFileDetailPageTest.beforeMethod","children":["e6b769a3-8b3e-4474-b918-dbb5be4684ff"],"description":"","befores":[{"name":"beforeMethod","status":"passed","stage":"finished","description":"","steps":[],"attachments":[],"parameters":[],"start":1739244602300,"stop":1739244603159}],"afters":[],"start":1739244602300,"stop":1739244603159}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/89dfa907-0ae0-45f2-b714-3f382758a3d2-result.json


+ 1 - 0
allure-results/8abee6d3-272b-4b2c-ae27-040183d2ba54-container.json

@@ -0,0 +1 @@
+{"uuid":"8abee6d3-272b-4b2c-ae27-040183d2ba54","name":"page.PolicyLibraryTest.beforeMethod","children":["ef32d472-0b12-4535-abad-5346b6d71ee9"],"description":"","befores":[{"name":"beforeMethod","status":"passed","stage":"finished","description":"","steps":[],"attachments":[],"parameters":[],"start":1739244495501,"stop":1739244496507}],"afters":[],"start":1739244495501,"stop":1739244496507}

+ 1 - 0
allure-results/8b14464e-4107-4216-9bd6-715430fe2a41-container.json

@@ -0,0 +1 @@
+{"uuid":"8b14464e-4107-4216-9bd6-715430fe2a41","name":"page.PolicyFileDetailPageTest.beforeMethod","children":["18c628a8-e9dd-42aa-9da9-39158e85825b"],"description":"","befores":[{"name":"beforeMethod","status":"passed","stage":"finished","description":"","steps":[],"attachments":[],"parameters":[],"start":1739244590319,"stop":1739244590376}],"afters":[],"start":1739244590319,"stop":1739244590376}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/8cd489ec-e7ce-4501-b771-3f0d3ed5ab3e-result.json


+ 1 - 0
allure-results/91bc6456-0419-4186-91a6-4a8d266951af-container.json

@@ -0,0 +1 @@
+{"uuid":"91bc6456-0419-4186-91a6-4a8d266951af","name":"登录","children":["971b272a-fd54-42aa-8939-08f9b659e42a","c9521a22-422b-4a6e-b8a5-2d585ef4e40e"],"befores":[],"afters":[],"start":1739244671860,"stop":1739244683226}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/9441f476-e153-4e50-a5eb-390bad0457ad-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/971b272a-fd54-42aa-8939-08f9b659e42a-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/980e96a1-9a3a-4e7f-bf57-6e2897ff4469-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/a0800c2c-7023-4200-ade8-99ba02b03a7f-container.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/a263a350-d3ea-419c-8ed3-167f06e32e56-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/a2e2d940-87c0-4596-a3f8-9dd4a2aa9e22-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/a5c050ef-9aeb-4e2f-8135-d61f0d93e83c-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/a80c0d29-a8f8-4269-9f05-9df444618e9b-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/aef153a2-0392-4712-9b2a-e6a80d2860e5-container.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/b3b83b72-7a53-4bc2-963e-6910e0a82c25-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/b5388b39-c575-4205-8513-c4aed41f37d4-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/b8bb1940-8339-4756-aa23-79a14596a132-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/bfdf3f71-f572-4c17-bb49-dd1ac46298b9-result.json


+ 1 - 0
allure-results/c6c311e2-b20c-4431-b18d-39998a6fca51-container.json

@@ -0,0 +1 @@
+{"uuid":"c6c311e2-b20c-4431-b18d-39998a6fca51","name":"政策专题","children":["68873741-17f2-4ab3-831f-62db8eefe95d","4ae26fdd-195f-46ca-b35e-f7aa0cb4e4de"],"befores":[],"afters":[],"start":1739244793745,"stop":1739244820450}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/c9521a22-422b-4a6e-b8a5-2d585ef4e40e-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/cb9704d5-0cb2-461d-b4aa-9b91fcf4b789-container.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/d119c80a-c88e-4677-adea-bd63abfb9e28-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/d165a73e-721e-45d9-b3da-a9602c70060f-container.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/d2aee96d-63bf-49cc-9ee3-800c1617940d-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/d41e7db1-c2cd-4421-b747-a49a70efe02c-result.json


+ 1 - 0
allure-results/d4bffcfc-2a71-4db7-952f-a326b44a8047-container.json

@@ -0,0 +1 @@
+{"uuid":"d4bffcfc-2a71-4db7-952f-a326b44a8047","name":"政策词典","children":["4552b67f-61f7-4c6c-bd67-5562c6cecd4a","e0e71cf0-1b45-4217-8fb8-bcc9d283704c","a263a350-d3ea-419c-8ed3-167f06e32e56","2a348e8e-a6c3-405a-8714-1306e617b9ab","0d96d594-8c56-4715-9531-af64f772f41e","8106100b-c936-4a61-8dd0-ce8a061fe623","0f1faa1b-661b-4aab-9585-13a025ef67f9"],"befores":[],"afters":[],"start":1739244683229,"stop":1739244737762}

+ 1 - 0
allure-results/d5ff704c-d0c8-4ac4-a68d-36b6e5d0e8e4-container.json

@@ -0,0 +1 @@
+{"uuid":"d5ff704c-d0c8-4ac4-a68d-36b6e5d0e8e4","name":"page.PolicyLibraryTest.beforeMethod","children":["a80c0d29-a8f8-4269-9f05-9df444618e9b"],"description":"","befores":[{"name":"beforeMethod","status":"passed","stage":"finished","description":"","steps":[],"attachments":[],"parameters":[],"start":1739244466450,"stop":1739244467465}],"afters":[],"start":1739244466450,"stop":1739244467465}

+ 1 - 0
allure-results/d710c6c5-f94e-49f6-9fd6-894e2df59f8a-container.json

@@ -0,0 +1 @@
+{"uuid":"d710c6c5-f94e-49f6-9fd6-894e2df59f8a","name":"page.PolicyFileDetailPageTest.beforeMethod","children":["84bfca36-dcf2-4ddc-b281-8a73507c32ba"],"description":"","befores":[{"name":"beforeMethod","status":"passed","stage":"finished","description":"","steps":[],"attachments":[],"parameters":[],"start":1739244591474,"stop":1739244591526}],"afters":[],"start":1739244591474,"stop":1739244591526}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/d75e5ede-dd78-44b6-b4f0-51da578b6a09-container.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/d7fe4098-f901-4479-a259-dac6ccd2f08f-container.json


+ 1 - 0
allure-results/d8a09a60-3c28-40b0-865b-4dd0b22a9cfe-container.json

@@ -0,0 +1 @@
+{"uuid":"d8a09a60-3c28-40b0-865b-4dd0b22a9cfe","name":"page.PolicyFileDetailPageTest.beforeMethod","children":["311a33be-e636-4fb7-a532-0b8760167aa7"],"description":"","befores":[{"name":"beforeMethod","status":"passed","stage":"finished","description":"","steps":[],"attachments":[],"parameters":[],"start":1739244613123,"stop":1739244613766}],"afters":[],"start":1739244613123,"stop":1739244613766}

+ 1 - 0
allure-results/df5afa12-3341-45f1-8355-a78e65b6cb3c-container.json

@@ -0,0 +1 @@
+{"uuid":"df5afa12-3341-45f1-8355-a78e65b6cb3c","name":"政策详情","children":["9441f476-e153-4e50-a5eb-390bad0457ad","18c628a8-e9dd-42aa-9da9-39158e85825b","d119c80a-c88e-4677-adea-bd63abfb9e28","84bfca36-dcf2-4ddc-b281-8a73507c32ba","e6b769a3-8b3e-4474-b918-dbb5be4684ff","311a33be-e636-4fb7-a532-0b8760167aa7"],"befores":[],"afters":[],"start":1739244571868,"stop":1739244618303}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/e0e71cf0-1b45-4217-8fb8-bcc9d283704c-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/e3ddfa5d-f7aa-498d-bc20-f1d77cc6cbc3-result.json


+ 1 - 0
allure-results/e47f1901-3f95-4e8f-99c6-e506431ba1ab-container.json

@@ -0,0 +1 @@
+{"uuid":"e47f1901-3f95-4e8f-99c6-e506431ba1ab","name":"新闻中心","children":["f5466dad-a99a-4a9e-a1bc-3eb18e3f78b1"],"befores":[],"afters":[],"start":1739244777339,"stop":1739244793742}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/e6b769a3-8b3e-4474-b918-dbb5be4684ff-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/e853301f-75ba-461c-a6d0-173c90f6998c-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/ef25b265-c316-4738-8edc-ced48568af8d-result.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/ef32d472-0b12-4535-abad-5346b6d71ee9-result.json


+ 1 - 0
allure-results/f19819e6-7f84-478f-b7c4-20044c1f9cb3-container.json

@@ -0,0 +1 @@
+{"uuid":"f19819e6-7f84-478f-b7c4-20044c1f9cb3","name":"首页","children":["533c0787-44b3-47ec-9768-5a7c4030141b","0d90a045-8108-4edd-825c-4006a4cee1c3","bfdf3f71-f572-4c17-bb49-dd1ac46298b9","b8bb1940-8339-4756-aa23-79a14596a132","a5c050ef-9aeb-4e2f-8135-d61f0d93e83c","f81f9990-97c8-4139-bbc7-ae806a88e8b6"],"befores":[],"afters":[],"start":1739244737765,"stop":1739244777336}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/f5466dad-a99a-4a9e-a1bc-3eb18e3f78b1-result.json


+ 1 - 0
allure-results/f70a6c85-89f3-4550-afa4-10b79d8b05d5-container.json

@@ -0,0 +1 @@
+{"uuid":"f70a6c85-89f3-4550-afa4-10b79d8b05d5","name":"page.PolicyFileDetailPageTest.beforeMethod","children":["d119c80a-c88e-4677-adea-bd63abfb9e28"],"description":"","befores":[{"name":"beforeMethod","status":"passed","stage":"finished","description":"","steps":[],"attachments":[],"parameters":[],"start":1739244590594,"stop":1739244590652}],"afters":[],"start":1739244590594,"stop":1739244590652}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
allure-results/f81f9990-97c8-4139-bbc7-ae806a88e8b6-result.json


+ 27 - 2
src/test/java/page/DeclareStewardPageTest.java

@@ -5,6 +5,7 @@ import conf.Config;
 import conf.Driver;
 import io.qameta.allure.Description;
 import io.qameta.allure.Story;
+import org.testng.Reporter;
 import org.testng.annotations.AfterClass;
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
@@ -57,7 +58,19 @@ public class DeclareStewardPageTest {
     @Story("申报管家")
     public void uploadIndefiniteDurationFileSuccess(){
         String text=faker.random().hex();
-       assertEquals(declareStewardPage.uploadIndefiniteDurationFileSuccess(text,"D:\\Desktop\\IMS\\house (1).jpg"),"新增成功");
+        String result;
+        try{
+            result=declareStewardPage.uploadIndefiniteDurationFileSuccess(text,"D:\\Desktop\\IMS\\house (1).jpg");
+        }catch (Exception e){
+            Reporter.log("DeclareStewardPageTest.uploadIndefiniteDurationFileSuccess:上传无限期佐证材料,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(result,"新增成功");
+        }catch (AssertionError  e){
+            Reporter.log("DeclareStewardPageTest.uploadIndefiniteDurationFileSuccess:上传无限期佐证材料,断言失败!");
+            throw  e;
+        }
     }
 
     @Test()
@@ -65,7 +78,19 @@ public class DeclareStewardPageTest {
     @Story("申报管家")
     public void uploadValidityFileSuccess(){
         String text=faker.random().hex();
-        assertEquals(declareStewardPage.uploadValidityFileSuccess(text,"D:\\Desktop\\IMS\\house (1).jpg","2024-05-28","2024-12-31"),"新增成功");
+        String result;
+        try{
+            result=declareStewardPage.uploadValidityFileSuccess(text,"D:\\Desktop\\IMS\\house (1).jpg","2024-05-28","2024-12-31");
+        }catch (Exception e){
+            Reporter.log("DeclareStewardPageTest.uploadValidityFileSuccess:上传有效期内佐证材料,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(result,"新增成功");
+        }catch (AssertionError  e){
+            Reporter.log("DeclareStewardPageTest.uploadValidityFileSuccess:上传有效期内佐证材料,断言失败!");
+            throw  e;
+        }
     }
 
 //    @Test()

+ 79 - 6
src/test/java/page/HomePageTest.java

@@ -4,6 +4,7 @@ import conf.Config;
 import conf.Driver;
 import io.qameta.allure.Description;
 import io.qameta.allure.Story;
+import org.testng.Reporter;
 import org.testng.annotations.AfterClass;
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
@@ -40,41 +41,113 @@ public class HomePageTest {
     @Description("正常测试用例:点击多维度项目匹配跳转项目匹配页面")
     @Story("首页")
     public void skipProjectMatchSuccess(){
-        assertEquals(homePage.skipProjectMatch(projectMatchPage),"项目匹配");
+        String result;
+        try{
+            result=homePage.skipProjectMatch(projectMatchPage);
+        }catch (Exception e){
+            Reporter.log("HomePageTest.skipProjectMatchSuccess:点击多维度项目匹配跳转项目匹配页面,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(result,"项目匹配");
+        }catch (AssertionError  e){
+            Reporter.log("HomePageTest.skipProjectMatchSuccess:点击多维度项目匹配跳转项目匹配页面,断言失败!");
+            throw  e;
+        }
     }
 
     @Test()
     @Description("正常测试用例:点击近期热门政策旁的【更多】跳转政策文库页面")
     @Story("首页")
     public void clickMorePolicySkipPageSuccess(){
-        assertEquals(homePage.clickMorePolicy(policyLibraryPage),"政策文库");
+        String result;
+        try{
+            result=homePage.clickMorePolicy(policyLibraryPage);
+        }catch (Exception e){
+            Reporter.log("HomePageTest.clickMorePolicySkipPageSuccess:点击近期热门政策旁的【更多】跳转政策文库页面,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(result,"政策文库");
+        }catch (AssertionError  e){
+            Reporter.log("HomePageTest.clickMorePolicySkipPageSuccess:点击近期热门政策旁的【更多】跳转政策文库页面,断言失败!");
+            throw  e;
+        }
     }
 
     @Test()
     @Description("正常测试用例:点击近期热门政策下的项目标题跳转项目摘要页面")
     @Story("首页")
     public void skipProjectDetailSuccess(){
-        assertEquals(homePage.skipProjectDetail(policyFileDetailPage),homePage.assertText);
+        String result;
+        try{
+            result=homePage.skipProjectDetail(policyFileDetailPage);
+        }catch (Exception e){
+            Reporter.log("HomePageTest.skipProjectDetailSuccess:点击近期热门政策下的项目标题跳转项目摘要页面,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(result,homePage.assertText);
+        }catch (AssertionError  e){
+            Reporter.log("HomePageTest.skipProjectDetailSuccess:点击近期热门政策下的项目标题跳转项目摘要页面,断言失败!");
+            throw  e;
+        }
     }
 
     @Test()
     @Description("正常测试用例:点击政策专题跳转对应专题页面")
     @Story("首页")
     public void skipPolicySubjectSuccess(){
-        assertEquals(homePage.skipPolicySubject(policySubjectPage),homePage.assertText);
+        String result;
+        try{
+            result=homePage.skipPolicySubject(policySubjectPage);
+        }catch (Exception e){
+            Reporter.log("HomePageTest.skipPolicySubjectSuccess:点击政策专题跳转对应专题页面,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(result,homePage.assertText);
+        }catch (AssertionError  e){
+            Reporter.log("HomePageTest.skipPolicySubjectSuccess:点击政策专题跳转对应专题页面,断言失败!");
+            throw  e;
+        }
     }
 
     @Test()
     @Description("正常测试用例:点击新闻中心旁的【更多】跳转新闻中心页面")
     @Story("首页")
     public void clickMoreNewsSkipPageSuccess(){
-        assertEquals(homePage.clickMoreNews(newsCenter),"新闻中心");
+        String result;
+        try{
+            result=homePage.clickMoreNews(newsCenter);
+        }catch (Exception e){
+            Reporter.log("HomePageTest.clickMoreNewsSkipPageSuccess:点击新闻中心旁的【更多】跳转新闻中心页面,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(result,"新闻中心");
+        }catch (AssertionError  e){
+            Reporter.log("HomePageTest.clickMoreNewsSkipPageSuccess:点击新闻中心旁的【更多】跳转新闻中心页面,断言失败!");
+            throw  e;
+        }
     }
 
     @Test()
     @Description("正常测试用例:点击新闻中心下的新闻标题跳转新闻详情页面")
     @Story("首页")
     public void skipNewsDetailSuccess(){
-        assertEquals(homePage.skipNewsDetail(newsCenter).replaceAll(" ",""),homePage.assertText.replaceAll(" ",""));
+        String result;
+        try{
+            result=homePage.skipNewsDetail(newsCenter).replaceAll(" ","");
+        }catch (Exception e){
+            Reporter.log("HomePageTest.skipNewsDetailSuccess:点击新闻中心下的新闻标题跳转新闻详情页面,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(result,homePage.assertText.replaceAll(" ",""));
+        }catch (AssertionError  e){
+            Reporter.log("HomePageTest.skipNewsDetailSuccess:点击新闻中心下的新闻标题跳转新闻详情页面,断言失败!");
+            throw  e;
+        }
     }
 }

+ 27 - 2
src/test/java/page/LoginPageTest.java

@@ -4,6 +4,7 @@ import conf.Config;
 import conf.Driver;
 import io.qameta.allure.Description;
 import io.qameta.allure.Story;
+import org.testng.Reporter;
 import org.testng.annotations.AfterClass;
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.DataProvider;
@@ -32,7 +33,19 @@ public class LoginPageTest {
     @Description("正常测试用例:手机验证码登录成功")
     @Story("登录页面")
     public void verficationCodeLoginSuccess(){
-        assertEquals(loginPage.verficationCodeLoginSuccess(config.username1,config.vercode),"登录成功");
+        String result;
+        try{
+            result=loginPage.verficationCodeLoginSuccess(config.username1,config.vercode);
+        }catch (Exception e){
+            Reporter.log("LoginPageTest.verficationCodeLoginSuccess:手机验证码登录,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(result,"登录成功");
+        }catch (AssertionError  e){
+            Reporter.log("LoginPageTest.verficationCodeLoginSuccess:手机验证码登录,断言失败!");
+            throw  e;
+        }
         loginPage.quit();
     }
 
@@ -55,7 +68,19 @@ public class LoginPageTest {
     @Story("登录页面")
     public void enterRegisterPage(){
         RegisterPage registerPage=loginPage.enterRegisterPage();
-        assertEquals(registerPage.getRegisterTitle(),"欢迎注册政沣云");
+        String result;
+        try{
+            result=registerPage.getRegisterTitle();
+        }catch (Exception e){
+            Reporter.log("LoginPageTest.enterRegisterPage:点击免费注册跳转,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(result,"欢迎注册政沣云");
+        }catch (AssertionError  e){
+            Reporter.log("LoginPageTest.enterRegisterPage:点击免费注册跳转,断言失败!");
+            throw  e;
+        }
         loginPage.enterLoginPage();
     }
 

+ 14 - 1
src/test/java/page/NewsCenterTest.java

@@ -4,6 +4,7 @@ import conf.Config;
 import conf.Driver;
 import io.qameta.allure.Description;
 import io.qameta.allure.Story;
+import org.testng.Reporter;
 import org.testng.annotations.AfterClass;
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
@@ -35,6 +36,18 @@ public class NewsCenterTest {
     @Description("正常测试用例:点击新闻标题进入详情页")
     @Story("新闻中心")
     public void switchSubject(){
-        assertEquals(newsCenter.enterNewsDetail().replaceAll(" ",""),newsCenter.assertText.replaceAll(" ",""));
+        String result;
+        try{
+            result=newsCenter.enterNewsDetail().replaceAll(" ","");
+        }catch (Exception e){
+            Reporter.log("NewsCenterTest.switchSubject:点击新闻标题进入详情页,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(result,newsCenter.assertText.replaceAll(" ",""));
+        }catch (AssertionError  e){
+            Reporter.log("NewsCenterTest.switchSubject:点击新闻标题进入详情页,断言失败!");
+            throw  e;
+        }
     }
 }

+ 16 - 2
src/test/java/page/NotLoginStatusTest.java

@@ -3,6 +3,7 @@ package page;
 import conf.Driver;
 import io.qameta.allure.Description;
 import io.qameta.allure.Story;
+import org.testng.Reporter;
 import org.testng.annotations.AfterClass;
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
@@ -31,13 +32,26 @@ public class NotLoginStatusTest {
     @Story("未登录状态")
     public void clickLastHotPolicyProject(){
         assertMessage(notLoginStatus.clickLastHotPolicyProject());
+
     }
 
     @Test(retryAnalyzer = RetryUtils.class)
     @Description("正常测试用例:【首页】点击登录提醒弹框的去登录按钮,跳转登录页面")
     @Story("未登录状态")
-    public void clickGoToLoginBtn(){
-        assertEquals(notLoginStatus.clickGoToLoginBtn(),"欢迎登录政沣云");
+    public void clickGoToLoginBtn(){;
+        String result;
+        try{
+            result=notLoginStatus.clickGoToLoginBtn();
+        }catch (Exception e){
+            Reporter.log("NotLoginStatusTest.clickGoToLoginBtn:【首页】点击登录提醒弹框的去登录按钮,跳转登录页面,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(result,"欢迎登录政沣云");
+        }catch (AssertionError  e){
+            Reporter.log("NotLoginStatusTest.clickGoToLoginBtn:【首页】点击登录提醒弹框的去登录按钮,跳转登录页面,断言失败!");
+            throw  e;
+        }
     }
 
     @Test(retryAnalyzer = RetryUtils.class)

+ 101 - 17
src/test/java/page/NoticeDetailPageTest.java

@@ -4,6 +4,7 @@ import conf.Config;
 import conf.Driver;
 import io.qameta.allure.Description;
 import io.qameta.allure.Story;
+import org.testng.Reporter;
 import org.testng.annotations.AfterClass;
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
@@ -45,22 +46,45 @@ public class NoticeDetailPageTest {
     @Description("正常测试用例:进入公示公告详情页")
     @Story("公示公告详情页")
     public void enterPolicyDetailSuccess(){
-        ArrayList<String> info=noticeDetailPage.verficationDetailInfo();
 //        assertTrue(info.get(0).contains(config.noticename.get("title").get(0)));
-        assertTrue(info.get(0).contains("关于2024年渔业轻骑兵乡土专家工作室建设拟定人选的公示"));
 //        assertTrue(info.get(1).contains(config.noticename.get("title").get(1)));
-        assertTrue(info.get(1).contains("广东省农业技术推广中心"));
 //        assertTrue(info.get(2).contains(config.noticename.get("title").get(2)));
-        assertTrue(info.get(2).contains("2024-07-02"));
-        assertTrue(info.get(3).contains("公示公告"));
+        ArrayList<String> info;
+        try{
+            info=noticeDetailPage.verficationDetailInfo();
+        }catch (Exception e){
+            Reporter.log("NoticeDetailPageTest.enterPolicyDetailSuccess:进入公示公告详情页,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertTrue(info.get(0).contains("关于2024年渔业轻骑兵乡土专家工作室建设拟定人选的公示"));
+            assertTrue(info.get(1).contains("广东省农业技术推广中心"));
+            assertTrue(info.get(2).contains("2024-07-02"));
+            assertTrue(info.get(3).contains("公示公告"));
+        }catch (AssertionError  e){
+            Reporter.log("NoticeDetailPageTest.enterPolicyDetailSuccess:进入公示公告详情页,断言失败!");
+            throw  e;
+        }
     }
 
     @Test(priority = 5)
     @Description("正常测试用例:回到列表页面")
     @Story("公示公告详情页")
     public void retuenList(){
-        assertEquals(noticeDetailPage.returnList().getPageText(),"政策搜索");
 //        policyLibraryPage.enterNoticeDeatil("测试数据-公告公示");
+        String result;
+        try{
+            result=noticeDetailPage.returnList().getPageText();
+        }catch (Exception e){
+            Reporter.log("NoticeDetailPageTest.retuenList:回到列表页面,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(result,"政策搜索");
+        }catch (AssertionError  e){
+            Reporter.log("NoticeDetailPageTest.retuenList:回到列表页面,断言失败!");
+            throw  e;
+        }
         policyLibraryPage.enterNoticeDeatil("关于2024年渔业轻骑兵乡土专家工作室建设拟定人选的公示");
     }
 
@@ -68,27 +92,51 @@ public class NoticeDetailPageTest {
     @Description("正常测试用例:分享")
     @Story("公示公告详情页")
     public void share(){
-        assertEquals(noticeDetailPage.share(),noticeDetailPage.id);
+        String result;
+        try{
+            result=noticeDetailPage.share();
+        }catch (Exception e){
+            Reporter.log("NoticeDetailPageTest.share:分享,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(result,noticeDetailPage.id);
+        }catch (AssertionError  e){
+            Reporter.log("NoticeDetailPageTest.share:分享,断言失败!");
+            throw  e;
+        }
     }
 
     @Test()
     @Description("正常测试用例:联系信息校验")
     @Story("公示公告详情页")
     public void contactInfoVerifySuccess(){
-        ArrayList<String> info=noticeDetailPage.contactInfoVerify();
-        ArrayList<String> data=config.noticename.get("联系信息");
 //        assertEquals(info.get(0),"联系单位:"+data.get(0));
-        assertEquals(info.get(0),"联系单位:"+"广东省农业技术推广中心");
 //        assertEquals(info.get(1),"联系人:"+data.get(1));
-        assertEquals(info.get(1),"联系人:"+"钟小庆");
 //        assertEquals(info.get(2),"联系电话:"+data.get(2));
-        assertEquals(info.get(2),"联系电话:"+"13922714715");
 //        assertEquals(info.get(3),"联系地址:"+data.get(3));
 //        assertEquals(info.get(3),"联系地址:"+"—");
 //        assertEquals(info.get(4),"邮箱:"+data.get(4));
 //        assertEquals(info.get(4),"邮箱:"+"—");
 //        assertEquals(info.get(5),"备注:"+data.get(5));
 //        assertEquals(info.get(5),"备注:"+"—");
+        ArrayList<String> info;
+        ArrayList<String> data;
+        try{
+            info=noticeDetailPage.contactInfoVerify();
+            data=config.noticename.get("联系信息");
+        }catch (Exception e){
+            Reporter.log("NoticeDetailPageTest.contactInfoVerifySuccess:联系信息校验,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(info.get(0),"联系单位:"+"广东省农业技术推广中心");
+            assertEquals(info.get(1),"联系人:"+"钟小庆");
+            assertEquals(info.get(2),"联系电话:"+"13922714715");
+        }catch (AssertionError  e){
+            Reporter.log("NoticeDetailPageTest.contactInfoVerifySuccess:联系信息校验,断言失败!");
+            throw  e;
+        }
     }
 
 //    @Test(priority = 3,retryAnalyzer = RetryUtils.class)
@@ -103,7 +151,19 @@ public class NoticeDetailPageTest {
     @Story("公示公告详情页")
     public void policyFileSkipPolicyDetailSuccess(){
 //        assertEquals(noticeDetailPage.policyFileSkipPolicyDetail(policyDetailPage,config.noticename.get("title").get(0)),config.policyname.get("title").get(0));
-        assertEquals(noticeDetailPage.policyFileSkipPolicyDetail(policyDetailPage,"关于2024年渔业轻骑兵乡土专家工作室建设拟定人选的公示"),"关于组织开展渔业乡土专家工作室建设的通知");
+        String result;
+        try{
+            result=noticeDetailPage.policyFileSkipPolicyDetail(policyDetailPage,"关于2024年渔业轻骑兵乡土专家工作室建设拟定人选的公示");
+        }catch (Exception e){
+            Reporter.log("NoticeDetailPageTest.policyFileSkipPolicyDetailSuccess:政策文件tab内点击政策标题跳转政策详情页,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(result,"关于组织开展渔业乡土专家工作室建设的通知");
+        }catch (AssertionError  e){
+            Reporter.log("NoticeDetailPageTest.policyFileSkipPolicyDetailSuccess:政策文件tab内点击政策标题跳转政策详情页,断言失败!");
+            throw  e;
+        }
     }
 
     @Test(priority = 3)
@@ -111,17 +171,41 @@ public class NoticeDetailPageTest {
     @Story("公示公告详情页")
     public void policyFileSkipProjectDetailSuccess(){
 //        ArrayList<String> list=noticeDetailPage.policyFileSkipProjectDetail(policyDetailPage,config.noticename.get("title").get(0));
-        ArrayList<String> list=noticeDetailPage.policyFileSkipProjectDetail(policyDetailPage,"关于2024年渔业轻骑兵乡土专家工作室建设拟定人选的公示");
 //        assertEquals(list.get(0),config.project1.get(0));
-        assertEquals(list.get(0),"渔业乡土专家工作室资助(2024省级)");
 //        assertEquals(list.get(1),config.project1.get(0));
-        assertEquals(list.get(1),"渔业乡土专家工作室资助(2024省级)");
+        ArrayList<String> list;
+        try{
+            list=noticeDetailPage.policyFileSkipProjectDetail(policyDetailPage,"关于2024年渔业轻骑兵乡土专家工作室建设拟定人选的公示");
+
+        }catch (Exception e){
+            Reporter.log("NoticeDetailPageTest.policyFileSkipProjectDetailSuccess:政策文件tab内点击项目标题跳转项目详情页,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(list.get(0),"渔业乡土专家工作室资助(2024省级)");
+            assertEquals(list.get(1),"渔业乡土专家工作室资助(2024省级)");
+        }catch (AssertionError  e){
+            Reporter.log("NoticeDetailPageTest.policyFileSkipProjectDetailSuccess:政策文件tab内点击项目标题跳转项目详情页,断言失败!");
+            throw  e;
+        }
     }
 
     @Test(priority = 3)
     @Description("正常测试用例:预览相关文件")
     @Story("公示公告详情页")
     public void readFile(){
-        assertEquals(noticeDetailPage.readFile(),"文件预览");
+        String result;
+        try{
+            result=noticeDetailPage.readFile();
+        }catch (Exception e){
+            Reporter.log("NoticeDetailPageTest.readFile:预览相关文件,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(result,"文件预览");
+        }catch (AssertionError  e){
+            Reporter.log("NoticeDetailPageTest.readFile:预览相关文件,断言失败!");
+            throw  e;
+        }
     }
 }

+ 106 - 43
src/test/java/page/PolicyDetailPageTest.java

@@ -4,6 +4,7 @@ import conf.Config;
 import conf.Driver;
 import io.qameta.allure.Description;
 import io.qameta.allure.Story;
+import org.testng.Reporter;
 import org.testng.annotations.*;
 import util.RetryUtils;
 import java.util.ArrayList;
@@ -40,21 +41,44 @@ public class PolicyDetailPageTest {
     @Description("正常测试用例:进入申报通知详情页")
     @Story("申报通知详情页")
     public void enterPolicyDetailSuccess(){
-        ArrayList<String> info=policyDetailPage.verficationDetailInfo();
+        ArrayList<String> info;
 //        assertTrue(info.get(0).contains(config.policyname.get("title").get(0)));
-        assertTrue(info.get(0).contains("佛山市商务局关于开展2024年佛山市经济高质量发展专项资金(口岸建设方向)申报工作的通知"));
 //        assertTrue(info.get(1).contains(config.policyname.get("title").get(1)));
-        assertTrue(info.get(1).contains("佛山市商务局"));
 //        assertTrue(info.get(2).contains(config.policyname.get("title").get(2)));
-        assertTrue(info.get(2).contains("2024-07-11"));
-        assertTrue(info.get(3).contains("申报通知"));
+        try{
+            info=policyDetailPage.verficationDetailInfo();
+        }catch (Exception e){
+            Reporter.log("PolicyDetailPageTest.enterPolicyDetailSuccess:进入申报通知详情页,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertTrue(info.get(0).contains("佛山市商务局关于开展2024年佛山市经济高质量发展专项资金(口岸建设方向)申报工作的通知"));
+            assertTrue(info.get(1).contains("佛山市商务局"));
+            assertTrue(info.get(2).contains("2024-07-11"));
+            assertTrue(info.get(3).contains("申报通知"));
+        }catch (AssertionError  e){
+            Reporter.log("PolicyDetailPageTest.enterPolicyDetailSuccess:进入申报通知详情页,断言失败!");
+            throw  e;
+        }
     }
 
     @Test(priority = 5)
     @Description("正常测试用例:回到列表页面")
     @Story("申报通知详情页")
     public void retuenList(){
-        assertEquals(policyDetailPage.returnList().getPageText(),"政策搜索");
+        String result;
+        try{
+            result=policyDetailPage.returnList().getPageText();
+        }catch (Exception e){
+            Reporter.log("PolicyDetailPageTest.retuenList:回到列表页面,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(result,"政策搜索");
+        }catch (AssertionError  e){
+            Reporter.log("PolicyDetailPageTest.retuenList:回到列表页面,断言失败!");
+            throw  e;
+        }
         policyLibraryPage.enterPolicyDeatil("佛山市商务局关于开展2024年佛山市经济高质量发展专项资金(口岸建设方向)申报工作的通知");
     }
 
@@ -96,7 +120,19 @@ public class PolicyDetailPageTest {
     @Description("正常测试用例:预览相关文件")
     @Story("申报通知详情页")
     public void readFile(){
-        assertEquals(policyDetailPage.readFile(),"文件预览");
+        String result;
+        try{
+            result=policyDetailPage.readFile();
+        }catch (Exception e){
+            Reporter.log("PolicyDetailPageTest.readFile:预览相关文件,元素定位失败!");
+            throw  e;
+        }
+        try {
+            assertEquals(result,"文件预览");
+        }catch (AssertionError  e){
+            Reporter.log("PolicyDetailPageTest.readFile:预览相关文件,断言失败!");
+            throw  e;
+        }
     }
 
     @Test(priority = 3)
@@ -104,32 +140,43 @@ public class PolicyDetailPageTest {
     @Story("申报通知详情页")
     public void projectVerify() {
 //        HashMap<String,ArrayList<String>> map=policyDetailPage.projectTab(config.project1.get(0));
-        HashMap<String,ArrayList<String>> map=policyDetailPage.projectTab("口岸智能化和通关便利化升级改造支持(2024市级)");
-        map.entrySet().forEach(entry->{
-            assertEquals(entry.getKey(),entry.getValue().get(0));
+        HashMap<String,ArrayList<String>> map;
+        try{
+            map=policyDetailPage.projectTab("口岸智能化和通关便利化升级改造支持(2024市级)");
+        }catch (Exception e){
+            Reporter.log("PolicyDetailPageTest.projectVerify:项目摘要页面数据校验,元素定位失败!");
+            throw  e;
+        }
+        try {
+            map.entrySet().forEach(entry->{
+                assertEquals(entry.getKey(),entry.getValue().get(0));
 //            if(entry.getKey().equals("测试数据-项目一")){
-            if(entry.getKey().equals("口岸通关模式创新支持(2024市级)")){
+                if(entry.getKey().equals("口岸通关模式创新支持(2024市级)")){
 //                assertTrue(entry.getValue().equals(config.project1));
-                ArrayList<String> list=new ArrayList<>();
-                list.add("口岸通关模式创新支持(2024市级)");
-                list.add("每个口岸码头主体支持金额不超过80万元人民币。");
-                list.add("支持对象:\n" +
-                        "佛山市经国务院、省政府批准对外开放并正常运作的一类、二类客货运口岸码头经营单位。");
-                list.add("按要求提供,详见《2024年佛山市经济高质量发展专项资金(口岸建设方向)申报指南》附件1《资金申报承诺书》。");
-                assertTrue(entry.getValue().equals(list));
-            }else if(entry.getKey().equals("口岸智能化和通关便利化升级改造支持(2024市级)")){
+                    ArrayList<String> list=new ArrayList<>();
+                    list.add("口岸通关模式创新支持(2024市级)");
+                    list.add("每个口岸码头主体支持金额不超过80万元人民币。");
+                    list.add("支持对象:\n" +
+                            "佛山市经国务院、省政府批准对外开放并正常运作的一类、二类客货运口岸码头经营单位。");
+                    list.add("按要求提供,详见《2024年佛山市经济高质量发展专项资金(口岸建设方向)申报指南》附件1《资金申报承诺书》。");
+                    assertTrue(entry.getValue().equals(list));
+                }else if(entry.getKey().equals("口岸智能化和通关便利化升级改造支持(2024市级)")){
 //                assertTrue(entry.getValue().equals(config.project2));
-                ArrayList<String> list=new ArrayList<>();
-                list.add("口岸智能化和通关便利化升级改造支持(2024市级)");
-                list.add("每个项目支持金额不超过50万元人民币。");
-                list.add("支持对象:\n" +
-                        "佛山市经国务院、省政府批准对外开放并正常运作的一类、二类客货运口岸码头经营单位。");
-                list.add("按要求提供,详见《2024年佛山市经济高质量发展专项资金(口岸建设方向)申报指南》附件1《资金申报承诺书》。");
-                assertTrue(entry.getValue().equals(list));
-            }else {
-                assertEquals("数据不存在","报错");
-            }
-        });
+                    ArrayList<String> list=new ArrayList<>();
+                    list.add("口岸智能化和通关便利化升级改造支持(2024市级)");
+                    list.add("每个项目支持金额不超过50万元人民币。");
+                    list.add("支持对象:\n" +
+                            "佛山市经国务院、省政府批准对外开放并正常运作的一类、二类客货运口岸码头经营单位。");
+                    list.add("按要求提供,详见《2024年佛山市经济高质量发展专项资金(口岸建设方向)申报指南》附件1《资金申报承诺书》。");
+                    assertTrue(entry.getValue().equals(list));
+                }else {
+                    assertEquals("数据不存在","报错");
+                }
+            });
+        }catch (AssertionError  e){
+            Reporter.log("PolicyDetailPageTest.projectVerify:项目摘要页面数据校验,断言失败!");
+            throw  e;
+        }
     }
 
     @DataProvider(name="纳入项目计划")
@@ -143,18 +190,26 @@ public class PolicyDetailPageTest {
     @Description("正常测试用例:项目纳入计划")
     @Story("申报通知详情页")
     public void naruJihua(){
-//        if(policyDetailPage.getNaruJihuaBtnText(config.project1.get(0)).contains("+纳入计划")){
-        if(policyDetailPage.getNaruJihuaBtnText("口岸智能化和通关便利化升级改造支持(2024市级)").contains("+纳入计划")){
+        try{
+            //        if(policyDetailPage.getNaruJihuaBtnText(config.project1.get(0)).contains("+纳入计划")){
+            if(policyDetailPage.getNaruJihuaBtnText("口岸智能化和通关便利化升级改造支持(2024市级)").contains("+纳入计划")){
 //            ArrayList<String> titles=policyDetailPage.naruJihua(declareStewardPage,config.policyname.get("title").get(0));
-            ArrayList<String> titles=policyDetailPage.naruJihua(declareStewardPage,"佛山市商务局关于开展2024年佛山市经济高质量发展专项资金(口岸建设方向)申报工作的通知");
-            assertEquals(policyDetailPage.assertText,"纳入计划成功");
-            assertTrue(titles.contains(policyDetailPage.projectTitleText));
+                ArrayList<String> titles=policyDetailPage.naruJihua(declareStewardPage,"佛山市商务局关于开展2024年佛山市经济高质量发展专项资金(口岸建设方向)申报工作的通知");
+                assertEquals(policyDetailPage.assertText,"纳入计划成功");
+                assertTrue(titles.contains(policyDetailPage.projectTitleText));
 //        }else if(policyDetailPage.getNaruJihuaBtnText(config.project1.get(0)).contains("取消计划")){
-        }else if(policyDetailPage.getNaruJihuaBtnText("口岸智能化和通关便利化升级改造支持(2024市级)").contains("取消计划")){
+            }else if(policyDetailPage.getNaruJihuaBtnText("口岸智能化和通关便利化升级改造支持(2024市级)").contains("取消计划")){
 //            assertEquals(policyDetailPage.cancelNaruJihua(config.policyname.get("title").get(0)),"取消纳入成功");
-            assertEquals(policyDetailPage.cancelNaruJihua("口岸智能化和通关便利化升级改造支持(2024市级)"),"取消纳入成功");
-        }else {
-            assertEquals("按钮不存在","报错");
+                assertEquals(policyDetailPage.cancelNaruJihua("口岸智能化和通关便利化升级改造支持(2024市级)"),"取消纳入成功");
+            }else {
+                assertEquals("按钮不存在","报错");
+            }
+        }catch (AssertionError e){
+            Reporter.log("PolicyDetailPageTest.naruJihua:项目纳入计划,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyDetailPageTest.naruJihua:项目纳入计划,元素定位失败!");
+            throw  e;
         }
     }
 
@@ -162,20 +217,28 @@ public class PolicyDetailPageTest {
     @Description("正常测试用例:联系信息校验")
     @Story("申报通知详情页")
     public void contactInfoVerifySuccess(){
-        ArrayList<String> info=policyDetailPage.contactInfoVerify();
 //        ArrayList<String> data=config.policyname.get("联系信息");
 //        assertEquals(info.get(0),"联系单位:"+data.get(0));
-        assertEquals(info.get(0),"联系单位:"+"佛山市商务局");
 //        assertEquals(info.get(1),"联系人:"+"data.get(1)");
-        assertEquals(info.get(1),"联系人:"+"黄小姐");
 //        assertEquals(info.get(2),"联系电话:"+data.get(2));
-        assertEquals(info.get(2),"联系电话:"+"83035528");
 //        assertEquals(info.get(3),"联系地址:"+data.get(3));
 //        assertEquals(info.get(3),"联系地址:"+"—");
 //        assertEquals(info.get(4),"邮箱:"+data.get(4));
 //        assertEquals(info.get(4),"邮箱:"+"—");
 //        assertEquals(info.get(5),"备注:"+data.get(5));
 //        assertEquals(info.get(5),"备注:"+"—");
+        try{
+            ArrayList<String> info=policyDetailPage.contactInfoVerify();
+            assertEquals(info.get(0),"联系单位:"+"佛山市商务局");
+            assertEquals(info.get(1),"联系人:"+"黄小姐");
+            assertEquals(info.get(2),"联系电话:"+"83035528");
+        }catch (AssertionError e){
+            Reporter.log("PolicyDetailPageTest.contactInfoVerifySuccess:联系信息校验,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyDetailPageTest.contactInfoVerifySuccess:联系信息校验,元素定位失败!");
+            throw  e;
+        }
     }
 
 //    @Test(priority = 3,retryAnalyzer = RetryUtils.class)

+ 83 - 26
src/test/java/page/PolicyDictionaryPageTest.java

@@ -4,6 +4,7 @@ import conf.Config;
 import conf.Driver;
 import io.qameta.allure.Description;
 import io.qameta.allure.Story;
+import org.testng.Reporter;
 import org.testng.annotations.AfterClass;
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
@@ -40,30 +41,54 @@ public class PolicyDictionaryPageTest {
     @Description("正常测试用例:搜索关键词成功")
     @Story("政策词典")
     public void searchKeySuccess(){
-        ArrayList<String> list=policyDictionaryPage.searchKeySuccess("技术");
-        list.forEach(string -> {
-            assertTrue(string.contains("技术"));
-        });
+        try{
+            ArrayList<String> list=policyDictionaryPage.searchKeySuccess("技术");
+            list.forEach(string -> {
+                assertTrue(string.contains("技术"));
+            });
+        }catch (AssertionError e){
+            Reporter.log("PolicyDictionaryPageTest.searchKeySuccess:搜索关键词,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyDictionaryPageTest.searchKeySuccess:搜索关键词,元素定位失败!");
+            throw  e;
+        }
     }
 
     @Test()
     @Description("正常测试用例:点击热门搜索关键词搜索成功")
     @Story("政策词典")
     public void searchHotKeySuccess(){
-        ArrayList<String> list=policyDictionaryPage.searchHotKeySuccess();
-        list.forEach(string -> {
-            assertTrue(string.contains(policyDictionaryPage.assertText));
-        });
+        try{
+            ArrayList<String> list=policyDictionaryPage.searchHotKeySuccess();
+            list.forEach(string -> {
+                assertTrue(string.contains(policyDictionaryPage.assertText));
+            });
+        }catch (AssertionError e){
+            Reporter.log("PolicyDictionaryPageTest.searchHotKeySuccess:点击热门搜索关键词搜索,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyDictionaryPageTest.searchHotKeySuccess:点击热门搜索关键词搜索,元素定位失败!");
+            throw  e;
+        }
     }
 
     @Test()
     @Description("正常测试用例:按字母筛选成功")
     @Story("政策词典")
     public void searchLetterSuccess(){
-        ArrayList<String> list=policyDictionaryPage.searchLetterSuccess();
-        list.forEach(string -> {
-            assertTrue(policyDictionaryPage.assertText.contains(string));
-        });
+        try{
+            ArrayList<String> list=policyDictionaryPage.searchLetterSuccess();
+            list.forEach(string -> {
+                assertTrue(policyDictionaryPage.assertText.contains(string));
+            });
+        }catch (AssertionError e){
+            Reporter.log("PolicyDictionaryPageTest.searchLetterSuccess:按字母筛选,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyDictionaryPageTest.searchLetterSuccess:按字母筛选,元素定位失败!");
+            throw  e;
+        }
     }
 
     public static boolean isContainChinese(String str) {
@@ -79,38 +104,70 @@ public class PolicyDictionaryPageTest {
     @Description("正常测试用例:名词类型筛选中文")
     @Story("政策词典")
     public void searchChineseKeySuccess(){
-        ArrayList<String> list=policyDictionaryPage.searchChineseKeySuccess();
-        list.forEach(string -> {
-            assertTrue(isContainChinese(string) || string.matches(".*\\d.*"));
+        try{
+            ArrayList<String> list=policyDictionaryPage.searchChineseKeySuccess();
+            list.forEach(string -> {
+                assertTrue(isContainChinese(string) || string.matches(".*\\d.*"));
 
-        });
+            });
+        }catch (AssertionError e){
+            Reporter.log("PolicyDictionaryPageTest.searchChineseKeySuccess:名词类型筛选中文,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyDictionaryPageTest.searchChineseKeySuccess:名词类型筛选中文,元素定位失败!");
+            throw  e;
+        }
     }
 
     @Test
     @Description("正常测试用例:名词类型筛选英文")
     @Story("政策词典")
     public void searchEngKeySuccess(){
-        ArrayList<String> list=policyDictionaryPage.searchEngKeySuccess();
-        list.forEach(string -> {
-            assertTrue(string.matches(".*\\w.*"));
-        });
+        try{
+            ArrayList<String> list=policyDictionaryPage.searchEngKeySuccess();
+            list.forEach(string -> {
+                assertTrue(string.matches(".*\\w.*"));
+            });
+        }catch (AssertionError e){
+            Reporter.log("PolicyDictionaryPageTest.searchEngKeySuccess:名词类型筛选英文,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyDictionaryPageTest.searchEngKeySuccess:名词类型筛选英文,元素定位失败!");
+            throw  e;
+        }
     }
 
     @Test
     @Description("正常测试用例:跳转相关政策")
     @Story("政策词典")
     public void skipRelationPolicySuccess(){
-        String title= policyDictionaryPage.skipRelationPolicySuccess(config.dictionary.get(0),config.dictionary.get(0),policyDetailPage);
-        assertTrue(policyDictionaryPage.assertMap.containsKey(config.dictionary.get(0)));
-        assertTrue(policyDictionaryPage.assertMap.get(config.dictionary.get(0)).equals(config.dictionary.get(1)));
-        assertTrue(title.equals(policyDictionaryPage.assertText));
+        try{
+            String title= policyDictionaryPage.skipRelationPolicySuccess(config.dictionary.get(0),config.dictionary.get(0),policyDetailPage);
+            assertTrue(policyDictionaryPage.assertMap.containsKey(config.dictionary.get(0)));
+            assertTrue(policyDictionaryPage.assertMap.get(config.dictionary.get(0)).equals(config.dictionary.get(1)));
+            assertTrue(title.equals(policyDictionaryPage.assertText));
+        }catch (AssertionError e){
+            Reporter.log("PolicyDictionaryPageTest.skipRelationPolicySuccess:跳转相关政策,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyDictionaryPageTest.skipRelationPolicySuccess:跳转相关政策,元素定位失败!");
+            throw  e;
+        }
     }
 
     @Test
     @Description("正常测试用例:跳转相关名词")
     @Story("政策词典")
     public void skipRelationDictionarySuccess(){
-        String title= policyDictionaryPage.skipRelationDictionarySuccess(config.dictionary.get(0),config.dictionary.get(0));
-        assertTrue(policyDictionaryPage.assertText.equals(title));
+        try{
+            String title= policyDictionaryPage.skipRelationDictionarySuccess(config.dictionary.get(0),config.dictionary.get(0));
+            assertTrue(policyDictionaryPage.assertText.equals(title));
+        }catch (AssertionError e){
+            Reporter.log("PolicyDictionaryPageTest.skipRelationDictionarySuccess:跳转相关名词,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyDictionaryPageTest.skipRelationDictionarySuccess:跳转相关名词,元素定位失败!");
+            throw  e;
+        }
     }
 }

+ 64 - 23
src/test/java/page/PolicyFileDetailPageTest.java

@@ -4,6 +4,7 @@ import conf.Config;
 import conf.Driver;
 import io.qameta.allure.Description;
 import io.qameta.allure.Story;
+import org.testng.Reporter;
 import org.testng.annotations.*;
 import util.RetryUtils;
 
@@ -48,30 +49,54 @@ public class PolicyFileDetailPageTest {
     @Description("正常测试用例:进入政策文件详情页")
     @Story("政策文件详情页")
     public void enterPolicyDetailSuccess(){
-        ArrayList<String> info=policyFileDetailPage.verficationDetailInfo();
+        try{
+            ArrayList<String> info=policyFileDetailPage.verficationDetailInfo();
 //        assertTrue(info.get(0).contains(config.policyfilename.get("title").get(0)));
-        assertTrue(info.get(0).contains("关于深入开展广东高价值商标品牌评价工作的通知"));
+            assertTrue(info.get(0).contains("关于深入开展广东高价值商标品牌评价工作的通知"));
 //        assertTrue(info.get(1).contains(config.policyfilename.get("title").get(1)));
-        assertTrue(info.get(1).contains("广东商标协会"));
+            assertTrue(info.get(1).contains("广东商标协会"));
 //        assertTrue(info.get(2).contains(config.policyfilename.get("title").get(2)));
-        assertTrue(info.get(2).contains("2024-06-26"));
-        assertTrue(info.get(3).contains("政策原文"));
+            assertTrue(info.get(2).contains("2024-06-26"));
+            assertTrue(info.get(3).contains("政策原文"));
+        }catch (AssertionError e){
+            Reporter.log("PolicyFileDetailPageTest.enterPolicyDetailSuccess:进入政策文件详情页,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyFileDetailPageTest.enterPolicyDetailSuccess:进入政策文件详情页,元素定位失败!");
+            throw  e;
+        }
     }
 
     @Test(priority = 5)
     @Description("正常测试用例:回到列表页面")
     @Story("政策文件详情页")
     public void retuenList(){
-        assertEquals(policyFileDetailPage.returnList().getPageText(),"政策搜索");
+        try{
+            assertEquals(policyFileDetailPage.returnList().getPageText(),"政策搜索");
 //        policyLibraryPage.enterPolicyFileDeatil("测试数据-政策文件");
-        policyLibraryPage.enterPolicyFileDeatil("关于深入开展广东高价值商标品牌评价工作的通知");
+            policyLibraryPage.enterPolicyFileDeatil("关于深入开展广东高价值商标品牌评价工作的通知");
+        }catch (AssertionError e){
+            Reporter.log("PolicyFileDetailPageTest.retuenList:回到列表页面,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyFileDetailPageTest.retuenList:回到列表页面,元素定位失败!");
+            throw  e;
+        }
     }
 
     @Test()
     @Description("正常测试用例:分享")
     @Story("政策文件详情页")
     public void share(){
-        assertEquals(policyFileDetailPage.share(),policyFileDetailPage.id);
+        try{
+            assertEquals(policyFileDetailPage.share(),policyFileDetailPage.id);
+        }catch (AssertionError e){
+            Reporter.log("PolicyFileDetailPageTest.share:分享,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyFileDetailPageTest.share:分享,元素定位失败!");
+            throw  e;
+        }
     }
 
     @DataProvider(name = "订阅")
@@ -86,18 +111,26 @@ public class PolicyFileDetailPageTest {
     @Description("正常测试用例:订阅")
     @Story("政策文件详情页")
     public void subscribe() throws Exception {
-        if(policyFileDetailPage.subscribeText.contains("+ 订阅")){
+        try{
+            if(policyFileDetailPage.subscribeText.contains("+ 订阅")){
 //            assertEquals(policyFileDetailPage.subscribe(pushPage,config.policyfilename.get("title").get(0)),"已订阅");
-            assertEquals(policyFileDetailPage.subscribe(pushPage,"关于深入开展广东高价值商标品牌评价工作的通知"),"已订阅");
-            assertEquals(policyFileDetailPage.tips,"操作成功");
-            assertTrue(pushPage.titlesList.contains(policyFileDetailPage.titleText));
-        }else if(policyFileDetailPage.subscribeText.contains("已订阅")){
+                assertEquals(policyFileDetailPage.subscribe(pushPage,"关于深入开展广东高价值商标品牌评价工作的通知"),"已订阅");
+                assertEquals(policyFileDetailPage.tips,"操作成功");
+                assertTrue(pushPage.titlesList.contains(policyFileDetailPage.titleText));
+            }else if(policyFileDetailPage.subscribeText.contains("已订阅")){
 //            assertEquals(policyFileDetailPage.subscribe(pushPage,config.policyfilename.get("title").get(0)),"+ 订阅");
-            assertEquals(policyFileDetailPage.subscribe(pushPage,"关于深入开展广东高价值商标品牌评价工作的通知"),"+ 订阅");
-            assertEquals(policyFileDetailPage.tips,"操作成功");
-            assertTrue(!pushPage.titlesList.contains(policyFileDetailPage.titleText));
-        }else {
-            throw new Exception("订阅按钮文本为空!");
+                assertEquals(policyFileDetailPage.subscribe(pushPage,"关于深入开展广东高价值商标品牌评价工作的通知"),"+ 订阅");
+                assertEquals(policyFileDetailPage.tips,"操作成功");
+                assertTrue(!pushPage.titlesList.contains(policyFileDetailPage.titleText));
+            }else {
+                throw new Exception("订阅按钮文本为空!");
+            }
+        }catch (AssertionError e){
+            Reporter.log("PolicyFileDetailPageTest.subscribe:订阅,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyFileDetailPageTest.subscribe:订阅,元素定位失败!");
+            throw  e;
         }
     }
 
@@ -105,19 +138,27 @@ public class PolicyFileDetailPageTest {
     @Description("正常测试用例:联系信息校验")
     @Story("政策文件详情页")
     public void contactInfoVerifySuccess(){
-        ArrayList<String> info=policyFileDetailPage.contactInfoVerify();
-        ArrayList<String> data=config.policyfilename.get("联系信息");
+        try{
+            ArrayList<String> info=policyFileDetailPage.contactInfoVerify();
+            ArrayList<String> data=config.policyfilename.get("联系信息");
 //        assertEquals(info.get(0),"联系单位:"+data.get(0));
-        assertEquals(info.get(0),"联系单位:"+"广东商标协会");
+            assertEquals(info.get(0),"联系单位:"+"广东商标协会");
 //        assertEquals(info.get(1),"联系人:"+data.get(1));
-        assertEquals(info.get(1),"联系人:"+"吴臻焯、米煜妍");
+            assertEquals(info.get(1),"联系人:"+"吴臻焯、米煜妍");
 //        assertEquals(info.get(2),"联系电话:"+data.get(2));
-        assertEquals(info.get(2),"联系电话:"+"020-85586295;80926402");
+            assertEquals(info.get(2),"联系电话:"+"020-85586295;80926402");
 //        assertEquals(info.get(3),"联系地址:"+data.get(3));
 //        assertEquals(info.get(3),"联系地址:"+"—");
 //        assertEquals(info.get(4),"邮箱:"+data.get(4));
 //        assertEquals(info.get(4),"邮箱:"+"—");
 //        assertEquals(info.get(5),"备注:"+data.get(5));
 //        assertEquals(info.get(5),"备注:"+"—");
+        }catch (AssertionError e){
+            Reporter.log("PolicyFileDetailPageTest.contactInfoVerifySuccess:联系信息校验,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyFileDetailPageTest.contactInfoVerifySuccess:联系信息校验,元素定位失败!");
+            throw  e;
+        }
     }
 }

+ 125 - 60
src/test/java/page/PolicyLibraryTest.java

@@ -4,6 +4,7 @@ import conf.Config;
 import conf.Driver;
 import io.qameta.allure.Description;
 import io.qameta.allure.Story;
+import org.testng.Reporter;
 import org.testng.annotations.AfterClass;
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.BeforeMethod;
@@ -138,20 +139,36 @@ public class PolicyLibraryTest {
     @Description("正常测试用例:搜索存在的政策原文标题")
     @Story("政策文库")
     public void policyTitleSearchSuccess(){
-        String policyTitle="顺德区发展和改革局关于开展2024年度粮食产业扶持项目申报工作的通知" ;
-        policyLibrary.searchPolicyTitleSuccess(policyTitle).forEach(title->{
-            assertTrue(title.contains(policyTitle));
-        });
+        try{
+            String policyTitle="顺德区发展和改革局关于开展2024年度粮食产业扶持项目申报工作的通知" ;
+            policyLibrary.searchPolicyTitleSuccess(policyTitle).forEach(title->{
+                assertTrue(title.contains(policyTitle));
+            });
+        }catch (AssertionError e){
+            Reporter.log("PolicyLibraryTest.policyTitleSearchSuccess:搜索存在的政策原文标题,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyLibraryTest.policyTitleSearchSuccess:搜索存在的政策原文标题,元素定位失败!");
+            throw  e;
+        }
     }
 
     @Test(priority = 1)
     @Description("正常测试用例:搜索存在的项目标题")
     @Story("政策文库")
     public void projectTitleSearchSuccess(){
-        String projectTitle="广东民营企业家智库成员推荐(2024省级|第三批)" ;
-        policyLibrary.searchProjectTitleSuccess(projectTitle).forEach(title->{
-            assertTrue(title.contains("广东民营企业家智库成员推荐(2024省级|第三批)"));
-        });
+        try{
+            String projectTitle="广东民营企业家智库成员推荐(2024省级|第三批)" ;
+            policyLibrary.searchProjectTitleSuccess(projectTitle).forEach(title->{
+                assertTrue(title.contains("广东民营企业家智库成员推荐(2024省级|第三批)"));
+            });
+        }catch (AssertionError e){
+            Reporter.log("PolicyLibraryTest.projectTitleSearchSuccess:搜索存在的项目标题,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyLibraryTest.projectTitleSearchSuccess:搜索存在的项目标题,元素定位失败!");
+            throw  e;
+        }
     }
 
 //    @Test(priority = 1)
@@ -167,57 +184,81 @@ public class PolicyLibraryTest {
     @Description("正常测试用例:搜索申报状态:申报中")
     @Story("政策文库")
     public void applySearch(){
-        HashMap<Integer,ArrayList<String>> map=policyLibrary.searchApply();
-        Boolean start=false;
-        for(ArrayList<String> str:map.values()){
-            for(String text:str){
-                if(text.matches("【剩\\d*天】") || text.matches("【今天截止】")){
-                    start=true;
-                    break;
-                }else {
-                    start=false;
-                    assertTrue(start);
+        try{
+            HashMap<Integer,ArrayList<String>> map=policyLibrary.searchApply();
+            Boolean start=false;
+            for(ArrayList<String> str:map.values()){
+                for(String text:str){
+                    if(text.matches("【剩\\d*天】") || text.matches("【今天截止】")){
+                        start=true;
+                        break;
+                    }else {
+                        start=false;
+                        assertTrue(start);
+                    }
                 }
             }
+            assertTrue(start);
+        }catch (AssertionError e){
+            Reporter.log("PolicyLibraryTest.applySearch:搜索申报状态:申报中,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyLibraryTest.applySearch:搜索申报状态:申报中,元素定位失败!");
+            throw  e;
         }
-        assertTrue(start);
     }
 
     @Test(priority = 1)
     @Description("正常测试用例:搜索申报状态:已截止")
     @Story("政策文库")
     public void FinshSearch(){
-        HashMap<Integer,ArrayList<String>> map=policyLibrary.searchFinsh();
-        Boolean start=false;
-        for(ArrayList<String> str:map.values()){
-            for(String text:str){
-                if(text.matches("【已截止】")){
-                    start=true;
-                    break;
-                }else {
-                    start=false;
-                    assertTrue(start);
+        try{
+            HashMap<Integer,ArrayList<String>> map=policyLibrary.searchFinsh();
+            Boolean start=false;
+            for(ArrayList<String> str:map.values()){
+                for(String text:str){
+                    if(text.matches("【已截止】")){
+                        start=true;
+                        break;
+                    }else {
+                        start=false;
+                        assertTrue(start);
+                    }
                 }
             }
+            assertTrue(start);
+        }catch (AssertionError e){
+            Reporter.log("PolicyLibraryTest.FinshSearch:搜索申报状态:已截止,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyLibraryTest.FinshSearch:搜索申报状态:已截止,元素定位失败!");
+            throw  e;
         }
-        assertTrue(start);
     }
 
     @Test(priority = 1)
     @Description("正常测试用例:搜索扶持扶持方式:资金扶持")
     @Story("政策文库")
     public void searchSupportOne(){
-        HashMap<Integer,ArrayList<String>> map=policyLibrary.searchOneSupport();
-        Boolean start=false;
-        for(ArrayList<String> str:map.values()){
-            if(str.contains(policyLibrary.assertText)){
-                start=true;
-            }else {
-                start=false;
-                assertTrue(start);
+        try{
+            HashMap<Integer,ArrayList<String>> map=policyLibrary.searchOneSupport();
+            Boolean start=false;
+            for(ArrayList<String> str:map.values()){
+                if(str.contains(policyLibrary.assertText)){
+                    start=true;
+                }else {
+                    start=false;
+                    assertTrue(start);
+                }
             }
+            assertTrue(start);
+        }catch (AssertionError e){
+            Reporter.log("PolicyLibraryTest.searchSupportOne:搜索扶持扶持方式:资金扶持,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyLibraryTest.searchSupportOne:搜索扶持扶持方式:资金扶持,元素定位失败!");
+            throw  e;
         }
-        assertTrue(start);
     }
 
 //    @Test(priority = 1,retryAnalyzer = RetryUtils.class)
@@ -294,43 +335,67 @@ public class PolicyLibraryTest {
     @Description("正常测试用例:搜索政策文件关键字")
     @Story("政策文库")
     public void policyFileSearchSuccess(){
-        ArrayList<String> list=policyLibrary.searchPolicyFileTitleSuccess();
-        Boolean start=false;
-        for(String str:list){
-            if(str.contains(policyLibrary.assertText)){
-                start=true;
-            }else {
-                start=false;
-                assertTrue(start);
+        try{
+            ArrayList<String> list=policyLibrary.searchPolicyFileTitleSuccess();
+            Boolean start=false;
+            for(String str:list){
+                if(str.contains(policyLibrary.assertText)){
+                    start=true;
+                }else {
+                    start=false;
+                    assertTrue(start);
+                }
             }
+            assertTrue(start);
+        }catch (AssertionError e){
+            Reporter.log("PolicyLibraryTest.policyFileSearchSuccess:搜索政策文件关键字,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyLibraryTest.policyFileSearchSuccess:搜索政策文件关键字,元素定位失败!");
+            throw  e;
         }
-        assertTrue(start);
     }
 
     @Test(priority = 4)
     @Description("异常测试用例:搜索不存在的政策文件")
     @Story("政策文库")
     public void policyFileSearchFail(){
-        String titles="null!" ;
-        assertEquals(policyLibrary.searchPolicyFileTitleFail(titles),
-                "没有找到关于 \"null!\" 的政策文件");
+        try{
+            String titles="null!" ;
+            assertEquals(policyLibrary.searchPolicyFileTitleFail(titles),
+                    "没有找到关于 \"null!\" 的政策文件");
+        }catch (AssertionError e){
+            Reporter.log("PolicyLibraryTest.policyFileSearchFail:搜索不存在的政策文件,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyLibraryTest.policyFileSearchFail:搜索不存在的政策文件,元素定位失败!");
+            throw  e;
+        }
     }
 
     @Test(priority = 3)
     @Description("正常测试用例:搜索公示公告关键字")
     @Story("政策文库")
     public void noticeSearchSuccess(){
-        ArrayList<String> list=policyLibrary.searchNoticeSuccess();
-        Boolean start=false;
-        for(String str:list){
-            if(str.contains(policyLibrary.assertText)){
-                start=true;
-            }else {
-                start=false;
-                assertTrue(start);
+        try{
+            ArrayList<String> list=policyLibrary.searchNoticeSuccess();
+            Boolean start=false;
+            for(String str:list){
+                if(str.contains(policyLibrary.assertText)){
+                    start=true;
+                }else {
+                    start=false;
+                    assertTrue(start);
+                }
             }
+            assertTrue(start);
+        }catch (AssertionError e){
+            Reporter.log("PolicyLibraryTest.noticeSearchSuccess:搜索公示公告关键字,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicyLibraryTest.noticeSearchSuccess:搜索公示公告关键字,元素定位失败!");
+            throw  e;
         }
-        assertTrue(start);
     }
 
 //    @Test(priority = 2)

+ 25 - 6
src/test/java/page/PolicySubjectPageTest.java

@@ -4,11 +4,14 @@ import conf.Config;
 import conf.Driver;
 import io.qameta.allure.Description;
 import io.qameta.allure.Story;
+import org.testng.Reporter;
 import org.testng.annotations.AfterClass;
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
 import util.RetryUtils;
 
+import java.util.ArrayList;
+
 import static org.testng.Assert.*;
 
 public class PolicySubjectPageTest {
@@ -36,16 +39,32 @@ public class PolicySubjectPageTest {
     @Description("正常测试用例:切换政策标题")
     @Story("政策专题")
     public void switchSubject(){
-        String text= policySubjectPage.switchSubject();
-        assertEquals(policySubjectPage.assertText,policySubjectPage.subjectText);
-        assertEquals(text,policySubjectPage.subjectText+"相关政策");
-        assertTrue(!policySubjectPage.assertList.equals(policySubjectPage.startPolicy));
+        try{
+            String text= policySubjectPage.switchSubject();
+            assertEquals(policySubjectPage.assertText,policySubjectPage.subjectText);
+            assertEquals(text,policySubjectPage.subjectText+"相关政策");
+            assertTrue(!policySubjectPage.assertList.equals(policySubjectPage.startPolicy));
+        }catch (AssertionError e){
+            Reporter.log("PolicySubjectPageTest.switchSubject:切换政策标题,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicySubjectPageTest.switchSubject:切换政策标题,元素定位失败!");
+            throw  e;
+        }
     }
 
     @Test(priority = 5)
-    @Description("正常测试用例:切换政策标题")
+    @Description("正常测试用例:跳转政策详情")
     @Story("政策专题")
     public void skipPolicyDetail(){
-        assertEquals(policySubjectPage.skipPolicyDetail(policyFileDetailPage,homePage),policySubjectPage.assertText);
+        try{
+            assertEquals(policySubjectPage.skipPolicyDetail(policyFileDetailPage,homePage),policySubjectPage.assertText);
+        }catch (AssertionError e){
+            Reporter.log("PolicySubjectPageTest.skipPolicyDetail:跳转政策详情,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("PolicySubjectPageTest.skipPolicyDetail:跳转政策详情,元素定位失败!");
+            throw  e;
+        }
     }
 }

+ 1 - 0
src/test/java/page/ProjectMatchPage2120Test.java

@@ -5,6 +5,7 @@ import conf.Config;
 import conf.Driver;
 import io.qameta.allure.Description;
 import io.qameta.allure.Story;
+import org.testng.Reporter;
 import org.testng.annotations.AfterClass;
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;

+ 19 - 9
src/test/java/page/ProjectMatchRecordPageTest.java

@@ -4,6 +4,7 @@ import conf.Config;
 import conf.Driver;
 import io.qameta.allure.Description;
 import io.qameta.allure.Story;
+import org.testng.Reporter;
 import org.testng.annotations.AfterClass;
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
@@ -36,20 +37,29 @@ public class ProjectMatchRecordPageTest {
     @Description("正常测试用例:进入匹配记录详情页")
     @Story("匹配记录")
     public void enterMatchDetailSuccess(){
-        assertEquals(projectMatchRecordPage.enterMatchDetail(),projectMatchRecordPage.assertText);
-    }
-
-    @Test()
-    @Description("正常测试用例:重新匹配项目")
-    @Story("匹配记录")
-    public void matchAgainSuccess(){
-        assertEquals(projectMatchRecordPage.matchAgain(),projectMatchRecordPage.assertText);
+        try{
+            assertEquals(projectMatchRecordPage.enterMatchDetail(),projectMatchRecordPage.assertText);;
+        }catch (AssertionError e){
+            Reporter.log("ProjectMatchRecordPageTest.enterMatchDetailSuccess:进入匹配记录详情页,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("ProjectMatchRecordPageTest.enterMatchDetailSuccess:进入匹配记录详情页,元素定位失败!");
+            throw  e;
+        }
     }
 
     @Test(priority = 5)
     @Description("正常测试用例:点击项目标题,打开对应的项目摘要页")
     @Story("匹配记录")
     public void openProjectDetail(){
-        assertEquals(projectMatchRecordPage.openProjectDetail(policyFileDetailPage),projectMatchRecordPage.assertText);
+        try{
+            assertEquals(projectMatchRecordPage.openProjectDetail(policyFileDetailPage),projectMatchRecordPage.assertText);
+        }catch (AssertionError e){
+            Reporter.log("ProjectMatchRecordPageTest.openProjectDetail:点击项目标题,打开对应的项目摘要页,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("ProjectMatchRecordPageTest.openProjectDetail:点击项目标题,打开对应的项目摘要页,元素定位失败!");
+            throw  e;
+        }
     }
 }

+ 12 - 3
src/test/java/page/UserCenterTest.java

@@ -5,6 +5,7 @@ import conf.Config;
 import conf.Driver;
 import io.qameta.allure.Description;
 import io.qameta.allure.Story;
+import org.testng.Reporter;
 import org.testng.annotations.AfterClass;
 import org.testng.annotations.BeforeClass;
 import org.testng.annotations.Test;
@@ -35,9 +36,17 @@ public class UserCenterTest {
 
     @Test
     @Description("正常测试用例:[我的数据]提交建议")
-    @Story("项目匹配")
+    @Story("用户中心")
     public void perfectSubmitProposalSuccess(){
-        String value=faker.name().fullName();
-        assertEquals(userCenter.submitProposalSuccess(value,"备注"),"提交成功");
+        try{
+            String value=faker.name().fullName();
+            assertEquals(userCenter.submitProposalSuccess(value,"备注"),"提交成功");
+        }catch (AssertionError e){
+            Reporter.log("UserCenterTest.openProjectDetail:perfectSubmitProposalSuccess,打开对应的项目摘要页,断言失败!");
+            throw  e;
+        }catch (Exception e){
+            Reporter.log("UserCenterTest.openProjectDetail:perfectSubmitProposalSuccess,打开对应的项目摘要页,元素定位失败!");
+            throw  e;
+        }
     }
 }