Class UITestRunner
java.lang.Object
com.redhat.devtools.intellij.commonuitest.UITestRunner
Basic methods for starting and quiting the IntelliJ Idea IDE for UI tests
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcloseIde()Close the IntelliJ Idea IDE from the 'Welcome to IntelliJ IDEA' dialogstatic IntelliJVersionReturn the IdeaVersion representation of the currently running IntelliJ Idea versionstatic intReturn the integer representation of the currently running IntelliJ Idea versionstatic com.intellij.remoterobot.RemoteRobotReturn the reference to the Remote Robot instancestatic com.intellij.remoterobot.RemoteRobotgetRemoteRobotConnection(int port) Create an instance of the RemoteRobot listening on the given portstatic com.intellij.remoterobot.RemoteRobotrunIde(IntelliJVersion ideaVersion) Start the given version of IntelliJ Idea listening on the default portstatic com.intellij.remoterobot.RemoteRobotrunIde(IntelliJVersion ideaVersion, int port) Start the given version of IntelliJ Idea listening on the given port
-
Method Details
-
runIde
Start the given version of IntelliJ Idea listening on the given port- Parameters:
ideaVersion- version of the IntelliJ Idea to startport- port number on which will the IntelliJ Idea be listening- Returns:
- instance of the RemoteRobot
-
runIde
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
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
-