Examples of GotoCondition


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

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", "Rename Condition", config.getName() );
      if( name == null || name.trim().length() == 0 )
        return;

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

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

          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

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

          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

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

            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

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

                    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

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

                            .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

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

            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
Copyright © 2018 www.massapi.com. 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.