Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate java_awt interactive robot tests #6026

Merged
merged 5 commits into from
Mar 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion jck/jtrunner/JavatestUtil.java
Original file line number Diff line number Diff line change
@@ -51,6 +51,7 @@ public class JavatestUtil {
private static String testExecutionType;
private static String withAgent;
private static String interactive;
private static String robot;
private static String extraJvmOptions = "";
private static String concurrencyString;
private static String timeoutFactorString;
@@ -113,6 +114,7 @@ public class JavatestUtil {
private static final String TEST_EXECUTION_TYPE = "testExecutionType";
private static final String WITH_AGENT = "withAgent";
private static final String INTERACTIVE = "interactive";
private static final String ROBOT = "robot";
private static final String CONFIG = "config";
private static final String CONCURRENCY = "concurrency";
private static final String TIMEOUT_FACTOR = "timeoutFactor";
@@ -138,6 +140,7 @@ public static void main(String args[]) throws Exception {
essentialParameters.add(TEST_EXECUTION_TYPE);
essentialParameters.add(WITH_AGENT);
essentialParameters.add(INTERACTIVE);
essentialParameters.add(ROBOT);
essentialParameters.add(CONFIG);
essentialParameters.add(CONCURRENCY);
essentialParameters.add(TIMEOUT_FACTOR);
@@ -211,6 +214,7 @@ public static void main(String args[]) throws Exception {
testExecutionType = testArgs.get(TEST_EXECUTION_TYPE) == null ? "default" : testArgs.get(TEST_EXECUTION_TYPE);
withAgent = testArgs.get(WITH_AGENT) == null ? "off" : testArgs.get(WITH_AGENT);
interactive = testArgs.get(INTERACTIVE) == null ? "no" : testArgs.get(INTERACTIVE);
robot = testArgs.get(ROBOT) == null ? "no" : testArgs.get(ROBOT);
concurrencyString = testArgs.get("concurrency") == null ? "NULL" : testArgs.get("concurrency");
timeoutFactorString = testArgs.get(TIMEOUT_FACTOR) == null ? "NULL" : testArgs.get(TIMEOUT_FACTOR);
config = testArgs.get(CONFIG) == null ? "NULL" : testArgs.get(CONFIG);
@@ -515,7 +519,11 @@ private static boolean generateJTB() throws Exception {
}

if ( tests.contains("api/java_awt") || tests.contains("api/javax_swing") || tests.equals("api") ) {
keyword += "&!robot";
if ( robot.equals("yes") ) {
keyword += "&robot";
} else {
keyword += "&!robot";
}
}

fileContent += "concurrency " + concurrencyString + ";\n";
32 changes: 32 additions & 0 deletions jck/runtime.api/playlist.xml
Original file line number Diff line number Diff line change
@@ -503,6 +503,38 @@
<group>jck</group>
</groups>
</test>
<test>
<testCaseName>jck-runtime-api-java_awt-robot</testCaseName>
<disables>
<disable>
<comment>backlog/issues/608 : To be run manually</comment>
<impl>ibm</impl>
</disable>
<disable>
<comment>backlog/issues/608 : To be run manually</comment>
<impl>openj9</impl>
</disable>
<disable>
<comment>Disabled on aix and windows as no xvfb capable of robot interaction</comment>
<platform>ppc64_aix|x86-64_windows|x86-32_windows|aarch64_windows</platform>
<impl>hotspot</impl>
</disable>
</disables>
<variations>
<variation>NoOptions</variation>
</variations>
<command>$(GEN_JTB_GENERIC) tests=api/java_awt testsuite=RUNTIME interactive=yes robot=yes; \
$(EXEC_RUNTIME_TEST); \
$(TEST_STATUS); \
$(GEN_SUMMARY_GENERIC) tests=api/java_awt testsuite=RUNTIME interactive=yes robot=yes
</command>
<levels>
<level>extended</level>
</levels>
<groups>
<group>jck</group>
</groups>
</test>
<test>
<testCaseName>jck-runtime-api-java_beans</testCaseName>
<disables>