예제 #1
0
 /*
 This method will test setting up of the Out Sequence of the Proxy Service wizard
  */
 public void testSetOutSequence() throws Exception {
   ESBCommon esbCommon = new ESBCommon(selenium);
   ESBSendMediatorTest esbSendMediatorTest = new ESBSendMediatorTest(selenium);
   ESBAddProxyServiceTest esbAddProxyServiceTest = new ESBAddProxyServiceTest(selenium);
   // Available options are outSeqOpAnon, outSeqOpReg, outSeqOpImp, inSeqOpNone
   esbAddProxyServiceTest.selectOutSequence("outSeqOpAnon", null);
   esbCommon.addRootLevelChildren("Add Child", "Core", "Send");
   esbSendMediatorTest.addNormalSendMediator("0");
   esbCommon.mediatorUpdate();
   esbCommon.sequenceSave();
   System.out.println("The Out sequence was created successfully");
 }
예제 #2
0
 /*
 This method will test setting up of the In Sequence of the Proxy Service wizard
  */
 public void testSetInSequence() throws Exception {
   ESBCommon esbCommon = new ESBCommon(selenium);
   ESBAddAddressEndpointTest esbAddAddressEndpointTest = new ESBAddAddressEndpointTest(selenium);
   ESBPropertyMediatorTest esbPropertyMediatorTest = new ESBPropertyMediatorTest(selenium);
   ESBAddProxyServiceTest esbAddProxyServiceTest = new ESBAddProxyServiceTest(selenium);
   // Available options are inSeqOpAnon, inSeqOpReg, inSeqOpImp, inSeqOpNone
   esbAddProxyServiceTest.selectInSequence("inSeqOpAnon", null);
   esbCommon.addRootLevelChildren("Add Child", "Core", "Property");
   esbPropertyMediatorTest.addBasicPropInfo("0", "OUT_ONLY", "set");
   esbPropertyMediatorTest.addPropertyMediator("value", "true", "Synapse");
   esbCommon.mediatorUpdate();
   esbCommon.sequenceSave();
   System.out.println("The In sequence was created successfully");
 }
  /*
   * This method will verify the properties of the Command mediator
   */
  public void addCommandMediator(
      String level,
      String className,
      String param1,
      String param2,
      String param3,
      String param4,
      String param5)
      throws Exception {
    selenium.click("//a[@id='mediator-" + level + "']");
    Thread.sleep(2000);
    selenium.type("mediatorInputId", className);
    selenium.click("actionID");

    ESBCommon esbCommon = new ESBCommon(selenium);
    esbCommon.mediatorUpdate();
  }