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

Refactor the automated UI tests for easier maintenance #1083

Merged
merged 7 commits into from
Nov 13, 2024

Conversation

turkeylurkey
Copy link
Member

The new copyright headers specify year 2023 which is the correct year.

Fixes #1082

@turkeylurkey turkeylurkey self-assigned this Nov 6, 2024
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
@mrglavas
Copy link
Contributor

mrglavas commented Nov 7, 2024

@turkeylurkey I noticed this PR has moved away from an object oriented solution to state managed by static fields. When you were describing the refactoring I had imagined the state would be managed by an instance of the test class (e.g. set in the constructor) or some other object. Imagine a JUnit test runner that runs test cases in parallel. How would that work now? I don't think it would. Maybe that's not the best example for tests which drive a single UI but wondering if you considered keeping this OO before you went down this path.

Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
@turkeylurkey
Copy link
Member Author

@mrglavas Good points. I made the tests more OO.

Copy link
Contributor

@mrglavas mrglavas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now. Thanks!

Copy link
Contributor

@anusreelakshmi934 anusreelakshmi934 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good to me

@turkeylurkey turkeylurkey merged commit fb1762e into OpenLiberty:main Nov 13, 2024
2 of 3 checks passed
@turkeylurkey turkeylurkey deleted the refactor-IT branch November 13, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Refactor automated UI test classes to make them easier to maintain
3 participants