Notifications
Clear all

[Solved] How do I debug a non-server UI test?

1 Posts
1 Users
4 Reactions
2,154 Views
1
Topic starter

I know I can debug a UI test that runs inside the server by debugging the server itself, but how do I debug a UI test that doesn't run inside the server (i.e. a test that extends AbstractUITest)?

1 Answer
3
Topic starter

You can run and debug UI tests through Studio by right clicking the class or method to run in the Outline tab and going to Debug As > JUnit Test:

image

Note: It will fail to run the test if you don't have all the required JARs in your module's .classpath. Here is a list of JARs you may need:

<classpathentry kind="var" path="ONE_SDK_PLUGIN_HOME/selenium-api.jar"/>
<classpathentry kind="var" path="ONE_SDK_PLUGIN_HOME/selenium-java.jar"/>
<classpathentry kind="var" path="ONE_SDK_PLUGIN_HOME/selenium-support.jar"/>
<classpathentry kind="var" path="ONE_SDK_PLUGIN_HOME/selenium-remote-driver.jar"/>
<classpathentry kind="var" path="ONE_SDK_PLUGIN_HOME/selenium-chrome-driver.jar"/>
<classpathentry kind="var" path="ONE_SDK_PLUGIN_HOME/selenium-edge-driver.jar"/>
<classpathentry kind="var" path="ONE_SDK_PLUGIN_HOME/selenium-ie-driver.jar"/>
<classpathentry kind="var" path="ONE_SDK_PLUGIN_HOME/selenium-firefox-driver.jar"/>
<classpathentry kind="var" path="ONE_SDK_PLUGIN_HOME/webdrivermanager.jar"/>
<classpathentry kind="var" path="ONE_SDK_PLUGIN_HOME/slf4j-api.jar"/>
<classpathentry kind="var" path="ONE_SDK_PLUGIN_HOME/commons-lang3.jar"/>
<classpathentry kind="var" path="ONE_SDK_PLUGIN_HOME/commons-io.jar"/>