Wmtest Suite failed

What product/components do you use and which version/fix level are you on?

10.5

Is your question related to the free trial, or to a production (customer) instance?

Customer dev environment

What are you trying to achieve? Please describe it in detail.

I’m trying to run wm test suite from my Linux VM where i have installed SAG 10.5 software. I have created two files run-composite-runner.xml and run-test-suites.properties and created jars directory to place the jar files.

[root@devops user]# ls -lrt
total 12
-rw-r--r--. 1 root root 5563 Nov  5 02:08 run-composite-runner.xml
drwxr-xr-x. 2 root root  153 Nov  5 02:14 jars
-rw-r--r--. 1 root root  753 Nov  5 02:30 run-test-suites.properties
[root@devops user]# ls -lrt jars/
total 1036
-rw-r--r--. 1 root root 195859 Nov  5 02:14 ant-contrib.jar
-rw-r--r--. 1 root root 126048 Nov  5 02:14 serviceMockClient.jar
-rw-r--r--. 1 root root  24136 Nov  5 02:14 serviceInterceptor.jar
-rw-r--r--. 1 root root 237344 Nov  5 02:14 junit-4.8.2.jar
-rw-r--r--. 1 root root 406424 Nov  5 02:14 httpunit.jar
-rw-r--r--. 1 root root  63798 Nov  5 02:14 xmlunit1.0.jar

Do you get any error messages? Please provide a full error message screenshot and log file.

/home/softwareag/common/lib/ant/bin/ant -f /home/user/devops/run-composite-runner.xml -DwebMethods.integrationServer.name=my-host-name -DwebMethods.integrationServer.port=5555 -DwebMethods.test.setup.location=/home/user/devops/Tests/FibonachiTest -DwebMethods.integrationServer.userid=Administrator -DwebMethods.integrationServer.password=manage -DwebMethods.test.profile.result.location=/home/user/devops/build/test_result

Buildfile: /home/devops/user/run-composite-runner.xml

validate-configuration:

composite-runner-all-tests:
   [delete] Deleting directory /home/devops/user/build/test_result
    [mkdir] Created dir: /home/devops/user/build/test_result
    [junit] Exception in thread "main" Using loader null on class com.softwareag.utf.runner.XMLJUnitResultFormatter: java.lang.ClassNotFoundException: com.softwareag.utf.runner.XMLJUnitResultFormatter
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:290)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:257)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.transferFormatters(JUnitTestRunner.java:1082)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1177)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1030)
    [junit] Caused by: java.lang.ClassNotFoundException: com.softwareag.utf.runner.XMLJUnitResultFormatter
    [junit]     at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
    [junit]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:264)
    [junit]     at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:285)
    [junit]     ... 4 more

BUILD FAILED
/home/devops/user/run-composite-runner.xml:60: Using loader AntClassLoader[user/jars/ant-contrib.jar:/home/devops/user/jars/httpunit.jar:/home/devops/user/jars/junit-4.8.2.jar:/home/devops/user/jars/serviceInterceptor.jar:/home/devops/user/jars/serviceMockClient.jar:/home/devops/user/jars/xmlunit1.0.jar:/home/user/softwareag/common/lib/glassfish/gf.jackson-core-asl.jar:/home/user/softwareag/common/lib/glassfish/gf.jackson-jaxrs.jar:/home/user/softwareag/common/lib/glassfish/gf.jackson-mapper-asl.jar:/home/user/softwareag/common/lib/ext/jackson-annotations.jar:/home/user/softwareag/common/lib/ext/jackson-core.jar:/home/user/softwareag/common/lib/ext/jackson-databind.jar:/home/user/softwareag/common/lib/ext/jackson-dataformat-cbor.jar:/home/user/softwareag/common/lib/ext/jackson-dataformat-yaml.jar:/home/user/softwareag/common/lib/ext/jackson-module-jaxb-annotations.jar:/home/user/softwareag/common/lib/ext/xml-apis.jar:/home/user/softwareag/common/lib/wm-isclient.jar:/home/user/softwareag/common/lib/ext/enttoolkit.jar:/home/user/softwareag/common/lib/ext/icu4j.jar:/home/user/softwareag/IntegrationServer/lib/wm-isserver.jar:/home/user/softwareag/common/lib/wm-g11nutils.jar:/usr/share/java/junit.jar:/usr/share/java/ant/ant-launcher.jar:/usr/share/java/ant/ant.jar:/usr/share/java/ant/ant-junit.jar:/usr/share/java/ant/ant-junit4.jar] on class com.softwareag.utf.runner.XMLJUnitResultFormatter: java.lang.ClassNotFoundException: com.softwareag.utf.runner.XMLJUnitResultFormatter
        at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1393)
        at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1088)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)
        at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:287)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.logVmExit(JUnitTask.java:1847)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.logVmCrash(JUnitTask.java:1811)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeAsForked(JUnitTask.java:1293)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:1022)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:2095)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:828)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
        at org.apache.tools.ant.Main.runBuild(Main.java:851)
        at org.apache.tools.ant.Main.startAnt(Main.java:235)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 0 seconds

Have you installed all the latest fixes for the products and systems you are using?

YES

To ease out the process and avoid manually building these build files. moving around libraries for test execution, Designer provides generating TestSuiteExecutor project which has all the required artifacts in-built. Once project is created, fill required details in run-test-suites.properties, such as installation location, Server URL, credentials etc. and you are good to go. You can also follow the documentation which explains each properties in details.

Additionally, as quick start, please look into this video Run a Unit Test Framework Test Suite in Headless Mode & View Reports | webMethods | Software AG - YouTube . This explains how we can execute tests through Jenkins pipeline using TestSuiteExecutor.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.