虽然我看到了一个关于这个的open issue,想检查我们是否有解决办法,有什么好的建议吗?
只有在使用this.retries()时,我才看到json结果显示元素state和speed为null,元素pass、fail as false和err为空,这也是html报告看起来不正确的结果。这是我的测试
describe(`Page Load checks `, async function () {
it('Page Check', async function () {
this.retries(1);
presentationsPage = await navMenu.loadPresentationsPage();
const result = await presentationsPage.isPresentationsPageLoadComplete();
expect(result).to.equal(true, 'Expected : Presentation Page');
}) ;
} );和json结果。
{
"title": "Page Check",
"fullTitle": "Page Loads Check",
"timedOut": false,
"duration": 32014,
"state": null,
"speed": null,
"pass": false,
"fail": false,
"pending": false,
"context": null,
"code": "__awaiter(this, void 0, void 0, function...",
"err": {},
"uuid": "6971b4af-b327bda4ffa8",
"parentUUID": "3345841e-6a5f-19fee98",
"isHook": false,
"skipped": true
}发布于 2020-03-26 03:28:55
如果有人在使用retries()时遇到同样的问题,我切换到了一个名为mocha-allure-reporter的报告框架。我发现这是一个很棒的报告框架。
https://stackoverflow.com/questions/60045615
复制相似问题