Hi this is my testng.xml file

<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"; >

<suite name="ESBTestSuite" parallel="false">
    <listeners>
        <listener
class-name="org.wso2.carbon.automation.core.PlatformExecutionManager"/>
        <listener
class-name="org.wso2.carbon.automation.core.PlatformSuiteManager"/>
        <listener
class-name="org.wso2.carbon.automation.core.PlatformAnnotationTransferManager"/>
        <listener
class-name="org.wso2.carbon.automation.core.PlatformTestManager"/>
        <listener
class-name="org.wso2.carbon.automation.core.PlatformReportManager"/>
    </listeners>

    <test name="ejb-Connector-Test" preserve-order="true" verbose="2">
        <classes>
            <class name="org.wso2.carbon.connector.ejb2XIntegrationTest"/>
        </classes>
    </test>

</suite>



On Wed, Oct 14, 2015 at 12:24 PM, Nuwan Wimalasekara <[email protected]>
wrote:

> Hi Rajjaz,
>
> Please check the testng.xml file whether it is in valid format.
>
> Thanks,
> Nuwanw
>
> On Wed, Oct 14, 2015 at 12:21 PM, Rajjaz Mohammed <[email protected]> wrote:
>
>> Hi Dev,
>> I'm writing a simple integration test [1] but while running the test i'm
>> getting the following error[2]. and i attached my pom also. can anyone
>> guide on me on this?
>>
>> [1] https://docs.wso2.com/display/TA430/Writing+a+Test+Case+for+ESB
>>
>> [2]
>> -------------------------------------------------------
>>  T E S T S
>> -------------------------------------------------------
>> Forking command line: /bin/sh -c cd
>> /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target &&
>> /home/rajjaz/Documents/jdk1.7.0_79/jre/bin/java -Xms512m -Xmx1024m
>> -XX:MaxPermSize=128m -jar
>> /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefirebooter7361817641598581788.jar
>> /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefire8778537678578881741tmp
>> /home/rajjaz/esb-connectors/ejb/org.wso2.carbon.connector/target/surefire/surefire_06295743703835172308tmp
>> org.apache.maven.surefire.util.SurefireReflectionException:
>> java.lang.reflect.InvocationTargetException; nested exception is
>> java.lang.reflect.InvocationTargetException: null
>> java.lang.reflect.InvocationTargetException
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>     at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>     at java.lang.reflect.Method.invoke(Method.java:606)
>>     at
>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>>     at
>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>>     at
>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>>     at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
>>     at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>> Caused by: org.apache.maven.surefire.testset.TestSetFailedException:
>> Suite file /src/test/resources/testng.xml is not a valid file
>>     at
>> org.apache.maven.surefire.testng.TestNGXmlTestSuite.locateTestSets(TestNGXmlTestSuite.java:124)
>>     at
>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:89)
>>     ... 9 more
>>
>> Results :
>>
>> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 9.685 s
>> [INFO] Finished at: 2015-10-14T12:17:26+05:30
>> [INFO] Final Memory: 94M/668M
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)
>> on project org.wso2.carbon.connector.ejb2X: Execution default-test of goal
>> org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The
>> forked VM terminated without saying properly goodbye. VM crash or
>> System.exit called ? -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
>> goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test
>> (default-test) on project org.wso2.carbon.connector.ejb2X: Execution
>> default-test of goal
>> org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The
>> forked VM terminated without saying properly goodbye. VM crash or
>> System.exit called ?
>>     at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
>>     at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>     at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>     at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>>     at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>>     at
>> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>>     at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
>>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
>>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
>>     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
>>     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
>>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>     at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>     at java.lang.reflect.Method.invoke(Method.java:606)
>>     at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>>     at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>>     at
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>>     at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
>> default-test of goal
>> org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The
>> forked VM terminated without saying properly goodbye. VM crash or
>> System.exit called ?
>>     at
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
>>     at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>>     ... 20 more
>> Caused by: java.lang.RuntimeException: The forked VM terminated without
>> saying properly goodbye. VM crash or System.exit called ?
>>     at
>> org.apache.maven.plugin.surefire.booterclient.output.ForkClient.close(ForkClient.java:257)
>>     at
>> org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:301)
>>     at
>> org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:116)
>>     at
>> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:740)
>>     at
>> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAllProviders(AbstractSurefireMojo.java:682)
>>     at
>> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:648)
>>     at
>> org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:586)
>>     at
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>>     ... 21 more
>>
>> --
>> Thank you
>> Best Regards
>>
>> *Rajjaz HM*
>> Associate Software Engineer
>> WSO2 Inc. <http://wso2.com/>
>> lean | enterprise | middleware
>> Mobile | +94752833834
>> Email   | [email protected]
>> LinkedIn | Blogger | WSO2 Profile
>> <http://wso2.com/about/team/mohammer_rajjaz/>
>>
>
>
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>


-- 
Thank you
Best Regards

*Rajjaz HM*
Associate Software Engineer
WSO2 Inc. <http://wso2.com/>
lean | enterprise | middleware
Mobile | +94752833834
Email   | [email protected]
LinkedIn | Blogger | WSO2 Profile
<http://wso2.com/about/team/mohammer_rajjaz/>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to