我有以下代码
let randomEmail = '';
fixture(`RANDOM EMAIL TESTS`)
.beforeEach(async t => {
// Do this if you want to update the email between each test
randomEmail = `test+${Math.floor(Math.random() * 1000)}@gmail.com`;
})
test('Display First Email', async t => {
console.log(randomEmail);
})
test('Display Second Email', async t => {
console.log(randomEmail);
})
其中getAttachmentToken返回单个
我想每10秒重复一次getAttachmentToken请求,仅重复3次,直到Token.getStatus = COMPLETE
我找到了重复请求的方法,但从未找到一种获取和评估每个请求结果的方法。
感谢您的帮助
致谢