答案 0 :(得分:1)
您似乎落后于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
证书问题,可以在 this post 中找到有用的答案