Skip to content

Using IntelliJ IDEA Ultimate

Richard Kocián (rkocian) edited this page Apr 21, 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 #3: Call UITestRunner.runIde method with ULTIMATE version.

For exmaple:

private static RemoteRobot robot;

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