Module: RubyJmeter

Defined in:
lib/ruby-jmeter/dsl.rb,
lib/ruby-jmeter/version.rb,
lib/ruby-jmeter/dsl/counter.rb,
lib/ruby-jmeter/dsl/bsf_timer.rb,
lib/ruby-jmeter/dsl/test_plan.rb,
lib/ruby-jmeter/helpers/helper.rb,
lib/ruby-jmeter/helpers/parser.rb,
lib/ruby-jmeter/dsl/bsf_sampler.rb,
lib/ruby-jmeter/dsl/ftp_request.rb,
lib/ruby-jmeter/dsl/tcp_sampler.rb,
lib/ruby-jmeter/dsl/test_action.rb,
lib/ruby-jmeter/dsl/bsf_listener.rb,
lib/ruby-jmeter/dsl/http_request.rb,
lib/ruby-jmeter/dsl/java_request.rb,
lib/ruby-jmeter/dsl/jdbc_request.rb,
lib/ruby-jmeter/dsl/jsr223_timer.rb,
lib/ruby-jmeter/dsl/ldap_request.rb,
lib/ruby-jmeter/dsl/smtp_sampler.rb,
lib/ruby-jmeter/dsl/thread_group.rb,
lib/ruby-jmeter/dsl/ajp13_sampler.rb,
lib/ruby-jmeter/dsl/bsf_assertion.rb,
lib/ruby-jmeter/dsl/debug_sampler.rb,
lib/ruby-jmeter/dsl/graph_results.rb,
lib/ruby-jmeter/dsl/if_controller.rb,
lib/ruby-jmeter/dsl/jms_publisher.rb,
lib/ruby-jmeter/dsl/junit_request.rb,
lib/ruby-jmeter/dsl/test_fragment.rb,
lib/ruby-jmeter/dsl/xml_assertion.rb,
lib/ruby-jmeter/extend/misc/flood.rb,
lib/ruby-jmeter/extend/misc/rsync.rb,
lib/ruby-jmeter/dsl/constant_timer.rb,
lib/ruby-jmeter/dsl/html_assertion.rb,
lib/ruby-jmeter/dsl/jms_subscriber.rb,
lib/ruby-jmeter/dsl/jsr223_sampler.rb,
lib/ruby-jmeter/dsl/summary_report.rb,
lib/ruby-jmeter/extend/misc/exists.rb,
lib/ruby-jmeter/dsl/aggregate_graph.rb,
lib/ruby-jmeter/dsl/beanshell_timer.rb,
lib/ruby-jmeter/dsl/jsr223_listener.rb,
lib/ruby-jmeter/dsl/loop_controller.rb,
lib/ruby-jmeter/dsl/monitor_results.rb,
lib/ruby-jmeter/dsl/random_variable.rb,
lib/ruby-jmeter/dsl/smime_assertion.rb,
lib/ruby-jmeter/dsl/user_parameters.rb,
lib/ruby-jmeter/dsl/xpath_assertion.rb,
lib/ruby-jmeter/dsl/xpath_extractor.rb,
lib/ruby-jmeter/extend/misc/aliases.rb,
lib/ruby-jmeter/helpers/user-agents.rb,
lib/ruby-jmeter/dsl/aggregate_report.rb,
lib/ruby-jmeter/dsl/bsf_preprocessor.rb,
lib/ruby-jmeter/dsl/html_link_parser.rb,
lib/ruby-jmeter/dsl/jms_pointtopoint.rb,
lib/ruby-jmeter/dsl/jsr223_assertion.rb,
lib/ruby-jmeter/dsl/md5hex_assertion.rb,
lib/ruby-jmeter/dsl/while_controller.rb,
lib/ruby-jmeter/dsl/assertion_results.rb,
lib/ruby-jmeter/dsl/beanshell_sampler.rb,
lib/ruby-jmeter/dsl/bsf_postprocessor.rb,
lib/ruby-jmeter/dsl/compare_assertion.rb,
lib/ruby-jmeter/dsl/jdbc_preprocessor.rb,
lib/ruby-jmeter/dsl/mailer_visualizer.rb,
lib/ruby-jmeter/dsl/module_controller.rb,
lib/ruby-jmeter/dsl/random_controller.rb,
lib/ruby-jmeter/dsl/simple_controller.rb,
lib/ruby-jmeter/dsl/spline_visualizer.rb,
lib/ruby-jmeter/dsl/switch_controller.rb,
lib/ruby-jmeter/dsl/view_results_tree.rb,
lib/ruby-jmeter/plugins/dummy_sampler.rb,
lib/ruby-jmeter/plugins/jmx_collector.rb,
lib/ruby-jmeter/dsl/access_log_sampler.rb,
lib/ruby-jmeter/dsl/beanshell_listener.rb,
lib/ruby-jmeter/dsl/duration_assertion.rb,
lib/ruby-jmeter/dsl/foreach_controller.rb,
lib/ruby-jmeter/dsl/http_cache_manager.rb,
lib/ruby-jmeter/dsl/include_controller.rb,
lib/ruby-jmeter/dsl/jdbc_postprocessor.rb,
lib/ruby-jmeter/dsl/os_process_sampler.rb,
lib/ruby-jmeter/dsl/response_assertion.rb,
lib/ruby-jmeter/dsl/runtime_controller.rb,
lib/ruby-jmeter/dsl/setup_thread_group.rb,
lib/ruby-jmeter/dsl/simple_data_writer.rb,
lib/ruby-jmeter/dsl/soapxmlrpc_request.rb,
lib/ruby-jmeter/dsl/tcp_sampler_config.rb,
lib/ruby-jmeter/plugins/redis_data_set.rb,
lib/ruby-jmeter/dsl/beanshell_assertion.rb,
lib/ruby-jmeter/dsl/cssjquery_extractor.rb,
lib/ruby-jmeter/dsl/csv_data_set_config.rb,
lib/ruby-jmeter/dsl/debug_postprocessor.rb,
lib/ruby-jmeter/dsl/html_parameter_mask.rb,
lib/ruby-jmeter/dsl/http_cookie_manager.rb,
lib/ruby-jmeter/dsl/http_header_manager.rb,
lib/ruby-jmeter/dsl/jsr223_preprocessor.rb,
lib/ruby-jmeter/dsl/mail_reader_sampler.rb,
lib/ruby-jmeter/dsl/response_time_graph.rb,
lib/ruby-jmeter/dsl/synchronizing_timer.rb,
lib/ruby-jmeter/plugins/composite_graph.rb,
lib/ruby-jmeter/dsl/ftp_request_defaults.rb,
lib/ruby-jmeter/dsl/jsr223_postprocessor.rb,
lib/ruby-jmeter/dsl/login_config_element.rb,
lib/ruby-jmeter/dsl/once_only_controller.rb,
lib/ruby-jmeter/dsl/poisson_random_timer.rb,
lib/ruby-jmeter/dsl/recording_controller.rb,
lib/ruby-jmeter/dsl/uniform_random_timer.rb,
lib/ruby-jmeter/dsl/xml_schema_assertion.rb,
lib/ruby-jmeter/extend/misc/with_helpers.rb,
lib/ruby-jmeter/dsl/gaussian_random_timer.rb,
lib/ruby-jmeter/dsl/http_request_defaults.rb,
lib/ruby-jmeter/dsl/java_request_defaults.rb,
lib/ruby-jmeter/dsl/ldap_extended_request.rb,
lib/ruby-jmeter/dsl/ldap_request_defaults.rb,
lib/ruby-jmeter/dsl/regex_user_parameters.rb,
lib/ruby-jmeter/dsl/simple_config_element.rb,
lib/ruby-jmeter/dsl/throughput_controller.rb,
lib/ruby-jmeter/dsl/view_results_in_table.rb,
lib/ruby-jmeter/extend/processors/extract.rb,
lib/ruby-jmeter/plugins/perfmon_collector.rb,
lib/ruby-jmeter/dsl/beanshell_preprocessor.rb,
lib/ruby-jmeter/dsl/keystore_configuration.rb,
lib/ruby-jmeter/dsl/transaction_controller.rb,
lib/ruby-jmeter/dsl/user_defined_variables.rb,
lib/ruby-jmeter/extend/timers/random_timer.rb,
lib/ruby-jmeter/dsl/beanshell_postprocessor.rb,
lib/ruby-jmeter/dsl/distribution_graphalpha.rb,
lib/ruby-jmeter/dsl/json_path_postprocessor.rb,
lib/ruby-jmeter/dsl/random_order_controller.rb,
lib/ruby-jmeter/extend/threads/thread_group.rb,
lib/ruby-jmeter/plugins/json_path_assertion.rb,
lib/ruby-jmeter/plugins/json_path_extractor.rb,
lib/ruby-jmeter/plugins/latencies_over_time.rb,
lib/ruby-jmeter/dsl/generate_summary_results.rb,
lib/ruby-jmeter/dsl/save_responses_to_a_file.rb,
lib/ruby-jmeter/extend/samplers/http_request.rb,
lib/ruby-jmeter/plugins/loadosophia_uploader.rb,
lib/ruby-jmeter/dsl/constant_throughput_timer.rb,
lib/ruby-jmeter/extend/plugins/jmeter_plugins.rb,
lib/ruby-jmeter/plugins/console_status_logger.rb,
lib/ruby-jmeter/plugins/stepping_thread_group.rb,
lib/ruby-jmeter/plugins/ultimate_thread_group.rb,
lib/ruby-jmeter/dsl/http_authorization_manager.rb,
lib/ruby-jmeter/helpers/fallback_content_proxy.rb,
lib/ruby-jmeter/dsl/http_url_rewriting_modifier.rb,
lib/ruby-jmeter/plugins/transactions_per_second.rb,
lib/ruby-jmeter/dsl/regular_expression_extractor.rb,
lib/ruby-jmeter/dsl/result_status_action_handler.rb,
lib/ruby-jmeter/plugins/active_threads_over_time.rb,
lib/ruby-jmeter/plugins/response_times_over_time.rb,
lib/ruby-jmeter/dsl/jdbc_connection_configuration.rb,
lib/ruby-jmeter/extend/threads/setup_thread_group.rb,
lib/ruby-jmeter/plugins/response_codes_per_second.rb,
lib/ruby-jmeter/plugins/variable_throughput_timer.rb,
lib/ruby-jmeter/dsl/ldap_extended_request_defaults.rb,
lib/ruby-jmeter/extend/controllers/loop_controller.rb,
lib/ruby-jmeter/extend/samplers/soapxmlrpc_request.rb,
lib/ruby-jmeter/plugins/response_times_percentiles.rb,
lib/ruby-jmeter/dsl/comparison_assertion_visualizer.rb,
lib/ruby-jmeter/plugins/response_times_distribution.rb,
lib/ruby-jmeter/extend/assertions/response_assertion.rb,
lib/ruby-jmeter/extend/controllers/module_controller.rb,
lib/ruby-jmeter/extend/config_elements/header_manager.rb,
lib/ruby-jmeter/extend/controllers/foreach_controller.rb,
lib/ruby-jmeter/extend/config_elements/user_parameters.rb,
lib/ruby-jmeter/extend/timers/constant_throughput_timer.rb,
lib/ruby-jmeter/extend/controllers/throughput_controller.rb,
lib/ruby-jmeter/extend/config_elements/http_cache_manager.rb,
lib/ruby-jmeter/extend/controllers/transaction_controller.rb,
lib/ruby-jmeter/extend/config_elements/http_cookie_manager.rb,
lib/ruby-jmeter/extend/config_elements/http_request_defaults.rb,
lib/ruby-jmeter/extend/config_elements/user_defined_variables.rb,
lib/ruby-jmeter/extend/processors/regular_expression_extractor.rb

Defined Under Namespace

Modules: Helper, Parser, Plugins Classes: AccessLogSampler, AggregateGraph, AggregateReport, Ajp13Sampler, AssertionResults, BeanshellAssertion, BeanshellListener, BeanshellPostprocessor, BeanshellPreprocessor, BeanshellSampler, BeanshellTimer, BsfAssertion, BsfListener, BsfPostprocessor, BsfPreprocessor, BsfSampler, BsfTimer, CompareAssertion, ComparisonAssertionVisualizer, ConstantThroughputTimer, ConstantTimer, Counter, CssjqueryExtractor, CsvDataSetConfig, DSL, DebugPostprocessor, DebugSampler, DistributionGraphalpha, DurationAssertion, ExtendedDSL, FallbackContextProxy, ForeachController, FtpRequest, FtpRequestDefaults, GaussianRandomTimer, GenerateSummaryResults, GraphResults, HtmlAssertion, HtmlLinkParser, HtmlParameterMask, HttpAuthorizationManager, HttpCacheManager, HttpCookieManager, HttpHeaderManager, HttpRequest, HttpRequestDefaults, HttpUrlRewritingModifier, IfController, IncludeController, JavaRequest, JavaRequestDefaults, JdbcConnectionConfiguration, JdbcPostprocessor, JdbcPreprocessor, JdbcRequest, JmsPointtopoint, JmsPublisher, JmsSubscriber, JsonPathPostprocessor, Jsr223Assertion, Jsr223Listener, Jsr223Postprocessor, Jsr223Preprocessor, Jsr223Sampler, Jsr223Timer, JunitRequest, KeystoreConfiguration, LdapExtendedRequest, LdapExtendedRequestDefaults, LdapRequest, LdapRequestDefaults, LoginConfigElement, LoopController, MailReaderSampler, MailerVisualizer, Md5hexAssertion, ModuleController, MonitorResults, OnceOnlyController, OsProcessSampler, PoissonRandomTimer, RandomController, RandomOrderController, RandomVariable, RecordingController, RegexUserParameters, RegularExpressionExtractor, ResponseAssertion, ResponseTimeGraph, ResultStatusActionHandler, RuntimeController, SaveResponsesToAFile, SetupThreadGroup, SimpleConfigElement, SimpleController, SimpleDataWriter, SmimeAssertion, SmtpSampler, SoapxmlrpcRequest, SplineVisualizer, SummaryReport, SwitchController, SynchronizingTimer, TcpSampler, TcpSamplerConfig, TestAction, TestFragment, TestPlan, ThreadGroup, ThroughputController, TransactionController, UniformRandomTimer, UserAgent, UserDefinedVariables, UserParameters, ViewResultsInTable, ViewResultsTree, WhileController, XmlAssertion, XmlSchemaAssertion, XpathAssertion, XpathExtractor

Constant Summary collapse

VERSION =
'3.0.13'

Class Method Summary collapse

Class Method Details

.dsl_eval(dsl, &block) ⇒ Object


2
3
4
5
6
7
8
9
10
11
12
# File 'lib/ruby-jmeter/helpers/helper.rb', line 2

def dsl_eval(dsl, &block)
  block_context = eval("self", block.binding)
  proxy_context = RubyJmeter::FallbackContextProxy.new(dsl, block_context)
  begin
    block_context.instance_variables.each { |ivar| proxy_context.instance_variable_set(ivar, block_context.instance_variable_get(ivar)) }
    proxy_context.instance_eval(&block)
  ensure
    block_context.instance_variables.each { |ivar| block_context.instance_variable_set(ivar, proxy_context.instance_variable_get(ivar)) }
  end
  dsl
end