Examples of recoverRunningVersion()


Examples of org.apache.jmeter.testelement.TestPlan.recoverRunningVersion()

            assertSame(
                original.getTree(original.getArray()[0]).getArray()[1],
                newTree.getTree(newTree.getArray()[0]).getArray()[1]);
            TestPlan clonedTestPlan = (TestPlan) newTree.getArray()[1];
            clonedTestPlan.setRunningVersion(true);
            clonedTestPlan.recoverRunningVersion();
            assertTrue(
                !plan
                    .getProperty(TestPlan.USER_DEFINED_VARIABLES)
                    .isRunningVersion());
            assertTrue(
View Full Code Here

Examples of org.apache.jmeter.testelement.TestPlan.recoverRunningVersion()

          .getArray()[0]).getName());
      assertSame(original.getTree(original.getArray()[0]).getArray()[1], newTree.getTree(newTree.getArray()[0])
          .getArray()[1]);
      TestPlan clonedTestPlan = (TestPlan) newTree.getArray()[1];
      clonedTestPlan.setRunningVersion(true);
      clonedTestPlan.recoverRunningVersion();
      assertTrue(!plan.getProperty(TestPlan.USER_DEFINED_VARIABLES).isRunningVersion());
      assertTrue(clonedTestPlan.getProperty(TestPlan.USER_DEFINED_VARIABLES).isRunningVersion());
      Arguments vars = (Arguments) plan.getProperty(TestPlan.USER_DEFINED_VARIABLES).getObjectValue();
      PropertyIterator iter = ((CollectionProperty) vars.getProperty(Arguments.ARGUMENTS)).iterator();
      while (iter.hasNext()) {
View Full Code Here

Examples of org.apache.jmeter.testelement.TestPlan.recoverRunningVersion()

          .getArray()[0]).getName());
      assertSame(original.getTree(original.getArray()[0]).getArray()[1], newTree.getTree(newTree.getArray()[0])
          .getArray()[1]);
      TestPlan clonedTestPlan = (TestPlan) newTree.getArray()[1];
      clonedTestPlan.setRunningVersion(true);
      clonedTestPlan.recoverRunningVersion();
      assertTrue(!plan.getUserDefinedVariablesAsProperty().isRunningVersion());
      assertTrue(clonedTestPlan.getUserDefinedVariablesAsProperty().isRunningVersion());
      Arguments vars = (Arguments) plan.getUserDefinedVariablesAsProperty().getObjectValue();
      PropertyIterator iter = ((CollectionProperty) vars.getProperty(Arguments.ARGUMENTS)).iterator();
      while (iter.hasNext()) {
View Full Code Here

Examples of org.apache.jmeter.testelement.TestPlan.recoverRunningVersion()

          .getArray()[0]).getName());
      assertSame(original.getTree(original.getArray()[0]).getArray()[1], newTree.getTree(newTree.getArray()[0])
          .getArray()[1]);
      TestPlan clonedTestPlan = (TestPlan) newTree.getArray()[1];
      clonedTestPlan.setRunningVersion(true);
      clonedTestPlan.recoverRunningVersion();
      assertTrue(!plan.getProperty(TestPlan.USER_DEFINED_VARIABLES).isRunningVersion());
      assertTrue(clonedTestPlan.getProperty(TestPlan.USER_DEFINED_VARIABLES).isRunningVersion());
      Arguments vars = (Arguments) plan.getProperty(TestPlan.USER_DEFINED_VARIABLES).getObjectValue();
      PropertyIterator iter = ((CollectionProperty) vars.getProperty(Arguments.ARGUMENTS)).iterator();
      while (iter.hasNext()) {
View Full Code Here

Examples of org.apache.jmeter.testelement.property.JMeterProperty.recoverRunningVersion()

        StringProperty prop = new StringProperty("date", "${__javaScript((new Date().getDate() / 100).toString()."
                + "substr(${__javaScript(1+1,d\\,ay)}\\,2),heute)}");
        JMeterProperty newProp = transformer.transformValue(prop);
        newProp.setRunningVersion(true);
        assertEquals("org.apache.jmeter.testelement.property.FunctionProperty", newProp.getClass().getName());
        newProp.recoverRunningVersion(null);
        assertTrue(Integer.parseInt(newProp.getStringValue()) > -1);
        assertEquals("2", jmctx.getVariables().getObject("d,ay"));
    }

    public void testParseExample1() throws Exception {
View Full Code Here

Examples of org.apache.jmeter.testelement.property.JMeterProperty.recoverRunningVersion()

            JMeterProperty prop = entry.getValue();
            if (isTemporary(prop)) {
                iter.remove();
                clearTemporary(prop);
            } else {
                prop.recoverRunningVersion(this);
            }
        }
        emptyTemporary();
    }
View Full Code Here

Examples of org.apache.jmeter.testelement.property.JMeterProperty.recoverRunningVersion()

        JMeterProperty newProp = transformer.transformValue(prop);
        newProp.setRunningVersion(true);
        assertEquals(
            "org.apache.jmeter.testelement.property.FunctionProperty",
            newProp.getClass().getName());
        newProp.recoverRunningVersion(null);
        assertTrue(Integer.parseInt(newProp.getStringValue()) > -1);
        assertEquals(
            "2",
            jmctx.getVariables().getObject("d,ay"));
    }
View Full Code Here

Examples of org.apache.jmeter.testelement.property.JMeterProperty.recoverRunningVersion()

                iter.remove();
                clearTemporary(prop);
            }
            else
            {
                prop.recoverRunningVersion(this);
            }
        }
        emptyTemporary();
    }
   
View Full Code Here

Examples of org.apache.jmeter.testelement.property.JMeterProperty.recoverRunningVersion()

                iter.remove();
                clearTemporary(prop);
            }
            else
            {
                prop.recoverRunningVersion(this);
            }
        }
        emptyTemporary();
    }
   
View Full Code Here

Examples of org.apache.jmeter.testelement.property.JMeterProperty.recoverRunningVersion()

        StringProperty prop = new StringProperty("date", "${__javaScript((new Date().getDate() / 100).toString()."
                + "substr(${__javaScript(1+1,d\\,ay)}\\,2),heute)}");
        JMeterProperty newProp = transformer.transformValue(prop);
        newProp.setRunningVersion(true);
        assertEquals("org.apache.jmeter.testelement.property.FunctionProperty", newProp.getClass().getName());
        newProp.recoverRunningVersion(null);
        assertTrue(Integer.parseInt(newProp.getStringValue()) > -1);
        assertEquals("2", jmctx.getVariables().getObject("d,ay"));
    }

    public void testParseExample1() throws Exception {
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.