Is there any way to do Automation Testing of the macOS Login Flow?

We are working on developing an Authorization Plugin and I'm wondering if there is any way to automate the testing of the macOS login flow. In other words, something like Selenium for the login flow.

I'm fairly certain the answer is "no" and that we need to any automated testing using a testing harness that runs our Auth Plugin.

I'm basically doing due diligence on this now, so if anyone (especially from Apple) to weigh in, I'd be very grateful.

Thanks, Francis

I'm fairly certain the answer is "no"

Agreed.

and that we need to any automated testing using a testing harness that runs our Auth Plugin.

That’s what I’d do.


You can trigger your auth plug-in by creating a test right and then trying to acquire that right from your test code. There are, however, two drawbacks:

  • If you’re building a login auth plug-in, one with an SFAuthorizationPluginView subclass, the behaviour is quite different in the generic context versus the login context.

  • GUI authorisation plug-ins are run by a different user, currently _securityagent, which has its own GUI login session, and AFAIK the XC UI testing infrastructure can’t see that.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Is there any way to do Automation Testing of the macOS Login Flow?
 
 
Q