Class UITestRunner

java.lang.Object
com.redhat.devtools.intellij.commonuitest.UITestRunner

public class UITestRunner extends Object
Basic methods for starting and quiting the IntelliJ Idea IDE for UI tests
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Close the IntelliJ Idea IDE from the 'Welcome to IntelliJ IDEA' dialog
    Return the IdeaVersion representation of the currently running IntelliJ Idea version
    static int
    Return the integer representation of the currently running IntelliJ Idea version
    static com.intellij.remoterobot.RemoteRobot
    Return the reference to the Remote Robot instance
    static com.intellij.remoterobot.RemoteRobot
    Create an instance of the RemoteRobot listening on the given port
    static com.intellij.remoterobot.RemoteRobot
    runIde(IntelliJVersion ideaVersion)
    Start the given version of IntelliJ Idea listening on the default port
    static com.intellij.remoterobot.RemoteRobot
    runIde(IntelliJVersion ideaVersion, int port)
    Start the given version of IntelliJ Idea listening on the given port

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • runIde

      public static com.intellij.remoterobot.RemoteRobot runIde(IntelliJVersion ideaVersion, int port)
      Start the given version of IntelliJ Idea listening on the given port
      Parameters:
      ideaVersion - version of the IntelliJ Idea to start
      port - port number on which will the IntelliJ Idea be listening
      Returns:
      instance of the RemoteRobot
    • runIde

      public static com.intellij.remoterobot.RemoteRobot runIde(IntelliJVersion ideaVersion)
      Start the given version of IntelliJ Idea listening on the default port
      Parameters:
      ideaVersion - version of the IntelliJ Idea to start
      Returns:
      instance of the RemoteRobot
    • closeIde

      public static void closeIde()
      Close the IntelliJ Idea IDE from the 'Welcome to IntelliJ IDEA' dialog
    • getIdeaVersion

      public static IntelliJVersion getIdeaVersion()
      Return the IdeaVersion representation of the currently running IntelliJ Idea version
      Returns:
      version of the currently running IntelliJ Idea
    • getIdeaVersionInt

      public static int getIdeaVersionInt()
      Return the integer representation of the currently running IntelliJ Idea version
      Returns:
      version of the currently running IntelliJ Idea
    • getRemoteRobot

      public static com.intellij.remoterobot.RemoteRobot getRemoteRobot()
      Return the reference to the Remote Robot instance
      Returns:
      reference to the Remote Robot instance
    • getRemoteRobotConnection

      public static com.intellij.remoterobot.RemoteRobot getRemoteRobotConnection(int port)
      Create an instance of the RemoteRobot listening on the given port
      Parameters:
      port - port number
      Returns:
      instance of the RemoteRobot