【发布时间】:2019-09-01 05:08:56
【问题描述】:
使用 e2e 量角器测试的测试用例
it('Should reach testsite', done => {
request('https://sbx-office-api.b2bcloud.com/rmi/v1/books/list?type=fetchall' + '/authorize/authenticate')
.set('Accept', 'application/json, text/plain, */*').set( 'Content-Type', 'application/json')
.set('User-Agent', 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36')
.set('Authorization', 'token')
.end(function (error, body) {
if (error) {
console.log('error:', error);
} else {
console.log('body:', body);
}
});
});
e2e 量角器测试
【问题讨论】:
标签: angular protractor e2e-testing azure-devops-rest-api