Package com.eviware.soapui.impl.wsdl.teststeps.WsdlGotoTestStep

Examples of com.eviware.soapui.impl.wsdl.teststeps.WsdlGotoTestStep.GotoCondition


    }

    public void actionPerformed( ActionEvent e )
    {
      int ix = conditionList.getSelectedIndex();
      GotoCondition config = gotoStep.getConditionAt( ix );

      String name = UISupport.prompt( "Specify name for condition", "Copy Condition", config.getName() );
      if( name == null || name.trim().length() == 0 )
        return;

      GotoCondition condition = gotoStep.addCondition( name );
      condition.setExpression( config.getExpression() );
      condition.setTargetStep( config.getTargetStep() );
      condition.setType( config.getType() );

      listModel.addElement( name );
      conditionList.setSelectedIndex( listModel.getSize() - 1 );
    }
View Full Code Here


    }

    public void actionPerformed( ActionEvent e )
    {
      int ix = conditionList.getSelectedIndex();
      GotoCondition config = gotoStep.getConditionAt( ix );

      String name = UISupport.prompt( "Specify name for condition", "Rename Condition", config.getName() );
      if( name == null || name.trim().length() == 0 )
        return;

      config.setName( name );
      listModel.setElementAt( name, ix );
    }
View Full Code Here

          UISupport.showErrorMessage( "Missing response in previous message" );
          return;
        }

        WsdlTestRunContext context = new WsdlTestRunContext( gotoStep );
        GotoCondition target = gotoStep.runConditions( previousStep, context );
        if( target == null )
        {
          logList.addLine( "No condition true for current response in [" + previousStep.getName() + "]" );
        }
        else
        {
          logList.addLine( "Condition triggered for go to [" + target.getTargetStep() + "]" );
        }

        inspectorPanel.setCurrentInspector( "Log" );
      }
    }
View Full Code Here

          return;
        }

        try
        {
          GotoCondition condition = gotoStep.getConditionAt( conditionList.getSelectedIndex() );
          WsdlTestRunContext context = new WsdlTestRunContext( gotoStep );
          boolean evaluate = condition.evaluate( previousStep, context );
          if( !evaluate )
          {
            UISupport.showInfoMessage( "Condition not true for current response in [" + previousStep.getName()
                + "]" );
          }
View Full Code Here

            putValue(Action.SHORT_DESCRIPTION, "Renames the selected Condition");
        }

        public void actionPerformed(ActionEvent e) {
            int ix = conditionList.getSelectedIndex();
            GotoCondition config = gotoStep.getConditionAt(ix);

            String name = UISupport.prompt("Specify name for condition", "Rename Condition", config.getName());
            if (name == null || name.trim().length() == 0) {
                return;
            }

            config.setName(name);
            listModel.setElementAt(name, ix);
        }
View Full Code Here

                    UISupport.showErrorMessage("Missing response in previous message");
                    return;
                }

                WsdlTestRunContext context = new WsdlTestRunContext(gotoStep);
                GotoCondition target = gotoStep.runConditions(previousStep, context);
                if (target == null) {
                    logList.addLine("No condition true for current response in [" + previousStep.getName() + "]");
                } else {
                    logList.addLine("Condition triggered for go to [" + target.getTargetStep() + "]");
                }

                inspectorPanel.setCurrentInspector("Log");
            }
        }
View Full Code Here

                            .showErrorMessage("Missing response in previous request step [" + previousStep.getName() + "]");
                    return;
                }

                try {
                    GotoCondition condition = gotoStep.getConditionAt(conditionList.getSelectedIndex());
                    WsdlTestRunContext context = new WsdlTestRunContext(gotoStep);
                    boolean evaluate = condition.evaluate(previousStep, context);
                    if (!evaluate) {
                        UISupport.showInfoMessage("Condition not true for current response in [" + previousStep.getName()
                                + "]");
                    } else {
                        UISupport.showInfoMessage("Condition true for current response in [" + previousStep.getName() + "]");
View Full Code Here

            putValue(Action.SMALL_ICON, UISupport.createImageIcon("/clone_request.gif"));
        }

        public void actionPerformed(ActionEvent e) {
            int ix = conditionList.getSelectedIndex();
            GotoCondition config = gotoStep.getConditionAt(ix);

            String name = UISupport.prompt("Specify name for condition", "Copy Condition", config.getName());
            if (name == null || name.trim().length() == 0) {
                return;
            }

            GotoCondition condition = gotoStep.addCondition(name);
            condition.setExpression(config.getExpression());
            condition.setTargetStep(config.getTargetStep());
            condition.setType(config.getType());

            listModel.addElement(name);
            conditionList.setSelectedIndex(listModel.getSize() - 1);
        }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.teststeps.WsdlGotoTestStep.GotoCondition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.