Class UITestRunner
- java.lang.Object
-
- com.redhat.devtools.intellij.commonuitest.UITestRunner
-
public class UITestRunner extends java.lang.ObjectBasic methods for starting and quiting the IntelliJ Idea IDE for UI tests
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcloseIde()Close the IntelliJ Idea IDE from the 'Welcome to IntelliJ IDEA' dialogstatic IntelliJVersiongetIdeaVersion()Return the IdeaVersion representation of the currently running IntelliJ Idea versionstatic intgetIdeaVersionInt()Return the integer representation of the currently running IntelliJ Idea versionstatic com.intellij.remoterobot.RemoteRobotgetRemoteRobot()Return 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 Detail
-
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 startport- 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
-
-