Re: [Dev] JMS scenario automation
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 prabat...@wso2.com wrote: Looping to support dev On Thu, May 7, 2015 at 9:11 AM, Prabath Ariyarathna prabat...@wso2.com wrote: Looping to support dev On Tue, May 5, 2015 at 3:07 PM, Prabath Ariyarathna prabat...@wso2.com 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: prabat...@wso2.com prabat...@wso2.com* *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: prabat...@wso2.com prabat...@wso2.com* *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: prabat...@wso2.com prabat...@wso2.com* *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 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] JMS scenario automation
Looping to support dev On Tue, May 5, 2015 at 3:07 PM, Prabath Ariyarathna prabat...@wso2.com 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: prabat...@wso2.com prabat...@wso2.com* *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: prabat...@wso2.com prabat...@wso2.com* *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 * ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] JMS scenario automation
Looping to support dev On Thu, May 7, 2015 at 9:11 AM, Prabath Ariyarathna prabat...@wso2.com wrote: Looping to support dev On Tue, May 5, 2015 at 3:07 PM, Prabath Ariyarathna prabat...@wso2.com 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: prabat...@wso2.com prabat...@wso2.com* *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: prabat...@wso2.com prabat...@wso2.com* *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: prabat...@wso2.com prabat...@wso2.com* *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 * ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] JMS scenario automation
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 ama...@wso2.com 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 prabat...@wso2.com wrote: Looping to support dev On Thu, May 7, 2015 at 9:11 AM, Prabath Ariyarathna prabat...@wso2.com wrote: Looping to support dev On Tue, May 5, 2015 at 3:07 PM, Prabath Ariyarathna prabat...@wso2.com 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: prabat...@wso2.com prabat...@wso2.com* *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: prabat...@wso2.com prabat...@wso2.com* *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: prabat...@wso2.com prabat...@wso2.com* *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 : dharsha...@wso2.com dharsha...@wso2.com Tel : +94 11 214 5345 Fax :+94 11 2145300 cell : +94770342233 blog : http://dharshanaw.blogspot.com lean . enterprise . middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] JMS scenario automation
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 : +9477762 On Thu, May 7, 2015 at 9:51 AM, Dharshana Warusavitharana dharsha...@wso2.com 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 ama...@wso2.com 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 prabat...@wso2.com wrote: Looping to support dev On Thu, May 7, 2015 at 9:11 AM, Prabath Ariyarathna prabat...@wso2.com wrote: Looping to support dev On Tue, May 5, 2015 at 3:07 PM, Prabath Ariyarathna prabat...@wso2.com 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: prabat...@wso2.com prabat...@wso2.com* *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: prabat...@wso2.com prabat...@wso2.com* *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: prabat...@wso2.com prabat...@wso2.com* *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 : dharsha...@wso2.com dharsha...@wso2.com Tel : +94 11 214 5345 Fax :+94 11 2145300 cell : +94770342233 blog : http://dharshanaw.blogspot.com lean . enterprise . middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] JMS scenario automation
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 ama...@wso2.com 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 hem...@wso2.com 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 : +9477762 On Thu, May 7, 2015 at 9:51 AM, Dharshana Warusavitharana dharsha...@wso2.com 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 ama...@wso2.com 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 prabat...@wso2.com wrote: Looping to support dev On Thu, May 7, 2015 at 9:11 AM, Prabath Ariyarathna prabat...@wso2.com wrote: Looping to support dev On Tue, May 5, 2015 at 3:07 PM, Prabath Ariyarathna prabat...@wso2.com 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: prabat...@wso2.com prabat...@wso2.com* *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: prabat...@wso2.com prabat...@wso2.com* *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: prabat...@wso2.com prabat...@wso2.com* *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 : dharsha...@wso2.com dharsha...@wso2.com 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 Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] JMS scenario automation
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 hem...@wso2.com 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 : +9477762 On Thu, May 7, 2015 at 9:51 AM, Dharshana Warusavitharana dharsha...@wso2.com 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 ama...@wso2.com 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 prabat...@wso2.com wrote: Looping to support dev On Thu, May 7, 2015 at 9:11 AM, Prabath Ariyarathna prabat...@wso2.com wrote: Looping to support dev On Tue, May 5, 2015 at 3:07 PM, Prabath Ariyarathna prabat...@wso2.com 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: prabat...@wso2.com prabat...@wso2.com* *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: prabat...@wso2.com prabat...@wso2.com* *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: prabat...@wso2.com prabat...@wso2.com* *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 : dharsha...@wso2.com dharsha...@wso2.com 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 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] JMS scenario automation
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: prabat...@wso2.com prabat...@wso2.com* *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: prabat...@wso2.com prabat...@wso2.com* *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 * ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev