Examples of recoverRunningVersion()


Examples of org.apache.jmeter.config.ConfigTestElement.recoverRunningVersion()

        loginConfig.setUsername("user1");
        loginConfig.setPassword("pass1");
        assertEquals(new NullProperty(),config.getProperty("login"));
        config.addProperty(new TestElementProperty("login",loginConfig));
        assertEquals(loginConfig.toString(),config.getPropertyAsString("login"));
        config.recoverRunningVersion();
        assertEquals(new NullProperty(),config.getProperty("login"));
    }
   
    public void testArguments() throws Exception
    {
View Full Code Here

Examples of org.apache.jmeter.config.ConfigTestElement.recoverRunningVersion()

    assertTrue(config.getProperty("login") instanceof NullProperty);
    // This test should work whether or not all Nulls are equal
    assertEquals(new NullProperty("login"), config.getProperty("login"));
    config.addProperty(new TestElementProperty("login", loginConfig));
    assertEquals(loginConfig.toString(), config.getPropertyAsString("login"));
    config.recoverRunningVersion();
    assertTrue(config.getProperty("login") instanceof NullProperty);
    assertEquals(new NullProperty("login"), config.getProperty("login"));
  }

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

Examples of org.apache.jmeter.config.ConfigTestElement.recoverRunningVersion()

    sampler.setRunningVersion(true);
    sampler.setRunningVersion(true);
    sampler.addTestElement(config);
    assertEquals("config1=configValue", sampler.getArguments().getArgument(1).toString());
    sampler.recoverRunningVersion();
    config.recoverRunningVersion();
    assertEquals(1, sampler.getArguments().getArgumentCount());
    sampler.addTestElement(config);
    assertEquals("config1=configValue", sampler.getArguments().getArgument(1).toString());
  }
}
View Full Code Here

Examples of org.apache.jmeter.config.ConfigTestElement.recoverRunningVersion()

    assertTrue(config.getProperty("login") instanceof NullProperty);
    // This test should work whether or not all Nulls are equal
    assertEquals(new NullProperty("login"), config.getProperty("login"));
    config.addProperty(new TestElementProperty("login", loginConfig));
    assertEquals(loginConfig.toString(), config.getPropertyAsString("login"));
    config.recoverRunningVersion();
    assertTrue(config.getProperty("login") instanceof NullProperty);
    assertEquals(new NullProperty("login"), config.getProperty("login"));
  }

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

Examples of org.apache.jmeter.protocol.http.control.HeaderManager.recoverRunningVersion()

        debugSampler.addTestElement(headerManager2);
        assertEquals(debugSampler.getProperty("HeaderManager.headers").getStringValue() ,"[1stLevelTestHeader  testValue1, 2ndLevelTestHeader  testValue2]");
        assertEquals(2, ((CollectionProperty)debugSampler.getProperty("HeaderManager.headers")).size());
       
        headerManager.recoverRunningVersion();
        headerManager2.recoverRunningVersion();
        debugSampler.recoverRunningVersion();

        assertEquals(1, headerManager.size());
        assertEquals(1, headerManager2.size());
        assertEquals(0, ((CollectionProperty)debugSampler.getProperty("HeaderManager.headers")).size());
View Full Code Here

Examples of org.apache.jmeter.protocol.http.control.HeaderManager.recoverRunningVersion()

        debugSampler.addTestElement(headerManager2);
        assertEquals(debugSampler.getProperty("HeaderManager.headers").getStringValue() ,"[1stLevelTestHeader\ttestValue1, 2ndLevelTestHeader\ttestValue2]");
        assertEquals(2, ((CollectionProperty)debugSampler.getProperty("HeaderManager.headers")).size());
       
        headerManager.recoverRunningVersion();
        headerManager2.recoverRunningVersion();
        debugSampler.recoverRunningVersion();

        assertEquals(1, headerManager.size());
        assertEquals(1, headerManager2.size());
        assertEquals(0, ((CollectionProperty)debugSampler.getProperty("HeaderManager.headers")).size());
View Full Code Here

Examples of org.apache.jmeter.sampler.DebugSampler.recoverRunningVersion()

        assertEquals(debugSampler.getProperty("HeaderManager.headers").getStringValue() ,"[1stLevelTestHeader  testValue1, 2ndLevelTestHeader  testValue2]");
        assertEquals(2, ((CollectionProperty)debugSampler.getProperty("HeaderManager.headers")).size());
       
        headerManager.recoverRunningVersion();
        headerManager2.recoverRunningVersion();
        debugSampler.recoverRunningVersion();

        assertEquals(1, headerManager.size());
        assertEquals(1, headerManager2.size());
        assertEquals(0, ((CollectionProperty)debugSampler.getProperty("HeaderManager.headers")).size());
        assertEquals(new Header("1stLevelTestHeader", "testValue1"), headerManager.get(0));
View Full Code Here

Examples of org.apache.jmeter.sampler.DebugSampler.recoverRunningVersion()

        assertEquals(debugSampler.getProperty("HeaderManager.headers").getStringValue() ,"[1stLevelTestHeader\ttestValue1, 2ndLevelTestHeader\ttestValue2]");
        assertEquals(2, ((CollectionProperty)debugSampler.getProperty("HeaderManager.headers")).size());
       
        headerManager.recoverRunningVersion();
        headerManager2.recoverRunningVersion();
        debugSampler.recoverRunningVersion();

        assertEquals(1, headerManager.size());
        assertEquals(1, headerManager2.size());
        assertEquals(0, ((CollectionProperty)debugSampler.getProperty("HeaderManager.headers")).size());
        assertEquals(new Header("1stLevelTestHeader", "testValue1"), headerManager.get(0));
View Full Code Here

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.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
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.