Hi Prabath, You can refer the test case[1] for how to implement above test scenario. However you have to implement below steps to cover the full scenario.
1) Add a method to stop and start the message broker without configuring ESB JMS transport. 2) Implement a axis2 service to count the requests. [1] https://github.com/wso2/product-esb/blob/master/modules/integration/tests-integration/tests-transport/src/test/java/org/wso2/carbon/esb/jms/inbound/transport/test/JMSInboundTransactionTestCase.java [2] https://github.com/wso2/product-esb/blob/master/modules/integration/test-common/integration-test-utils/src/main/java/org/wso2/esb/integration/common/utils/servers/ActiveMQServer.java Thanks, Nuwanw On Thu, May 7, 2015 at 10:10 AM, Amalka Subasinghe <[email protected]> wrote: > Hi Prabath, > > You can get the back end call count using tcpmon client > > https://github.com/wso2/carbon-platform-integration/tree/master/test-automation-framework/org.wso2.carbon.automation.test.utils/src/main/java/org/wso2/carbon/automation/test/utils/tcpmon/client > > There are some ESB samples you can find out how to use the tcpmon client > in tests > > Amalka > > On Thu, May 7, 2015 at 9:55 AM, Hemika Kodikara <[email protected]> wrote: > >> Hi Prabath, >> >> You can restart a server as follows. >> >> ServerConfigurationManager serverManager = new >> ServerConfigurationManager(automationContext); >> serverManager.restartGracefully(); >> >> Have to send the appropriate automation context based on the WSO2 product >> mentioned in the automation.xml. >> >> Regards, >> Hemika >> >> Hemika Kodikara >> Software Engineer >> WSO2 Inc. >> lean . enterprise . middleware >> http://wso2.com >> >> Mobile : +94777688882 >> >> On Thu, May 7, 2015 at 9:51 AM, Dharshana Warusavitharana < >> [email protected]> wrote: >> >>> Hi Prabath, >>> >>> You can follow Nuwan's blog post on this. Please find blog on [1]. >>> >>> [1]. >>> http://nuwanwimalasekara.blogspot.com/2013/05/how-to-write-wso2-esb-and-jms.html >>> >>> Thank you, >>> Dharshana. >>> >>> On Thu, May 7, 2015 at 9:47 AM, Amalka Subasinghe <[email protected]> >>> wrote: >>> >>>> Hi, >>>> >>>> There are some JMS related integration tests in ESB project. >>>> Did u follow those? >>>> >>>> >>>> https://github.com/wso2/product-esb/tree/master/modules/integration/tests-integration/tests-sample/src/test/java/org/wso2/carbon/esb/samples/test/messaging >>>> >>>> Thanks >>>> Amalka >>>> >>>> On Thu, May 7, 2015 at 9:13 AM, Prabath Ariyarathna <[email protected] >>>> > wrote: >>>> >>>>> >>>>> Looping to support dev >>>>> >>>>> On Thu, May 7, 2015 at 9:11 AM, Prabath Ariyarathna < >>>>> [email protected]> wrote: >>>>> >>>>>> Looping to support dev >>>>>> >>>>>> >>>>>> On Tue, May 5, 2015 at 3:07 PM, Prabath Ariyarathna < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> Hi Automation team >>>>>>> >>>>>>> I'm going to automate following scenario for the reported issue[1]. >>>>>>> Could you please verify whether this is possible with existing >>>>>>> integration >>>>>>> test suite capabilities. >>>>>>> >>>>>>> 1. Start ESB & MB(ActiveMQ/Wso2 MB) >>>>>>> 2. Send Message >>>>>>> 3. Restart MB >>>>>>> 4. Start Backend service >>>>>>> 5. Get a received messages count by the backend service. >>>>>>> >>>>>>> [1] = *https://wso2.org/jira/browse/ESBJAVA-3670 >>>>>>> <https://wso2.org/jira/browse/ESBJAVA-3670>* >>>>>>> >>>>>>> >>>>>>> Thanks. >>>>>>> -- >>>>>>> >>>>>>> *Prabath Ariyarathna* >>>>>>> >>>>>>> *Associate Technical Lead* >>>>>>> >>>>>>> *WSO2, Inc. * >>>>>>> >>>>>>> *lean . enterprise . middleware * >>>>>>> >>>>>>> >>>>>>> *Email: [email protected] <[email protected]>* >>>>>>> >>>>>>> *Blog: http://prabu-lk.blogspot.com <http://prabu-lk.blogspot.com/>* >>>>>>> >>>>>>> *Flicker : https://www.flickr.com/photos/47759189@N08 >>>>>>> <https://www.flickr.com/photos/47759189@N08>* >>>>>>> >>>>>>> *Mobile: +94 77 699 4730 * >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> >>>>>> *Prabath Ariyarathna* >>>>>> >>>>>> *Associate Technical Lead* >>>>>> >>>>>> *WSO2, Inc. * >>>>>> >>>>>> *lean . enterprise . middleware * >>>>>> >>>>>> >>>>>> *Email: [email protected] <[email protected]>* >>>>>> >>>>>> *Blog: http://prabu-lk.blogspot.com <http://prabu-lk.blogspot.com>* >>>>>> >>>>>> *Flicker : https://www.flickr.com/photos/47759189@N08 >>>>>> <https://www.flickr.com/photos/47759189@N08>* >>>>>> >>>>>> *Mobile: +94 77 699 4730 * >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> *Prabath Ariyarathna* >>>>> >>>>> *Associate Technical Lead* >>>>> >>>>> *WSO2, Inc. * >>>>> >>>>> *lean . enterprise . middleware * >>>>> >>>>> >>>>> *Email: [email protected] <[email protected]>* >>>>> >>>>> *Blog: http://prabu-lk.blogspot.com <http://prabu-lk.blogspot.com>* >>>>> >>>>> *Flicker : https://www.flickr.com/photos/47759189@N08 >>>>> <https://www.flickr.com/photos/47759189@N08>* >>>>> >>>>> *Mobile: +94 77 699 4730 * >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> Amalka Subasinghe >>>> Senior Software Engineer >>>> WSO2 Inc. >>>> Mobile: +94 77 9401267 >>>> >>> >>> >>> >>> -- >>> >>> Dharshana Warusavitharana >>> Senior Software Engineer , Test Automation >>> WSO2 Inc. http://wso2.com >>> email : [email protected] <[email protected]> >>> Tel : +94 11 214 5345 >>> Fax :+94 11 2145300 >>> cell : +94770342233 >>> blog : http://dharshanaw.blogspot.com >>> >>> lean . enterprise . middleware >>> >> >> > > > -- > > Amalka Subasinghe > Senior Software Engineer > WSO2 Inc. > Mobile: +94 77 9401267 > -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
