Class TestBeanHelper

  • All Implemented Interfaces:

    
    public class TestBeanHelper
    
                        

    This is an experimental class. An attempt to address the complexity of writing new JMeter components.

    TestBean currently extends AbstractTestElement to support backward-compatibility, but the property-value-map may later on be separated from the test beans themselves. To ensure this will be doable with minimum damage, all inherited methods are deprecated.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      TestBeanHelper()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static void prepare(TestElement el) Prepare the bean for work by populating the bean's properties from the property value map.
      static boolean isDescriptorIgnored(PropertyDescriptor descriptor) Checks whether the descriptor should be ignored, i.e.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestBeanHelper

        TestBeanHelper()
    • Method Detail

      • prepare

         static void prepare(TestElement el)

        Prepare the bean for work by populating the bean's properties from the property value map.

        Parameters:
        el - the TestElement to be prepared
      • isDescriptorIgnored

         static boolean isDescriptorIgnored(PropertyDescriptor descriptor)

        Checks whether the descriptor should be ignored, i.e.

        • isHidden
        • isExpert and JMeter not using expert mode
        • no read method
        • no write method
        Parameters:
        descriptor - the PropertyDescriptor to be checked
        Returns:

        true if the descriptor should be ignored