Tring to run Zap on Jmeter -for UI script

62 views
Skip to first unread message

PRANESH Saravanamuthu

unread,
Mar 4, 2024, 12:31:06 PM3/4/24
to ZAP User Group
Team, Good morning , 
Am in progress of creating Security testing for my UI application , which i have built on Jmeter. 
this script is using Chrome Driver, if i use Zap proxy and port number on chrom driver config. 

am getting below error while launching browser. 
2024-03-04 12:15:21,801 ERROR o.a.j.t.JMeterThread: Error calling threadStarted
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 400. Message: invalid argument: entry 0 of 'firstMatch' is invalid
from invalid argument: cannot parse capability: proxy
from invalid argument: 'socksVersion' must be between 0 and 255
Host info: host: 'VA-X4U5HH09XAN7', ip: '192.168.1.169'
Build info: version: '4.9.1', revision: 'eb2032df7f'
System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '21.0.2'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Command: [null, newSession {capabilities=[Capabilities {acceptInsecureCerts: false, browserName: chrome, goog:chromeOptions: {args: [--headless=new, --remote-allow-origins=*], extensions: []}, proxy: Proxy(manual, ftp=:8080, ht...}]}]
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:136) ~[selenium-remote-driver-4.9.1.jar:?]
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:94) ~[selenium-remote-driver-4.9.1.jar:?]
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:68) ~[selenium-remote-driver-4.9.1.jar:?]




could you pls assist me on this issue . 

Thank you 

Simon Bennetts

unread,
Mar 4, 2024, 1:13:06 PM3/4/24
to ZAP User Group
Can you explain what you are doing in a bit more detail?
That does not look like a ZAP log ..

Cheers,

Simon

PRANESH Saravanamuthu

unread,
Mar 7, 2024, 6:17:04 AM3/7/24
to ZAP User Group

I have created Web UI script in Jmeter , which uses ChromeWebDriverConfig for Login , 
so on this Webdriver  , if i add proxy server and port , am not able to run the Test , it fails continuosly , but for other API calls it runs perfectly .


if i remove the ZAP IP and Port , it runs perfectly.
can you please assist 

Thank you 

Simon Bennetts

unread,
Mar 7, 2024, 7:39:51 AM3/7/24
to ZAP User Group
We can try, but thats not much to go on really.

Can you connect to the target when proxying your browser through ZAP?
If so that would imply theres a problem with your Jmeter set up.

You may also need to import and trust the ZAP certificate.

Cheers,

Simon

thc...@gmail.com

unread,
Mar 7, 2024, 10:53:37 AM3/7/24
to zaprox...@googlegroups.com
It would also help if you could provide the proxy configs you are using,
ZAP is an HTTP proxy (saying because there's an error with SOCKS proxy
config).

Best regards.
Reply all
Reply to author
Forward
0 new messages