如何在karate-config.js文件中定义代理设置? [英] How can I define proxy settings in karate-config.js file?

查看:81
本文介绍了如何在karate-config.js文件中定义代理设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在使用代理的办公室网络后面使用空手道.但是configure语句不起作用.在家庭网络中.它工作得很好.

I'm trying with Karate behind my office network which is using proxy. But the configure statement didn't work. In home network. it works perfectly fine.

configure语句:不适用于我们的代理. karate.configure('proxy', 'https:/my.proxy.host:8080');

The configure statement : didn't work for our proxy. karate.configure('proxy', 'https:/my.proxy.host:8080');

推荐答案

从这些问题中您可以看到这另一个Stack Overflow 问题,该问题也适用于其他问题.因此,您必须弄清楚这一点,如果可以的话,如果在Java端进行调试,它将对每个人都有帮助.也许您缺少环境的身份验证.

As you can see from these issues #502 and this other Stack Overflow question, this works for others. So you will have to figure this out and it will help everyone if you debug this on the Java side if possible. Maybe you are missing authentication for your environment.

您可以尝试从karate-apache切换到karate-jersey,反之亦然,看看是否有任何改变.否则,除非您提供复制的方法,否则我们无济于事-但这对于代理确实很困难: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

You can try switching to karate-jersey from karate-apache or vice-versa and see if that changes anything. Else unless you provide a way to replicate, we can't help - but this is indeed difficult for a proxy: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

这篇关于如何在karate-config.js文件中定义代理设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆