|
Client certificates are one of several ways to allow users to authenticate their identity to a server, most often a private organization’s remote server.
Prerequisites
testRigor allows users to install client certificates for such occasions, but there are a few prerequisites to bear in mind.
- The website that is accessed must require the use of client certificate authentication.
- Users must have updated client certificate files (*.pfx with password)
- The browser must be Chrome, and the OS must be Windows
- The URL with client certificate authentication cannot be used as the base url of the test suite. Use about:blank (or any other URL) as the base url and open the url with client certificate authentication as the first step.
Setup: Add the client certificate files to the test case settings
Go to the Settings section in testRigor and click the Advanced tab. Scroll down until you see Install client certificates, and click +Add certificate (you can add multiple). Select the client certificate file(s) (this is only checked when the test case is executed), and enter the password for the client certificate file (which is also only checked only when the test case is executed).
How to use the client certificate in a test case
- Open the url with client certificate authentication as the first step of the test case.
-
- To do this, use the following testRigor command:
open url "https://www.urlwithclientcertificateauthentication.com"
-
- Add steps to the test case to select the installed client certificate (or cancel).
-
- To do this, you can use the following commands:
-
using keyboard (faster):
type arrow down
type arrow up
type enter
type esc
using mouse and OCR (slower):
click with mouse "OK" using OCR only
Combine the commands of your choice to create a reusable rule complete, and it’s as easy as that!