Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to attach the client certificate to webdriver sampler in Jmeter? #2

Open
NaliniSake opened this issue May 22, 2023 · 6 comments
Open

Comments

@NaliniSake
Copy link

NaliniSake commented May 22, 2023

I have jks file and updated key store configuration in Jmeter system properties and it works for http sampler, how can I make this work for webdriver sampler.
I have 100 users with .pfx file for each and how can I parse the user certs in webdriver sampler?
I really appreciate the guidance here. Thanks!

@NaliniSake
Copy link
Author

NaliniSake commented May 22, 2023

I did set up the Chrome driver config and checked the box 'Accept Insecure Certs' but where to call the certificate?

@ianoflynnautomation
Copy link
Owner

@NaliniSake can you post the error messages you are receiving? are you trying to run tests against a local env? or hosted webapp?

@NaliniSake
Copy link
Author

NaliniSake commented May 23, 2023

Yeah, I'm running on my local machine.. it requires client certificate to authenticate with open AM and the gets in to application(Single sign on- no user name or password), I have my own user certificate installed and pushed in to my certificates personal store, so automatically I'm able to record the script and replay it successfully,
I don't see any errors, the issue is even though I set Key store properties in system properties file and parse the values in Launch sampler as shown and did set csv configuration with user cert details along with Keystore configuration in Jmeter, while replaying the script, the chrome instance gets open and logging with my user cert and could see my name in application dashboard(after login), like Hello Nalini.. I want it to consider user certs and login with user.
In Jmeter log section. I could see alias and email details of perf users, not sure why it is login with my certs.

Screen Shot 2023-05-23 at 10 41 34 AM

Please let me know what I'am doing wrong here?
How can I make Jmeter to understand to consider user cert and login with user in chrome browser.
Screen Shot 2023-05-23 at 10 38 36 AM

@NaliniSake
Copy link
Author

NaliniSake commented May 23, 2023

I tried disabling my user certificate from certificate manager, and tried attaching the jks file manually in jmeters-options-ssl manager, but while replaying the user is not able to get in to application, but I definitely see it took parameters of user cert but not able to login..the page keep loading..Looks like, on my local machine I'm not able to run with other certs. Is there any way, where I could run the jmeter script with perf test user certs succesfully?

Screen Shot 2023-05-23 at 10 39 34 AM ler/assets/98602032/2b076dd1-f022-4038-b867-981776a5a67f">

@ianoflynnautomation
Copy link
Owner

ianoflynnautomation commented May 23, 2023

I never encountered any of these issues. Sounds like the issue is on application level and not JMeter selenium webdriver sampler level. Have you tried using Http Test Script Recorder with FireFox to record actions in browser and see what is going on?
https://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.html

@NaliniSake
Copy link
Author

NaliniSake commented May 23, 2023

I need to capture page rendering metrics, so web driver sampler is the only option.
Do you have any idea that can we run this .jmx in blazemeter with all this chromedriver set up?
Does blazemeter supports the chromedriver and webdriver sampler?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants