You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current OpenEMR Selenium Test suit needs changes so it can run headless on the Ubuntu server.
Write a concise description of the problem:
Since the Ubuntu Server is headless, the tests need to run without a GUI. This needs to be specific in the tests in addition to passing a command-line argument while running the Python test file.
Describe the solution you'd like
Make changes to the tests such that they run headless and update the readme.
Write concise description of what feature you want:
The tests should run headless
The readme should reflect the changes accordingly.
The text was updated successfully, but these errors were encountered:
@KeerthikaSunchu report.html seems to be exposing the credentials due to the parameters. The ID for each test is exposing all the parameter values, which includes values from secret.json
So, you'd need a function that sanitizes the values when generating the IDs like this:
def sanitize_test_name(param):
"""Create safe test IDs without exposing sensitive data"""
if isinstance(param, tuple):
server_name, _, _, _ = param # Only use server_name for test ID
return f"server_{server_name}"
return str(param)
and in any specific test, do like this:
class TestWebsite_vitals:
@pytest.fixture(autouse=True)
def browser_setup_and_teardown(self):
# ... fixture remains the same ...
@pytest.mark.parametrize(
"server_name, url, username, password",
read_configurations_from_file("secret.json"),
ids=sanitize_test_name # Add this to create safe test names
)
Describe the problem
The current OpenEMR Selenium Test suit needs changes so it can run headless on the Ubuntu server.
Write a concise description of the problem:
Since the Ubuntu Server is headless, the tests need to run without a GUI. This needs to be specific in the tests in addition to passing a command-line argument while running the Python test file.
Describe the solution you'd like
Make changes to the tests such that they run headless and update the readme.
Write concise description of what feature you want:
The text was updated successfully, but these errors were encountered: