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=2&rev2=3

Comment:
linking "extending" page + fixing typos

  == 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 instance.
+ Let's assume you are writing a sample to demonstrate to functionality 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 ===
+ === 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)
+ This is the configuration for mediation engine. Place it in 
$SYNAPSE_HOME/repository/conf/sample (file name can be synapse_sample_999.xml)
  
- === 2. Sample descriptor file ===
+ === 2. Sample descriptor ===
  In this file, you have to tell the framework which servers to run, which 
transport  you want, the repository locations, synapse configuration and client 
 configuratio.
  
  Place it in $SYNAPSE_HOME/modules/integration/src/test/resources as''' 
sample999.xml'''
@@ -29, +29 @@

          </axis2Server>
      </backEndServerConfig>
      <clientConfig>
-     <clientRepo>repository/samples/client_repo</clientRepo>
+         <clientRepo>repository/samples/client_repo</clientRepo>
      </clientConfig>
  </synapseSample>
  }}}
@@ -41, +41 @@

  }}}
  Place it in the tests sources of integration module. The package should be 
org.apache.synapse.samples.framework.tests or one of its subpackage.
  
- Pass the sample id to the constructor of parent class
+ Pass the sample id to the parent constructor
  
  e.g.
  
@@ -81, +81 @@

  === 4. Adding to maven sample automation handler ===
  To the method populateSamplesMap()  of the class
  
- {{{
- org.apache.synapse.samples.framework.TestSamplesHandlerSuite
+ ''org.apache.synapse.samples.framework.TestSamplesHandlerSuite''
- }}}
+ 
- Add,
+ Add:
  
  {{{
  sampleClassRepo.put("999", Sample999.class);
@@ -97, +96 @@

  }}}
  to automate only your sample.
  
+ 
+ 
+ === More Functionality ===
+ In addition to this basic functionality, the framework offers several type of 
servers, axis2 services, clients. Also, further configuration such as varoius 
transports, clustering can be made.
+ 
+ See [[FrontPage/Synapse/Samples/AutomationFramework/Extending]]
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to