6

I'm starting to learn Gatling and using Gatling Recorder.

In my SUT, login is done via Google Auth, but when I try to record steps with Gatling Recorder and Firefox with the proxy set, I receive the following message:

Your connection is not secure

The owner of accounts.google.com has configured their website improperly. 
To protect your information from being stolen, Firefox has not connected to this website.

This site uses HTTP Strict Transport Security (HSTS) to specify that Firefox only connects to it securely. 
As a result, it is not possible to add an exception for this certificate.

accounts.google.com uses an invalid security certificate. 
The certificate is not trusted because it is self-signed. 
The certificate is only valid for Gatling Error code: SEC_ERROR_UNKNOWN_ISSUER

I've tried HTTPS Mode "Certificate Authority" with the certificate generated from Gatling and the message is:

Your connection is not secure

The owner of accounts.google.com has configured their website improperly. 
To protect your information from being stolen, Firefox has not connected to this website.

This site uses HTTP Strict Transport Security (HSTS) to specify that Firefox only connects to it securely. 
As a result, it is not possible to add an exception for this certificate.

accounts.google.com uses an invalid security certificate. 
The certificate does not come from a trusted source. 
Error code: MOZILLA_PKIX_ERROR_V1_CERT_USED_AS_CA

I've tried using a manually self-signed certificate but again with no success.

Does someone have an idea how to use Gatling Recorder with Google Auth?

  • I realize not a proxy recorder solution, but you can use the import HAR file option in gatling recorder to generate a simulation. Mozilla help shows how to export it's own network recording as HAR file. – glenschler Feb 5 '17 at 1:02
1

It isn't something you can actually record, if your application uses Google credentials for authentication, most probably you need to implement OAuth flow in your Gatling test i.e.

  • Provide OAuth credentials as a part of your request
  • Extract dynamic response parts like redirect URL or using Checks
  • Once you get Access Token add the relevant Header to your request

See the following references:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.