0

JWebUnit を使用して、ローカルで実行されているアプリケーション (localhost) でテストを実行していますが、アプリケーションの一部では、ユーザーを外部サイトにリダイレクトし、いくつかのことを行ってから戻ってくる (localhost にリダイレクトする) 必要があります。

私はプロキシの背後にいるので、TestContext.setProxyAuthorization() を使用しようとしましたが、JWebUnit はローカルでアプリケーションにアクセスできません (TestContext には nonProxyHosts のようなものはありません)。TestContext.setProxyAuthorization() を使用しない場合、JWebUnit はリモート サイトにアクセスしないでください。

私は何をすべきか?

4

1 に答える 1

0
you can use the following within your setup method.  I have used this myself and it works
you may need to add a password key and a value too

 System.setProperty("proxyHost", "AUT ip");
 System.setProperty("proxyPort", "AUT port 8080");
 System.setProperty("proxySet", "true");
 System.setProperty("http.nonProxyHosts", "webserverfor AUT");`enter code here`
于 2012-04-02T09:38:13.320 に答える