To run individual test case though intellij you need set all system
properties referred though tests module pom file as test runner options in
IDE.

You can refer test automation wiki FAQ on running single test case [1]. Our
recommendation is to use maven for running single test cases. Note that you
don't required to start the server manually.

Thanks,
Krishantha.

https://docs.wso2.com/display/TA430/FAQ#FAQ-HowcanIrunsingletestsoratestpackage
?

On Thu, Feb 5, 2015 at 4:37 PM, Megala Uthayakumar <meg...@wso2.com> wrote:

> Hi,
>
> I tried to run the single test class AutoAcknowledegementsTestCase using
> the intellij. It gave the following error
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *ERROR
> [org.wso2.carbon.automation.engine.configurations.AutomationConfiguration]
> - Error While reading
> configurations[Ljava.lang.StackTraceElement;@24177336java.lang.ExceptionInInitializerError
> at
> org.wso2.carbon.automation.engine.context.AutomationContext.assignParameters(AutomationContext.java:166)
> at
> org.wso2.carbon.automation.engine.context.AutomationContext.<init>(AutomationContext.java:129)
> at
> org.wso2.mb.integration.common.utils.backend.MBIntegrationBaseTest.init(MBIntegrationBaseTest.java:53)
> at
> org.wso2.mb.integration.tests.amqp.functional.AutoAcknowledgementsTestCase.prepare(AutoAcknowledgementsTestCase.java:40)
> 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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
> at
> org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)    at
> org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)    at
> org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175)
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107)
> at org.testng.TestRunner.privateRun(TestRunner.java:767)    at
> org.testng.TestRunner.run(TestRunner.java:617)    at
> org.testng.SuiteRunner.runTest(SuiteRunner.java:334)    at
> org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)    at
> org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)    at
> org.testng.SuiteRunner.run(SuiteRunner.java:240)    at
> org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)    at
> org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)    at
> org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)    at
> org.testng.TestNG.runSuitesLocally(TestNG.java:1149)    at
> org.testng.TestNG.run(TestNG.java:1057)    at
> org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)    at
> org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)    at
> org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)    at
> org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:125)    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
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)Caused
> by: java.lang.IllegalArgumentException: Error While reading
> configurations[Ljava.lang.StackTraceElement;@2eedd06a    at
> org.wso2.carbon.automation.engine.configurations.AutomationConfiguration.<clinit>(AutomationConfiguration.java:26)
> ... 34 more*
>
> But I was able to run this test case when building the product-mb. What
> may be the possible reason for this?
>
>
> Thanks
> --
> Megala Uthayakumar
> *Software Engineering Intern *| *WSO2 Lanka*
> Mobile : +94 779 967 122
> Tel      : +94 112 733 667
> E-mail :  meg...@wso2.com
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to