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
Welcome to the IntelliJ IDEA UI testlibrary project! Here you'll find several pieces of information and advices on how to setup, use and contribute to this library.
2
2
3
-
### Add this library to an existing IntelliJ Plugin project
3
+
## Purpose of this project
4
+
This project allows you to create automated UI tests for your IntelliJ IDEA plugin project. Using this library you are able to access UI elements such as buttons, inputs, tree elements etc. and perform actions with them. Navigating through wizards, clicking on buttons or editing file content of newly created project could be automated using this library.
4
5
5
-
1) Extend the build.gradle file of the IntelliJ Plugin repo
6
+
## Any Suggestions or Questions?
7
+
Please submit an [issue](https://github.com/redhat-developer/intellij-common-ui-test-library/issues) to this project.
6
8
9
+
## Contributing
10
+
Feel free to contribute to this project! See the [contribution guide](https://github.com/redhat-developer/intellij-common-ui-test-library/blob/main/CONTRIBUTING.md) for more details.
11
+
12
+
## Quick setup
13
+
The setup of this library is easy - just extend the **build.gradle** file as described in the following steps and you are ready to write your first UI test.
14
+
15
+
### STEP #1: Adding repositories
16
+
You need to add the following nexus and JetBrains repositories:
The following source set is needed to define where in your project will be your UI tests and resources located. The following example displays the 'src/it/java' location for java code of UI tests and the 'src/it/resources' location for resources:
2) Run and close the IntelliJ Idea before and after all the UI tests
69
+
## Start and quit IntelliJ IDEA
70
+
Use the following code to start IntelliJ before running the first UI test. The runIde() method not only starts the IDE for UI tests, it also returns reference to the Remote-Robot instance which will be useful later to access UI elements such as buttons, inputs etc.
After executing all the UI tests close the IDE by running the following command:
81
+
```
51
82
@AfterAll
52
83
public static void closeIde() {
53
84
UITestRunner.closeIde();
54
85
}
55
86
```
87
+
88
+
## What next? Implement your first UI test!
89
+
After you manage to setup this library to your project and successfully start and quit IntelliJ IDEA, there is no more setup needed. Just start writing your UI tests! Here are some examples that will help you get started:
90
+
91
+
### Create your first fixture
92
+
Create an instance of a FlatWelcomeFrame class which allows you to access the 'Welcome to IntelliJ IDEA' dialog's UI.
### Use any tool provided by Remote-Robot framework
110
+
Besides the fixtures and utilities provided by this library you can use any tool from the [Remote-Robot](https://github.com/JetBrains/intellij-ui-test-robot) framework itself.
0 commit comments