Class DslScript.DslScriptVars

    • Field Summary

      Fields 
      Modifier and Type Field Description
      org.apache.jmeter.threads.JMeterContext ctx  
      org.slf4j.Logger log  
      org.apache.jmeter.samplers.SampleResult prev  
      Properties props  
      org.apache.jmeter.samplers.Sampler sampler  
      org.apache.jmeter.threads.JMeterVariables vars  
    • Constructor Summary

      Constructors 
      Constructor Description
      DslScriptVars​(org.apache.jmeter.samplers.SampleResult prev, org.apache.jmeter.threads.JMeterContext ctx, org.apache.jmeter.threads.JMeterVariables vars, Properties props, org.apache.jmeter.samplers.Sampler sampler, org.slf4j.Logger log)  
    • Field Detail

      • prev

        public final org.apache.jmeter.samplers.SampleResult prev
      • ctx

        public final org.apache.jmeter.threads.JMeterContext ctx
      • vars

        public final org.apache.jmeter.threads.JMeterVariables vars
      • sampler

        public final org.apache.jmeter.samplers.Sampler sampler
      • log

        public final org.slf4j.Logger log
    • Constructor Detail

      • DslScriptVars

        public DslScriptVars​(org.apache.jmeter.samplers.SampleResult prev,
                             org.apache.jmeter.threads.JMeterContext ctx,
                             org.apache.jmeter.threads.JMeterVariables vars,
                             Properties props,
                             org.apache.jmeter.samplers.Sampler sampler,
                             org.slf4j.Logger log)
    • Method Detail

      • prevMap

        public Map<String,​Object> prevMap()
        Builds a map from last sample result to ease visualization and debugging.
        Returns:
        map from last sample result.
      • prevMetadata

        public Map<String,​Object> prevMetadata()
        Builds a map from last sample result including most significant metadata to ease visualization and debugging.
        Returns:
        map of last sample result most significant metadata.
      • prevMetrics

        public Map<String,​Object> prevMetrics()
        Builds a map from last sample result collected metrics to ease visualization and debugging.
        Returns:
        map of last sample collected metrics.
      • prevRequest

        public String prevRequest()
        Builds a string from last sample result request to ease visualization and debugging.
        Returns:
        string representing last sample request.
      • prevResponse

        public String prevResponse()
        Builds a string from last sample result response to ease visualization and debugging.
        Returns:
        string representing last sample response.
      • varsMap

        public Map<String,​Object> varsMap()
        Gets a map from current JMeter variables, making them easier to visualize, mainly while debugging.
        Returns:
        map created from JMeter variables.