Unit Test Suite Executor error


I’m facing this error while running the wmTestSuiteExecutor. When I select Ant (from External Tool Configuration) to run the run-composite-runner.xml it returns me the following error. If anybody can help solving it would be really appreciated :slight_smile:


Buildfile: C:\Users\silvio.grigolini\workspace107\WmTestSuiteExecutor\run-composite-runner.xml
   [delete] Deleting directory C:\Users\silvio.grigolini\workspace107\WmTestSuiteExecutor\test\reports
    [mkdir] Created dir: C:\Users\silvio.grigolini\workspace107\WmTestSuiteExecutor\test\reports
    [junit] Running com.softwareag.utf.runner.UTFSuiteCompositeRunner$init
    [junit] com.wm.app.b2b.server.UnknownServiceException: wm.bci.redefine:attach
    [junit] 	at com.wm.app.b2b.server.comm.DefaultServerRequestHandler.handleMessage(DefaultServerRequestHandler.java:58)
    [junit] 	at com.wm.app.b2b.server.HTTPMessageHandler.process(HTTPMessageHandler.java:156)
    [junit] 	at com.wm.app.b2b.server.HTTPDispatch.handleRequest(HTTPDispatch.java:218)
    [junit] 	at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:440)
    [junit] 	at com.wm.util.pool.PooledThread.run(PooledThread.java:127)
    [junit] 	at java.lang.Thread.run(Thread.java:748)
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.314 sec
    [junit] Test com.softwareag.utf.runner.UTFSuiteCompositeRunner$init FAILED
[junitreport] Processing C:\Users\silvio.grigolini\workspace107\WmTestSuiteExecutor\test\reports\TESTS-TestSuites.xml to C:\Users\SILVIO~1.GRI\AppData\Local\Temp\null435509215
[junitreport] Loading stylesheet jar:file:/C:/SoftwareAG/Designer/eclipse/plugins/org.apache.ant_1.10.7.v20190926-0324/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] Transform time: 1868ms
[junitreport] Deleting: C:\Users\SILVIO~1.GRI\AppData\Local\Temp\null435509215
Total time: 13 seconds

Hi Silvio,

can you provide more details about the test case, please?

Esp. about the service “wm.bci.redefine:attach”, why this cannot be found?
All services prefixed with “wm” are meant to be IS internal and should be used with caution as they are not documented and can change in signature and behaviour without warning.


1 Like

Does the target Server have WmServiceMock system package installed ? If not, you could install it by selecting Unit Test Framework package under Integration Server packages node.

Or set the property webMethods.test.setup.profile.mode=none in run-test-suites.properties file which should be available in TestSuiteExecutor project. Details would be available in readme file in the project.

Unit Test execution with Code Coverage report requires WmServiceMock package to be available. By setting the above mentioned property to ‘none’, you would be able to still run regular functional tests without this package.

Couple of videos you could check as references:
Create Test Case and Check Code Coverage using webMethods | Software AG
Run a Unit Test Framework Test Suite in Headless Mode & View Reports | webMethods | Software AG

1 Like

Solved! Thank you Sanjib. The target server did not had the WmServiceMock installed. Once installed, no more errors :slight_smile:
Thanks also to Holger for the reply. Have a nice day.


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