IntelliJ Family plugins

IntelliJ IDEA plug-in

Overview

Intellij plug-in is developed to help you working on the test cases. It allows you to do the following:

  1. Upload the test results of your tests from IntelliJ to Allure TestOps
    1. You can check how the results look like in Allure TestOps
    2. You will be able to create test documentation in Allure TestOps
  2. You will be able easily automate the manual test cases by importing the scenario of manual test case to IDE.
  3. You will be able to assign Allure ID to the test cases, so changes of the names will update the test documentation.

Installation

  • Go to plug-ins section of IntelliJ IDEA settings.

    • go File > Settings > Plugins
  • In search field start typing Allure TestOps Support

  • Then in the results field find the plug-in and hit Install

    Install Allure TestOps plug-in

  • Restart IDE.

Plug-in connection settings

If there is no error message, then authentication is completed and you can start using the integration.

IDEA Allure Settings

Upload test results to Allure TestOps from IntelliJ IDEA

  1. Run tests on your development environment, i.e. on your local machine.
  2. Select folder with allure results in the project tree and then right click the folder.
  3. In the context menu select Upload Results to Allure IDEA export results
  4. Select a Project to sent the test results and name your launch IDEA export settings
  5. The results will be available in the Allure TestOps in section Launches of the project selected in step 4. IDEA allure launch

Allure TestOps uses certain rules to link your automated test to Allure TestOps test case.

Linking rules depend on a test framework, but generally it works similar to the next example for jUnit5: Allure ID will be linked to <package>.<class name>.<method name>.

If you will modify any part of this mapping Allure TestOps will consider such test as a new test case and will create one for you. So, you will have duplicated tests. To avoid it you need to mark your test with allure ID annotation.
  1. Upload first time your tests into Allure TestOps as described above.

IDEA upload results

  1. Close the Launch to process the results, new test cases will be created

IDEA upload test cases

  1. Right click the package to be processed and select Assign Allure ID

IDEA assign the ID

  1. In the modal window select the project in Allure TestOps to which you’ve sent the test results
  2. Tests will be annotated with @AllureId.

IDEA allure ID

Now, if you modify either package name or the class name or the test name it will be correctly mapped to Allure TestOps test case.

Manual test cases automation

  1. In the Test cases section create a manual test case and add scenario to it.

IDEA create manual test case

  1. In IDE create new class or use an existing one and add a new method (test) marked with @Test annotation

IDEA create test pattern

  1. Right click the method and select Allure Automate
  2. In the modal dialogue provide Allure ID from Allure TestOps to Test Case ID and select the items to import from Allure TestOps manual test case.

IDEA allure automate

  1. Your test in IntelliJ IDEA will be updated with the information you selected and will have @AllureId assigned

IDEA test automate result

  1. Update the scenario of your test

IDEA implement test logic

  1. Execute your updated test and upload the results
  2. Close the Launch on Allure TestOps side to process the results
  3. You Allure TestOps manual test case will become an automated one

IDEA upload automated test

  1. Now, to complete the automation process you need to compare manual and automated scenarios by clicking compare button near Scenario item

IDEA compare scenarios

  1. If you’re satisfied with the results, remove the manual scenario, and the scenario from test results will be used

IDEA use auto scenario

  1. Now, your test is fully automated