fixed the issue. Will look into that further I may be over-simplifying things, but this looks like this is a simple incorrect API call. proxy.setHostName is where you define the host name of the proxy server, you set the user name through the proxy.setUser API, i.e:
How to set VB Application Proxy Settings to Default System Proxy Settings
seems to work fine My application is supposed to work on a Company Network where proxy is enabled, By default when logged in all applications like browser and all can access internet normally , Try this...
it should still fix some issue Given you run JMeter from a separate Java program you need to pass proxy arguments to this Java program. There are several ways on how this could be done, check our Java Networking and Proxies article for comprehensive information, you seem to be a fan of doing everything through the code so just add the following lines before launching a JMeter test: