发布于 2015-09-04 00:40:35
看起来你在proxy后面。然后,要使您的frisby测试工作,您需要应用proxy configuration,如下所示:
var frisby = require('frisby');
frisby.globalSetup({
request: {
proxy: 'http://xx.xx.xx.xx:yyyy' // Provide proxy info (host, port) here
}
});
frisby.create('Your spec description here')
.get('https://machine_name:8443')
.expectStatus(200)
.toss();另请注意,您使用的是HTTPS协议。如果您在使用SSL证书时遇到问题,您可能会在中找到有用的my答案
https://stackoverflow.com/questions/32350108
复制相似问题