Due to the limitation of Integration Tests inside IntelliJ IDEA most of the testing needs to be done by hand. In order to provide a consistent testing and results this document is describing the test use cases, its prerequisites and expected results to pass. The tests are grouped based on their features.
These tests are just here to document how we test the Application during development. They are not necessarily meant for production test but rather to ensure code quality.
This test is creating a new Server Connection.
- Preparation
- Make sure that IntelliJ does not have the Plugin installed
- Make sure that you have a Debug Configurations Setup as described in the Readme.md file in section IntelliJ Debug Setup.
- Start IntelliJ IDEA CE with the Plugin (Debug 'AEM Tooling Plugin')
- Open the AEM Plugin window on the right (AEM)
- Click on the Tree Node Triangle on the Top named Server Configurations
- Click on the + button in the toolbar on top of the window to create a new server configuration
- Test: an empty Dialog should show that completely empty
- Enter values for all fields including the tabs at the bottom
- Click the OK Button
- Click on the Top Tree Node Triangle (named Server Configurations) to close it and once more to reopen
- Test: The new entry should show in the tree
- Click on the new Entry
- Test: The Edit Icon (3rd from the Left) should become active
- Click on the Edit Icon
- Test: the same Dialog should show all values except the password.
These tests make sure that a project can be properly setup, loaded and configured.
This Test is loading a Project without an AEM Connection configured and will add an AEM Connection which must trigger the connection test and the installation of the Support Bundle.
- Preparation:
- Extract the src/test/resources/test-project-without-tooling.zip file
- Make sure that an AEM Server (6.0) is available and that it is a plain installation (if not delete the crx-quickstart folder and restart).
- Make sure that AEM is not started
- Make sure that AEM is running as Author on port 4502 and debug port on 30303
- Start IntelliJ CE with the Plugin
- Open the AEM Plugin window on the right (AEM Tooling)
- Test: There should be only the root entry called Servers in the tree
- Click the Add Button (+ sign) on top of the Plugin Window
- Test: There should be a configuration dialog where a connection can be defined or an existing server configuration can be selected (there should one called Default AEM Author)
- Select the Default AEM Author configuration and click the OK button
- Test: There should be an error dialog indicating that an AEM Server is not found
- Start the AEM server and wait until it is up
- Hit the Retry button on the Error Dialog
- Test: An new Dialog asking the user if the Support Bundle should be installed
- Click the OK button
- Test: The Server Name should be appear under the Servers called Default AEM Server with an indication that the plugin is connected to the server
- Test: Open the Bundle page in the OSGi web console (/system/console/bundles) and make sure the Support Bundle is installed and active
This test is loading a Project with an AEM Connection Configured and when connecting it should trigger the connection test and the installation of the Support Bundle.
- Preparation:
- Run the previous test 1.1 and make sure it ran through successfully
- Shut down (if not already done) the AEM Server
- Remove the crx-quickstart folder and restart to bring up a clean AEM Server
- Make sure that AEM is not started
- Make sure that AEM is running as Author on port 4502 and debug port on 30303
- Start IntelliJ CE with the Plugin
- Open the AEM Plugin window on the right (AEM Tooling)
- Test: There must be the Default AEM Author listed under the root Servers node
- Click the Connect Button on top of the Plugin Window
- Test: There should be an error dialog indicating that an AEM Server is not found
- Start the AEM server and wait until it is up
- Hit the Retry button on the Error Dialog
- Test: An new Dialog asking the user if the Support Bundle should be installed
- Click the OK button
- Test: The Server Name should remain under the Servers called Default AEM Server with an indication that the plugin is connected to the server
- Test: Open the Bundle page in the OSGi web console (/system/console/bundles) and make sure the Support Bundle is installed and active