Protractor: E2E Test Automation - Choose a Certificate

I am writing E2E - a test for our business application. Since this is a corporate environment, I have to choose Client Certificates to access different Webapps (I installed different certificates for different test users).

While I run the tests manually, you should not first select the appropriate certificate. But when you run them in an automatic build, it will not work. I could not select a certificate using Protractor itself.

At the moment, I have a script that first removes all certificates, and then installs a specific one and runs the test using IE. Chrome still pops up a certificate selection box. Therefore, I can run the test in automation only in IE at the moment.

Does anyone have a suggestion on how this can be improved? I tried a lot of things, as suggested by Google, Stackoverflow, etc., but nothing really worked. Or does anyone have experience in automating Protractor tests using different certificates?

Thanks for the help.

+8
source share
2 answers

Not a direct solution, but if it's an automatic build, you can use the --headless argument:

 capabilities: { 'browserName': 'chrome', chromeOptions: { args: [ "--headless", "--disable-gpu", "--window-size=800,600" ] } } 
0
source

@TomTom: Can you provide this typewriting proxy?

0
source

Source: https://habr.com/ru/post/1245177/


All Articles