-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add UI test automation scenario for multiple Liberty projects #1133
Comments
I have three approaches for implementing tests for multiple projects: Approach 1:
NOTE: Same parent directory is open for both child test class run Approach 2: Use a
Approach 3: NOTE: This approach alters the test sequence to enable simultaneous operations. For example:
|
Based on the discussion with the team, part of Approach 1 is sufficient: there should be two projects open in IntelliJ, but the tests need to run only against one of them. |
Tests in
|
I pushed my changes as part of this issue fix and I found that one test I tried writing a code to select the exact build file from the dropdown list, but it didn't succeed because, as seen in the screenshot above, there is nothing to compare between the values in both lists—they are identical. We actually need the full path for both build files (one Gradle and one Maven).that is
If we obtain the full path, we can compare it with the project name,
Both the above tests uses method https://github.com/vaisakhkannan/liberty-tools-intellij/actions/runs/12807359600/job/35707767143 While debugging, I found that the text (green-colored text) is not displaying the full build file path. |
@TrevCraw , I tried various approaches to resize the |
@TrevCraw , @dessina-devasia , I attempted to resize the mac-video.movIt did not work on other operating systems. On Windows, the UI components are very large, and even after resizing the dialog window to a larger size, the build file path remained inaccessible. windows-video.movNOTE: both On Linux, the dialog window could not be resized, preventing the build file path from being displayed. linux-video.movNOTE: I am considering resizing the dialog on macOS and Linux to retrieve the build file path successfully on both systems. For Windows, however, we may need to skip the tests that fail due to this issue (specifically, tests using the |
Once you select an item from the list it appears in the text box and you can see the last segment of the name. Can you get the text of the currently selected item? You could loop through all of the items in the drop-down and select each one until you found the one you want. |
@turkeylurkey , I tried to get the text from the currently selected item. But in that I couldn't see the last segment of the name. When I reviewed the test code we currently have, I noticed that it doesn't exactly match the actual build file path; instead, it evaluates a condition.
|
@TrevCraw , @turkeylurkey As an enhancement, I have a suggestion, though I'm not sure if it's acceptable. Can we add a fix in our code (not the test code) to display the project name first, followed by a colon, and then the build file path of the project? Example: This fix would help retrieve the value more easily from the dropdown list by starting with the project name. |
I'm surprised selectText() does not work since you see it on the screen but I'm glad you thought of the Ctrl-C trick. |
There should be test automation coverage for when there are multiple Liberty projects open in the IntelliJ IDE.
Create a new parent test case that opens up two Liberty projects and then runs through the existing dev action test cases.
The text was updated successfully, but these errors were encountered: