@Test public void testSample() throws InvalidVariableException { System.out.println("next"); Arguments args = new Arguments(); args.addArgument("var2", "${var1}"); args.addArgument("var3", "${var2}"); instance.setUserDefinedVariables(args); ValueReplacer replacer = new ValueReplacer(); replacer.replaceValues(instance); args.setRunningVersion(true); instance.sample(null); JMeterVariables vars = JMeterContextService.getContext().getVariables(); assertEquals("${var2}", vars.get("var3")); assertEquals("val1", vars.get("var2")); instance.sample(null); assertEquals("val1", vars.get("var3")); }
@Override public SampleResult sample(Entry entry) { processVariables(); return null; }
SetVariablesAction extends AbstractSampler { @Override public SampleResult sample(Entry entry) { processVariables(); return null; } }
SetVariablesAction extends AbstractSampler { @Override public SampleResult sample(Entry entry) { processVariables(); return null; }  }
SetVariablesAction extends AbstractSampler { @Override public SampleResult sample(Entry entry) { processVariables(); return null; }  @Override SampleResult sample(Entry entry); void setUserDefinedVariables(Arguments vars); JMeterProperty getUserDefinedVariablesAsProperty(); }
SetVariablesAction extends AbstractSampler { @Override public SampleResult sample(Entry entry) { processVariables(); return null; }  @Override SampleResult sample(Entry entry); void setUserDefinedVariables(Arguments vars); JMeterProperty getUserDefinedVariablesAsProperty();  }