Skip to content

Using IntelliJ IDEA Ultimate

Richard Kocián (rkocian) edited this page Apr 23, 2024 · 8 revisions

First follow Quick setup, then follow these steps:

STEP #1: Get offline license activation key

For this step you need to have your IntelliJ IDEA Ultimate activated. License itself is stored in the .key file under the IDE configuration directory. You will need this file in order to activate IntelliJ IDEA Ultimate when running UI tests. Save this file in your project directory, for example /idea_license_token/<product><version>.key

STEP #2: Add new task to the build.gradle

task copyKey(type: Copy) {
    from "idea_license_token/idea.key"
    into "build/idea-sandbox/config-uiTest"
}

STEP #3: Edit integrationTest task in build.gradle

Add copyKey as dependency task for integrationTest task.

task integrationTest(type: Test) {
    dependsOn copyKey
    ...
}

STEP #4: Call UITestRunner.runIde method with ULTIMATE version.

For example to use IntelliJ IDEA Ultimate 2023.2:

private static RemoteRobot robot;

@BeforeAll
public static void runIdeForUiTests() {
    robot = UITestRunner.runIde(IntelliJVersion.ULTIMATE_V_2023_2, 8580);
}

Using IntelliJ IDEA Ultimate in GitHub Actions

If you want to use IntelliJ IDEA Ultimate in GitHub Actions, don´t forget to encrypt the key file and in the job workflow do the decryption.