Dear Wiki user, You have subscribed to a wiki page or wiki category on "Ws Wiki" for change notification.
The "FrontPage/Synapse/Samples/AutomationFramework/AddingNewSample" page has been changed by AmilaManoj: http://wiki.apache.org/ws/FrontPage/Synapse/Samples/AutomationFramework/AddingNewSample?action=diff&rev1=1&rev2=2 Comment: minor edits == Adding New Sample to automation Framework == - Let's say you are writing a sample to demonstrate to fucntionality of the new "Foo" mediator you wrote. For this quick guide, we'll assume your sample id is 999, and that your sample consumes !SimpleStockQuoteService from one axis2 server. + Let's say you are writing a sample to demonstrate to fucntionality of the new "Foo" mediator you wrote. For this quick guide, we'll assume your sample id is 999, and that your sample consumes !SimpleStockQuoteService from one axis2 server instance. === 1. Synpase configuration xml === This is the configuratoin for mediation engine. Place it in $SYNAPSE_HOME/repository/conf/sampe (file name can be synapse_sample_999.xml) @@ -65, +65 @@ client = getStockQuoteClient(); } - public void testDumbClientMode() { + public void testFoo() { String trpUrl = "http://localhost:8280/services/StockQuote"; log.info("Running test: Foo demonstration"); @@ -76, +76 @@ }}} Place your test class and place it in the tests sources of integration module. - SampleClientResult object will store the result from your client execution so you can assert if you got the response, which exceptions you recieved, etc. + !SampleClientResult object will store the result from your client execution so you can assert if you got the response, which exceptions you recieved, etc. === 4. Adding to maven sample automation handler === To the method populateSamplesMap() of the class --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
