Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Improvement: Localize Test Data by Default #351

Open
7 tasks
wurzelkuchen opened this issue Feb 5, 2025 · 2 comments
Open
7 tasks

Improvement: Localize Test Data by Default #351

wurzelkuchen opened this issue Feb 5, 2025 · 2 comments
Labels
codeImplementationNeeded This issue requires a change in the code of Neodymium docsNeeded The documenttion needs to be checked if there are changes needed and if so, adaptions should be made improvement

Comments

@wurzelkuchen
Copy link
Contributor

wurzelkuchen commented Feb 5, 2025

Quick Description

Currently, when we want to use localization and test data, we always need to call Neodymium.localizedText(key) on any data we want to localize.

It would be cool if localization of our test data just happens out of the box, without user interaction.

User Story

As a test automation engineer,
I want to use test data without always manually taking care of the localization.
so that i can easily add another locale to my tests without changing the code

Functional Requirements

  • On the step we load test data, we need to call our localisation function on any data
  • If there is no localization for a specific value, our logic will just return the original value
  • Since it's a valid case to change the locale inside a test flow (e.g. language switcher test) we need to offer a centralized way to change the locale, so that we can react inside our test data.
  • We need to take care of the generated POJOs to make sure the data inside it uses the data of a locale even if the locale changed.

Documentation Requirements

  • Add a helping text to the localization part of our wiki

Test Requirements

  • Create unit tests
  • Smoke test this on an external test suite
@wurzelkuchen wurzelkuchen added bug codeImplementationNeeded This issue requires a change in the code of Neodymium labels Feb 5, 2025
@RobertAvemarg RobertAvemarg self-assigned this Feb 11, 2025
@wurzelkuchen
Copy link
Contributor Author

As discussed offline I added another change request to this ticket.

@wurzelkuchen wurzelkuchen changed the title Bug: Testdata view is working together with Localisation Improvement: Testdata view is working together with Localisation Feb 13, 2025
@wurzelkuchen
Copy link
Contributor Author

As discussed this ticket is changed into an general improvement.

@wurzelkuchen wurzelkuchen added the docsNeeded The documenttion needs to be checked if there are changes needed and if so, adaptions should be made label Feb 13, 2025
@wurzelkuchen wurzelkuchen changed the title Improvement: Testdata view is working together with Localisation Improvement: Localize Test Data by Default Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codeImplementationNeeded This issue requires a change in the code of Neodymium docsNeeded The documenttion needs to be checked if there are changes needed and if so, adaptions should be made improvement
Projects
None yet
Development

No branches or pull requests

2 participants