Browser Client Certificate

1 Answer 83 Views
Test Recording
Michelle
Top achievements
Rank 1
Michelle asked on 14 Jul 2023, 11:17 PM

I am evaluating Test Studio, and I couldn't find any documentation on how to handle client certificates. 

All of our applications require a Common Access Card (CAC) to authenticate, not just a username and password.  When I navigate to our application via the browser, I am prompted to select a certificate.  I am using the recording feature, but it does not record the "select a certificate".  I have tried to use all of the dialogs but haven't been successful.  

Is there a way to accomplish this?

 

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 18 Jul 2023, 10:13 AM

Hi Michelle,

I am sorry to hear you experience any troubles and will assist you with resolving these. 

This certificate prompt dialog is not covered by the built-in dialog handlers in Test Studio, because we can't interact with it directly. However, we can offer two ways to automate this.

  1. We have an example of similar scenario in which a Windows security dialog appears on page loading and before it is handled the page is not loaded at all. The approach to handle this is to perform the navigation and typing in the logon dialog with actions in a coded step. 
    You can use the same concept to create a coded step for choosing the certificate - you only need to identify the specific sequence of key presses matching your actions.
    Please, take a look at the shared sample and try to adjust it as per the specifics of the scenario you automate. The coded step will need to replace the existing "Navigate to" step.
  2. One of our customer with similar scenario found that Chrome can be configured to autoselect the respective certificates for the application under test and thus, they avoided this window in general. I am not familiar in details with this possible solution, so I cannot add more to the Chrome documentation. But it seems it can be a possible option for solving the situation and it is worth to explore it. 

Please, take the time to revise these suggestions and let me know if you need further assistance. Thank you in advance for your cooperation.

Regards,
Elena
Progress Telerik

Virtual Classroom is the free self-paced technical training portal that gets you up to speed with Telerik and Kendo UI products including Telerik Test Studio! Check it out at https://learn.telerik.com/.
Tags
Test Recording
Asked by
Michelle
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or