Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

use Automated Browser Testing tool for Patient Access API authorization step? #558

Open
AnalogJ opened this issue Nov 17, 2024 · 1 comment

Comments

@AnalogJ
Copy link

AnalogJ commented Nov 17, 2024

I'd like to use infero-core as part of an automated testing suite for our integration code.

We have a "Standalone Patient App - Full Access" App that we'd like to test against multiple EHR vendor servers as part of our Github Deployment. I found inferno_ci.yml which seems to do 90% of what we need, however we need to test the patient authorization process, to generate the Access Token.

Is it possible to trigger Playwrite/Selenium/other automated browser testing tool as part of the Inferno tool, so we can authenticate as a a patient (using portal credentials) and then continue the testing suite?

[ONC Certification (g)(10) Standardized API](https://inferno.healthit.gov/suites/g10_certification)
v.7.0.0
US Core 4.0.0 / USCDI v1, SMART App Launch 1.0.0, Bulk Data 1.0.1
@Jammjammjamm
Copy link
Collaborator

It is not possible at this time, and adding it would be a pretty large undertaking.

Rather than using the CLI, the easiest solution here would probably be to stand up a full instance of Inferno, and drive Inferno itself via a browser automation tool. I'm aware of at least one organization doing this.

You could also stand up an instance of Inferno, execute tests using the JSON API, and then start doing browser automation when you see that you've received a wait result to redirect the user to the auth endpoint. But just using a browser automation tool to use Inferno's UI to drive the JSON API is probably a much smaller lift than creating a custom client to drive the JSON API and then still having to set up browser automation for the user auth.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants