Sha256: 6a48cddb4c94597bf07204fc4bcc42bcaf7930ffa86eccbb0c8642438ac57c21

Contents?: true

Size: 1.96 KB

Versions: 16

Compression:

Stored size: 1.96 KB

Contents

# Changes

## v2.11.11

- Support for `test_fragment` for use with the `module_controller`. [See example here](https://github.com/flood-io/ruby-jmeter/blob/master/examples/basic_test_fragment.rb).

## v2.11.5

- HTTP Request Defaults now have more intuitive key names:

```ruby
defaults domain: 'example.com',
      protocol: 'https',
      download_resources: true,
      use_concurrent_pool: 5,
      urls_must_match: 'http.+?example.com'
```

- There's a new `with_gzip` header manager alias:

```ruby
test do
  threads do
    transaction name: "TC_02", parent: true, include_timers: true do
      visit url: "/" do
        with_gzip
      end
    end
  end
end
```

- There's a new `test_data` helper method to simplify getting test data from the flood.io shared data URL. Including ability to stub, set defaults, get all values or explicit values :

```ruby
test do
  threads 1 do

    # populate ${testdata} array with all results from shared data url
    test_data 'http://54.252.206.143:8080/SRANDMEMBER/postcodes?type=text'

    # populate named ${postcodes} array  with all results from shared data url
    test_data url: 'http://54.252.206.143:8080/SRANDMEMBER/postcodes?type=text',
              name: 'postcodes'

    # populate named ${postcode} with random result from shared data url
    test_data url: 'http://54.252.206.143:8080/SRANDMEMBER/postcodes?type=text',
              name: 'postcode_random', match_num: 0


    # populate named ${postcode} with exact match from shared data url
    test_data url: 'http://54.252.206.143:8080/SRANDMEMBER/postcodes?type=text',
              name: 'postcode_exact', regex: '^(\d+)', match_num: 1

    # populate named ${postcode} with exact match from a stubbed data url
    test_data url: 'http://54.252.206.143:8080/SRANDMEMBER/postcodes?type=text',
              name: 'postcode_stub', regex: '^(\d+)', match_num: 1, default: '2010', stub: true

    debug_sampler
    view_results
  end
end.run(path: '/usr/share/jmeter/bin/', gui: true)
```

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ruby-jmeter-2.12.5 CHANGES.md
ruby-jmeter-2.12.4 CHANGES.md
ruby-jmeter-2.12.3 CHANGES.md
ruby-jmeter-2.12.2 CHANGES.md
ruby-jmeter-2.12.1 CHANGES.md
ruby-jmeter-2.12.0 CHANGES.md
ruby-jmeter-2.11.22 CHANGES.md
ruby-jmeter-2.11.21 CHANGES.md
ruby-jmeter-2.11.20 CHANGES.md
ruby-jmeter-2.11.19 CHANGES.md
ruby-jmeter-2.11.18 CHANGES.md
ruby-jmeter-2.11.17 CHANGES.md
ruby-jmeter-2.11.16 CHANGES.md
ruby-jmeter-2.11.15 CHANGES.md
ruby-jmeter-2.11.14 CHANGES.md
ruby-jmeter-2.11.13 CHANGES.md