Closed axel3rd closed 4 years ago
looks like it fails when retrieving DTD file from testng.org.
given the error UnknownHostException: testng.org
looks like DNS issue rather than http proxy, could you check the DNS settings or if you're using company DNS and IT can't add testng.org to resolve list, then we don't have much choice here.
@krmahadevan do you have any suggestion?
@missedone Thanks for your feedback.
could you check the DNS settings or if you're using company DNS and IT can't add testng.org to resolve list, then we don't have much choice here
This is not possible, any internet domain resolution should be done by using the proxy. I agree this is a painful usage in development 😁, but this is for security reason, not negotiable 😢.
Beyond this proxy problem, the question is: why internet connection is required to execute TestNG ?. If I switch my computer in "Airplane mode" (without internet access), I should be able to continue to execute my tests (if no external connection is required) !
That said : On a personal computer (without proxy) without internet connection, I can reproduce the problem on a snippet project (java.net.UnknownHostException: testng.org
).
But switching dependency org.testng.testng
from 6.8
to 7.3.0
, the problem disappear.
I was thinking that the root cause was the Eclipse plugin (because problem appears after an Eclipse plugin update), but testng project dependency is in the game.
=> I will do more tests but upgrade project testng version could solve the problem.
Problem is fixed by using any v7.x TestNG version (as dependency project)
link https://github.com/cbeust/testng/pull/2386 fixes this issue
Problem Statement
When TestNG for Eclipse Plugin is used behind a corporate (authenticated) proxy, any execution throws a
UnknownHostException: testng.org
.Even if :
-Dhttp.proxyHost=proxy.company.com -Dhttp.proxyPort=8080 -Dhttps.proxyUser=foo -Dhttps.proxyPassword=bar
)The problem has been introduced in v7.1.1 of plugin (it was fine in v7.1.0).
I didn't found any way to disable Xerces validation 😢.
Console log error
The Dependency Management tool for your project
Operating System