svn commit r44048 - trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit r44048 - trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb

Evanthika Amarasiri
Author: evanthika
Date: Mon Aug 24 02:53:33 2009
New Revision: 44048
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=44048

Log:
Changed the methods so that it allows passing sequence name when creating the sequences

Modified:
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample101Test.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample12Test.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample150Test.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample2Test.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample300Test.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample350Test.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample351Test.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample353Test.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample354Test.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample380Test.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample3Test.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample4Test.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample50Test.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample6Test.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample7Test.java
   trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample8Test.java

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample101Test.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample101Test.java?rev=44048&r1=44047&r2=44048&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample101Test.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample101Test.java Mon Aug 24 02:53:33 2009
@@ -50,7 +50,7 @@
     /*
     This method will create a new sequence which enables RM at the ESB level and invoke using a client
      */
-    public void createRmSequence() throws Exception{
+    public void createRmSequence(String seqName) throws Exception{
         SeleniumTestBase seleniumTestBase = new SeleniumTestBase(selenium);
 
         boolean login = selenium.isTextPresent("Sign-out");
@@ -67,7 +67,7 @@
         ESBRMSequenceMediatorTest esbrmSequenceMediatorTest = new ESBRMSequenceMediatorTest(selenium);
 
         //Loging in and creating the sequence
-        esbCommon.addSequence("sample_101");
+        esbCommon.addSequence(seqName);
 
         //Adding the In mediator
         esbCommon.addRootLevelChildren("Add Child","Filter","In");
@@ -153,7 +153,7 @@
         }
 
         seleniumTestBase.loginToUI("admin","admin");
-        createRmSequence();
+        createRmSequence("sample_101");
         seleniumTestBase.logOutUI();
         invokeClient();
     }

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample12Test.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample12Test.java?rev=44048&r1=44047&r2=44048&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample12Test.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample12Test.java Mon Aug 24 02:53:33 2009
@@ -36,13 +36,13 @@
 //    </filter>
 //    <send/>
     
-    public void createSequence() throws Exception{
+    public void createSequence(String seqName) throws Exception{
         ESBCommon esbCommon = new ESBCommon(selenium);
         ESBSendMediatorTest esbSendMediatorTest = new ESBSendMediatorTest(selenium);
         ESBFilterMediatorTest esbFilterMediatorTest = new ESBFilterMediatorTest(selenium);
 
         //Loging in and creating the sequence
-        esbCommon.addSequence("sample_12");
+        esbCommon.addSequence(seqName);
 
         //Adding the Filter mediator
         esbCommon.addRootLevelChildren("Add Child", "Filter", "Filter");
@@ -93,7 +93,7 @@
          }
 
         seleniumTestBase.loginToUI("admin","admin");
-        createSequence();
+        createSequence("sample_12");
         //Setting the created sequence to the main sequence
         esbCommon.setSequenceToSequence("main","sample_12");
         seleniumTestBase.logOutUI();

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample150Test.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample150Test.java?rev=44048&r1=44047&r2=44048&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample150Test.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample150Test.java Mon Aug 24 02:53:33 2009
@@ -37,7 +37,7 @@
     /*
    This method will test adding of a Proxy Service with inline WSDL but with anonymous sequences
     */
-    public void createProxyService() throws Exception {
+    public void createProxyService(String proxyName) throws Exception {
         ESBAddProxyServiceTest esbAddProxyServiceTest = new ESBAddProxyServiceTest(selenium);
         ESBAddAddressEndpointTest esbAddAddressEndpointTest = new ESBAddAddressEndpointTest(selenium);
         ESBSendMediatorTest esbSendMediatorTest = new ESBSendMediatorTest(selenium);
@@ -46,7 +46,7 @@
         String carbon_home = properties.getProperty("carbon.home");
 
         //Options which could be used are Specify in-line, Specify source URL, Pick from registry, None
-        esbAddProxyServiceTest.addProxyName("sample_150_proxy");
+        esbAddProxyServiceTest.addProxyName(proxyName);
         esbAddProxyServiceTest.addSourceUrlWsdl("file:"+carbon_home+"/repository/samples/resources/proxy/sample_proxy_1.wsdl");
         esbAddProxyServiceTest.specifyStartOnload("true");
         esbAddProxyServiceTest.transportSettings("http", "https", null, null, null);
@@ -104,7 +104,7 @@
         }
 
         seleniumTestBase.loginToUI("admin","admin");
-        createProxyService();
+        createProxyService("sample_150_proxy");
         seleniumTestBase.logOutUI();
         invokeClient();
     }

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample2Test.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample2Test.java?rev=44048&r1=44047&r2=44048&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample2Test.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample2Test.java Mon Aug 24 02:53:33 2009
@@ -50,7 +50,7 @@
 //    </log>
 //    <send/>
 
-    public void createSequence() throws Exception{
+    public void createSequence(String seqName) throws Exception{
         ESBLogMediatorTest esbLogMediatorTest = new ESBLogMediatorTest(selenium);
         ESBCommon esbCommon = new ESBCommon(selenium);
         ESBSequenceTreePopulatorTest esbSequenceTreePopulatorTest = new ESBSequenceTreePopulatorTest(selenium);
@@ -59,7 +59,7 @@
         ESBPropertyMediatorTest esbPropertyMediatorTest = new ESBPropertyMediatorTest(selenium);
 
         //Loging in and creating the sequence
-        esbCommon.addSequence("sample_2");
+        esbCommon.addSequence(seqName);
 
         //Adding the In mediator
         esbCommon.addRootLevelChildren("Add Child","Filter","In");
@@ -146,7 +146,7 @@
         }
 
         seleniumTestBase.loginToUI("admin","admin");
-        createSequence();
+        createSequence("sample_2");
         //Setting the created sequence to the main sequence
         esbCommon.setSequenceToSequence("main","sample_2");
         seleniumTestBase.logOutUI();

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample300Test.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample300Test.java?rev=44048&r1=44047&r2=44048&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample300Test.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample300Test.java Mon Aug 24 02:53:33 2009
@@ -42,7 +42,7 @@
     */
 
 
-    public void testCreateSequence() throws Exception {
+    public void testCreateSequence(String seqName) throws Exception {
         SeleniumTestBase seleniumTestBase = new SeleniumTestBase(selenium);
 
         boolean login = selenium.isTextPresent("Sign-out");
@@ -63,7 +63,7 @@
         //Creating a sequence and setting up mediators
 
         //Loging in and creating the sequence
-        esbCommon.addSequence("sample_300");
+        esbCommon.addSequence(seqName);
 
         //Adding the In mediator
         esbCommon.addRootLevelChildren("Add Child","Filter","In");

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample350Test.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample350Test.java?rev=44048&r1=44047&r2=44048&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample350Test.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample350Test.java Mon Aug 24 02:53:33 2009
@@ -56,7 +56,7 @@
     /*
     Creating the sequence
      */
-    public void createSequence() throws Exception{
+    public void createSequence(String seqName) throws Exception{
         ESBCommon esbCommon = new ESBCommon(selenium);
         ESBSequenceTreePopulatorTest esbSequenceTreePopulatorTest = new ESBSequenceTreePopulatorTest(selenium);
         ESBSendMediatorTest esbSendMediatorTest = new ESBSendMediatorTest(selenium);
@@ -65,7 +65,7 @@
         //Creating a sequence and setting up mediators
 
         //Loging in and creating the sequence
-        esbCommon.addSequence("sample_350");
+        esbCommon.addSequence(seqName);
 
         //Adding the In mediator
         esbCommon.addRootLevelChildren("Add Child","Filter","In");
@@ -130,7 +130,7 @@
 
     seleniumTestBase.loginToUI("admin","admin");
     addScriptEntry();
-    createSequence();
+    createSequence("sample_350");
     //Setting the created sequence to the main sequence
     esbCommon.setSequenceToSequence("main","sample_350");
     seleniumTestBase.logOutUI();

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample351Test.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample351Test.java?rev=44048&r1=44047&r2=44048&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample351Test.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample351Test.java Mon Aug 24 02:53:33 2009
@@ -74,7 +74,7 @@
     /*
     Creating the sequence
      */
-    public void createSequence() throws Exception{
+    public void createSequence(String seqName) throws Exception{
         ESBCommon esbCommon = new ESBCommon(selenium);
         ESBSequenceTreePopulatorTest esbSequenceTreePopulatorTest = new ESBSequenceTreePopulatorTest(selenium);
         ESBSendMediatorTest esbSendMediatorTest = new ESBSendMediatorTest(selenium);
@@ -99,7 +99,7 @@
         //Creating a sequence and setting up mediators
 
         //Loging in and creating the sequence
-        esbCommon.addSequence("sample_351");
+        esbCommon.addSequence(seqName);
 
         //Adding the In mediator
         esbCommon.addRootLevelChildren("Add Child","Filter","In");
@@ -166,7 +166,7 @@
 
     seleniumTestBase.loginToUI("admin","admin");
     addScriptEntry();
-    createSequence();
+    createSequence("sample_351");
     seleniumTestBase.logOutUI();
     invokeClient();
     }    

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample353Test.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample353Test.java?rev=44048&r1=44047&r2=44048&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample353Test.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample353Test.java Mon Aug 24 02:53:33 2009
@@ -57,7 +57,7 @@
     /*
     Creating the sequence
      */
-    public void createSequence() throws Exception{
+    public void createSequence(String seqName) throws Exception{
         ESBCommon esbCommon = new ESBCommon(selenium);
         ESBSequenceTreePopulatorTest esbSequenceTreePopulatorTest = new ESBSequenceTreePopulatorTest(selenium);
         ESBSendMediatorTest esbSendMediatorTest = new ESBSendMediatorTest(selenium);
@@ -66,7 +66,7 @@
         //Creating a sequence and setting up mediators
 
         //Loging in and creating the sequence
-        esbCommon.addSequence("sample_353");
+        esbCommon.addSequence(seqName);
 
         //Adding the In mediator
         esbCommon.addRootLevelChildren("Add Child","Filter","In");
@@ -133,7 +133,7 @@
 
     seleniumTestBase.loginToUI("admin","admin");
     addScriptEntry();
-    createSequence();
+    createSequence("sample_353");
     seleniumTestBase.logOutUI();
     invokeClient();
     }

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample354Test.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample354Test.java?rev=44048&r1=44047&r2=44048&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample354Test.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample354Test.java Mon Aug 24 02:53:33 2009
@@ -33,7 +33,7 @@
     /*
     Creating the sequence
      */
-    public void createSequence() throws Exception{
+    public void createSequence(String seqName) throws Exception{
         ESBCommon esbCommon = new ESBCommon(selenium);
         ESBSequenceTreePopulatorTest esbSequenceTreePopulatorTest = new ESBSequenceTreePopulatorTest(selenium);
         ESBSendMediatorTest esbSendMediatorTest = new ESBSendMediatorTest(selenium);
@@ -58,7 +58,7 @@
         //Creating a sequence and setting up mediators
 
         //Loging in and creating the sequence
-        esbCommon.addSequence("sample_354");
+        esbCommon.addSequence(seqName);
 
         //Adding the In mediator
         esbCommon.addRootLevelChildren("Add Child","Filter","In");
@@ -123,7 +123,7 @@
      }
 
     seleniumTestBase.loginToUI("admin","admin");
-    createSequence();
+    createSequence("sample_354");
     seleniumTestBase.logOutUI();
     invokeClient();
     }

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample380Test.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample380Test.java?rev=44048&r1=44047&r2=44048&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample380Test.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample380Test.java Mon Aug 24 02:53:33 2009
@@ -59,7 +59,7 @@
     /*
     Creating the main sequence
      */
-    public void createSequence() throws Exception{
+    public void createSequence(String seqName) throws Exception{
         ESBCommon esbCommon = new ESBCommon(selenium);
         ESBSequenceTreePopulatorTest esbSequenceTreePopulatorTest = new ESBSequenceTreePopulatorTest(selenium);
         ESBSendMediatorTest esbSendMediatorTest = new ESBSendMediatorTest(selenium);
@@ -68,7 +68,7 @@
         //Creating a sequence and setting up mediators
 
         //Loging in and creating the sequence
-        esbCommon.addSequence("sample_380");
+        esbCommon.addSequence(seqName);
         esbCommon.setOnErrorSeq("sample_380_fault");
 
         //Adding the In mediator
@@ -133,7 +133,7 @@
 
     seleniumTestBase.loginToUI("admin","admin");
     creatFaultSequence();
-    createSequence();
+    createSequence("sample_380");
     seleniumTestBase.logOutUI();
     invokeClient();
     }

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample3Test.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample3Test.java?rev=44048&r1=44047&r2=44048&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample3Test.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample3Test.java Mon Aug 24 02:53:33 2009
@@ -76,7 +76,7 @@
         }
     }
 
-    public void createSequence() throws Exception{
+    public void createSequence(String seqName) throws Exception{
         ESBLogMediatorTest esbLogMediatorTest = new ESBLogMediatorTest(selenium);
 
         ESBSequenceTreePopulatorTest esbSequenceTreePopulatorTest = new ESBSequenceTreePopulatorTest(selenium);
@@ -101,7 +101,7 @@
         esbCommon.sequenceSave();
 
         //Creating sequence - sample_3
-        esbCommon.addSequence("sample_3");
+        esbCommon.addSequence(seqName);
 
          //Adding the In mediator
         esbCommon.addRootLevelChildren("Add Child", "Filter", "In");
@@ -152,7 +152,7 @@
         seleniumTestBase.loginToUI("admin","admin");
         createLocalEntry();
         createEndpoint();
-        createSequence();
+        createSequence("sample_3");
         //Setting the created sequence to the main sequence
         esbCommon.setSequenceToSequence("main","sample_3");
         seleniumTestBase.logOutUI();

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample4Test.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample4Test.java?rev=44048&r1=44047&r2=44048&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample4Test.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample4Test.java Mon Aug 24 02:53:33 2009
@@ -136,7 +136,7 @@
     /*
     This method will create the  sample_4
      */
-    public void addSample4Sequence() throws Exception{
+    public void addSequence(String seqName) throws Exception{
         ESBCommon esbCommon = new ESBCommon(selenium);
         ESBSequenceTreePopulatorTest esbSequenceTreePopulatorTest = new ESBSequenceTreePopulatorTest(selenium);
         ESBSendMediatorTest esbSendMediatorTest = new ESBSendMediatorTest(selenium);
@@ -144,7 +144,7 @@
         ESBSequenceMediatorTest esbSequenceMediatorTest = new ESBSequenceMediatorTest(selenium);
 
         /*Creating sequence - sample_4*/
-        esbCommon.addSequence("sample_4");
+        esbCommon.addSequence(seqName);
         esbCommon.setOnErrorSeq("sunErrorHandler");
 
         //Adding the In mediator
@@ -273,7 +273,7 @@
         addSampleFault();
         addSunErrorHandler();
         addSunSequence();
-        addSample4Sequence();
+        addSequence("sample_4");
 
         //Setting the created sequence to the main sequence
         esbCommon.setSequenceToSequence("main","sample_4");

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample50Test.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample50Test.java?rev=44048&r1=44047&r2=44048&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample50Test.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample50Test.java Mon Aug 24 02:53:33 2009
@@ -37,13 +37,13 @@
 //    </filter>
 //    <send/>
 
-    public void createSequence() throws Exception{
+    public void createSequence(String seqName) throws Exception{
         ESBCommon esbCommon = new ESBCommon(selenium);
         ESBSendMediatorTest esbSendMediatorTest = new ESBSendMediatorTest(selenium);
         ESBFilterMediatorTest esbFilterMediatorTest = new ESBFilterMediatorTest(selenium);
 
         //Loging in and creating the sequence
-        esbCommon.addSequence("sample_50");
+        esbCommon.addSequence(seqName);
 
         //Adding the Filter mediator
         esbCommon.addRootLevelChildren("Add Child", "Filter", "Filter");
@@ -97,7 +97,7 @@
          }
 
         seleniumTestBase.loginToUI("admin","admin");
-        createSequence();
+        createSequence("sample_50");
         //Setting the created sequence to the main sequence
         esbCommon.setSequenceToSequence("main","sample_50");
         seleniumTestBase.logOutUI();

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample6Test.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample6Test.java?rev=44048&r1=44047&r2=44048&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample6Test.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample6Test.java Mon Aug 24 02:53:33 2009
@@ -31,14 +31,14 @@
 //    </in>
 //    <send/>
 
-    public void createSequence() throws Exception{
+    public void createSequence(String seqName) throws Exception{
         ESBCommon esbCommon = new ESBCommon(selenium);
         ESBSequenceTreePopulatorTest esbSequenceTreePopulatorTest = new ESBSequenceTreePopulatorTest(selenium);
         ESBHeaderMediatorTest esbHeaderMediatorTest = new ESBHeaderMediatorTest(selenium);
         ESBSendMediatorTest esbSendMediatorTest = new ESBSendMediatorTest(selenium);
 
         //Creating sequence
-        esbCommon.addSequence("sample_6");
+        esbCommon.addSequence(seqName);
 
         //Adding the In mediator
         esbCommon.addRootLevelChildren("Add Child","Filter","In");
@@ -82,7 +82,7 @@
          }
 
         seleniumTestBase.loginToUI("admin","admin");
-        createSequence();
+        createSequence("sample_6");
         //Setting the created sequence to the main sequence
         esbCommon.setSequenceToSequence("main","sample_6");
         seleniumTestBase.logOutUI();

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample7Test.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample7Test.java?rev=44048&r1=44047&r2=44048&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample7Test.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample7Test.java Mon Aug 24 02:53:33 2009
@@ -86,7 +86,7 @@
     /*
     This method will create the sample 7 sequence
      */
-    public void createSequence() throws Exception{
+    public void createSequence(String seqName) throws Exception{
         ESBCommon esbCommon = new ESBCommon(selenium);
         ESBSequenceTreePopulatorTest esbSequenceTreePopulatorTest = new ESBSequenceTreePopulatorTest(selenium);
         ESBSendMediatorTest esbSendMediatorTest = new ESBSendMediatorTest(selenium);
@@ -96,7 +96,7 @@
         ESBHeaderMediatorTest esbHeaderMediatorTest = new ESBHeaderMediatorTest(selenium);
 
         /*Creating sequence - sample_7*/
-        esbCommon.addSequence("sample_7");
+        esbCommon.addSequence(seqName);
 
         //Adding the In mediator
         esbCommon.addRootLevelChildren("Add Child","Filter","In");
@@ -153,7 +153,7 @@
 
     seleniumTestBase.loginToUI("admin","admin");
     addInlineLocalEntry();
-    createSequence();
+    createSequence("sample_7");
     //Setting the created sequence to the main sequence
     esbCommon.setSequenceToSequence("main","sample_7");
     seleniumTestBase.logOutUI();

Modified: trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample8Test.java
URL: http://wso2.org/svn/browse/wso2/trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample8Test.java?rev=44048&r1=44047&r2=44048&view=diff
==============================================================================
--- trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample8Test.java (original)
+++ trunk/commons/qa/web-test-framework/esb/src/test/java/org/wso2/carbon/web/test/esb/ESBSample8Test.java Mon Aug 24 02:53:33 2009
@@ -69,7 +69,7 @@
     /*
     Creating the sequence
      */
-    public void createSequence() throws Exception{
+    public void createSequence(String seqName) throws Exception{
         ESBCommon esbCommon = new ESBCommon(selenium);
         ESBSequenceTreePopulatorTest esbSequenceTreePopulatorTest = new ESBSequenceTreePopulatorTest(selenium);
         ESBSendMediatorTest esbSendMediatorTest = new ESBSendMediatorTest(selenium);
@@ -82,7 +82,7 @@
         //Creating a sequence and setting up mediators
 
         //Loging in and creating the sequence
-        esbCommon.addSequence("sample_8");
+        esbCommon.addSequence(seqName);
 
         //Adding the In mediator
         esbCommon.addRootLevelChildren("Add Child","Filter","In");
@@ -144,7 +144,7 @@
     seleniumTestBase.loginToUI("admin","admin");
     addReqXsltLocalEntry();
     addResXsltLocalEntry();
-    createSequence();
+    createSequence("sample_8");
     //Setting the created sequence to the main sequence
     esbCommon.setSequenceToSequence("main","sample_8");
     seleniumTestBase.logOutUI();

_______________________________________________
Commons-dev mailing list
[hidden email]
https://wso2.org/cgi-bin/mailman/listinfo/commons-dev