We don't have a way to export this macro.
Retrieve OTP Code and make it available for your GDSL test manually. When you launch a measurement on a Test Bench device with the Greenspector CLI, you can receive the OTP via an email or a SMS on your own device linked to your account. May be you have to use an authenticator to retrieve the OTP manually.
...
We use the same mechanism as describe in the two parts : “Create and configure a mailsac account” and “Example with OTP” of the page Authentication with email but the difference is that you have to send manually an email containing the OTP you have to the mailsac email.
...