【发布时间】:2023-03-04 21:58:01
【问题描述】:
TestNG 的默认电子邮件报告在测试用例失败或断言消息时显示异常。
但是在这里我想在通过的测试用例中添加一条消息,例如在 TestNG 报告中的一些输出值。具体来说:
1. Submit a form in UI.
2. A success message with ID will be displayed.
3. Retrieve that ID using selenium's getText().
4. In the TestNG report, print the above-retrieved ID as "Submitted form ID: {id}".
当用户点击报告通过的测试用例时,我希望显示这些消息。
【问题讨论】:
标签: java selenium testng extentreports selenium-extent-report