- web apps
Why Install Chrome Extension?
Steps to Test Locally Hosted Apps
How to Turnoff Onboading Tutorial?
Non-Text Keys in Test Cases
Basic Authentication for Web
Why Bypass CAPTCHA?
Test Case Failures Due to Link Text Capture Issues
Why Is a Single Video for All Test Cases in a Test Plan Unavailable in Some Cases?
How to Handle Browser-Related Permission Issues?
Why Can’t Selenium ChromeDriver Interact With 3DS Authentication Pages?
How Do I Fix the Try Again Error When Opening the Testsigma Desktop App?
Why Am I Getting an Error While Registering the Agent?
Why Does the Try Again Error Appear While Installing the Testsigma Agent in a Proxy Environment?- mobile apps
Apple Pay Automation with Testsigma
How do I Enhance the Execution Speed for Mobile Native Apps?
Why am I Facing Permission Error During Local Test Execution?
How to Resolve App Launch Issues?
Why does the iOS App Close Right After Opening in Testsigma?
How to Execute Android/iOS Tests in Emulators/Simulators?- general
Why am I Unable to Download the XLS File from the Edge Browser?
How to Handle Browser-Related Pop-Up Issues?
How to Handle Text-Based CAPTCHA in Testsigma?
Why does Test Execution Fail with the Error No Route to Host?
Why do Errors Occur When I Try to Download Files from The Exports Page?
How to Test Flutter Apps Using Accessibility Mode?
How to Add Multiple Runtime Variables in Data Generator Functions?
How to Insert Test Data in RAW Body for POST API?
What is Chrome for Testing and How Does it Work?
How Can I Set Up Authenticator-Based Authentication in Testsigma?
How to Update an Excel File in Testsigma Uploads?
What Causes Longer Automation Test Execution Times in a Test Plan?
How Do I Retrieve the OTP When it’s Embedded within HTML Tags?
How to Configure the OracleDB Add-on in Testsigma?
How Can I Set Up Authenticator-Based Authentication in Testsigma?
Testsigma supports multiple authentication mechanisms to ensure secure access and flexibility. One such mechanism is authenticator-based authentication, which leverages Time-based One-Time Passwords (TOTP) generated by authenticators such as Google Authenticator and Authy applications.
This article explains how authenticator-based authentication works and how to configure it in Testsigma.
Supported Authentication Methods
- Username and Password.
- Two-Factor Authentication (2FA). For more information, refer to the documentation on the mailbox and the phone number.
- API Key Authentication - You can fetch the access key from their endpoint, store it in a runtime variable, and use it for login authentication.
- Authenticator-Based Authentication.
Install Google Authenticator Extension
- Open your Chrome browser and go to the Chrome Web Store.
- Search for Google Authenticator.

- Click Add to Chrome on any authenticator to install the extension.

- After installation, the Authenticator icon appears on your browser toolbar.
Upload the QR Code to Testsigma
- In the extension, click the Scan QR Code icon, take a screenshot of the QR code, and upload the screenshot to Testsigma.

- In Testsigma, go to Test Data > Uploads.

- On the Uploads page, click Upload and upload this QR code image.

Install the TOTP Add-on to Generate OTP
- Click on the Addons icon from the left navigation bar.

- On the Addon Marketplace page, under New & Updated Addons, click the search bar and search for Google Authenticator Code Generator and QR Code Data Extractor.

- Click Install on the Google Authenticator code generator card.

- Click Install on the QR Code Data Extractor card.

Extract the Secret Key Using NLP
- From the left navigation bar, go to Create Tests > Test Cases.

- On the Test Case Explorer page, expand a Feature and click the + icon next to a scenario.

- In the dialog box, enter a name for the test case and click Create.

-
On the Test Case Details page, use the NLP: Extract data from QR Code file-path and store the data in a runtime variable variable-name.

- Click the file-path placeholder, and from the Test Data Types dropdown, select Upload.

- On the Uploads overlay, select the screenshot of the QR code.

- Click the variable-name placeholder, enter a new runtime variable name such as qr_runtime, and click Create Step.

- Click the file-path placeholder, and from the Test Data Types dropdown, select Upload.
- Click Run to execute the test.

- The step result displays the decoded secret key from the QR image.

Store the Secret Key in a Test Data and Generate OTP
-
Use the Split text from range of characters from and to and store extracted text in runtime-variable NLP.

- Click the text placeholder, and from the Test Data Types dropdown, select $Runtime.

- On the $Runtime Variable overlay, select the same runtime variable used for this test case.

-
Click the from placeholder and enter the character position where the secret key begins.
NOTE:You can count the character positions in the text beforehand to identify where the secret key starts.
- Click the to placeholder and enter the character position where the secret key ends.

- Click the runtime-variable placeholder, enter a new runtime variable name such as secret_runtime, and click Create Step.

- Click the text placeholder, and from the Test Data Types dropdown, select $Runtime.
-
Use the Store test data 1 in test data 2 NLP.

- Click the test data 1 placeholder, and from the Test Data Types dropdown, select $Runtime.

- On the $Runtime Variable overlay, enter the runtime variable name as secret_runtime and click Add.

- Click the test data 2 placeholder, enter a new test data name such as SecretKey, and click Create Step.

- Click the test data 1 placeholder, and from the Test Data Types dropdown, select $Runtime.
-
Use the Generate TOTP using secretkey and store it into a runtime variable test data NLP.

- Click the secretkey placeholder, and from the Test Data Types dropdown, select $Runtime.

- On the $Runtime Variable overlay, select the runtime variable name SecretKey.

- Click the testdata placeholder, enter a new runtime variable name such as TOTP_Runtime, and click Create Step.

- Click the secretkey placeholder, and from the Test Data Types dropdown, select $Runtime.
- Click Run to execute the test.

- The step result of this execution will display the OTP.
