BZM: TOTP (Time-based One-time Password) or OTP (One-time Password) solution

book

Article ID: 209493

calendar_today

Updated On:

Products

BlazeMeter

Issue/Introduction

 
Is there a way to get a one-time-password like from Google Authenticator within BlazeMeter?

I have seen Java and JavaScript code out there to do it. But, they rely on downloaded libraries. Which I am sure are not available in BlazeMeter java scripting.
 
I have a PowerShell script that can put a code in a text file. But, it is only good for 30 or 60 seconds. And, the application does not allow longer time frame codes. And, I would still need a way to execute it and get the results into my test.
 


I need what the site below emulates.

https://totp.danhersam.com/

I just do not want to use this site for production calls.  Because it is not a paid resource I would have support with.

Cause

N/A

Environment

Release : SAAS

Component : BLAZEMETER PERFORMANCE TESTING

Resolution

As per development you can build a custom script with JMeter's components and upload the necessary JAR files needed to run it to do what you want. 

That is supported in BlazeMeter (below is documentation showing as much):

https://guide.blazemeter.com/hc/en-us/articles/207420175-Uploading-Files

https://guide.blazemeter.com/hc/en-us/articles/206732949-Test-Works-Locally-but-not-on-BlazeMeter

You can use any custom JAR file you want with your JMeter test in BlazeMeter (you would just need to upload them to BlazeMeter with the JMeter script), then you will be able to run your test in BlazeMeter. If you are wanting help from us with scripting, you need to reach out to services which is going to involve some cost.