<commit_before>Feature: Generate load from AWS

  Background: Application for measuring performance is up and accessible
    Given 'Hailstorm Site' is up and accessible in AWS region 'us-east-1'
    And I have Hailstorm open
    And I created the project "cucumber_test"

  @smoke
  @end-to-end
  @focus
  Scenario: Start with 10 threads
    When I configure JMeter with following properties
      | property       | value |
      | NumUsers       |    10 |
      | Duration       |   180 |
      | RampUp         |     0 |
    And configure following amazon clusters
      | region    | maxThreadsPerAgent |
      | us-east-1 |                       |
    And finalize the configuration
    And start load generation
    Then 1 test should be running

  @smoke
  @end-to-end
  Scenario: Stop the test with 10 threads
    When I wait for load generation to stop
    Then 1 test should exist

  @end-to-end
  Scenario: Start test for 20 threads
    When I configure JMeter with following properties
      | property       | value |
      | NumUsers       |    20 |
      | Duration       |   180 |
      | RampUp         |     0 |
    And configure following amazon clusters
      | region    | maxThreadsPerAgent |
      | us-east-1 |                    |
    And finalize the configuration
    And start load generation
    Then 1 test should be running

  @end-to-end
  Scenario: Stop the test with 20 threads
    When I wait for load generation to stop
    Then 2 tests should exist

  @end-to-end
  Scenario: Start test for 30 threads
    When I configure JMeter with following properties
      | property       | value |
      | NumUsers       |    30 |
      | Duration       |   180 |
      | RampUp         |     0 |
    And configure following amazon clusters
      | region    | maxThreadsPerAgent |
      | us-east-1 | 25                 |
    And finalize the configuration
    And start load generation
    Then 1 test should be running

  @end-to-end
  Scenario: Stop the test with 30 threads
    When I wait for load generation to stop
    Then 3 tests should exist

  Scenario: Abort a test with 10 threads
    When I configure JMeter with following properties
      | property       | value |
      | NumUsers       |    10 |
      | Duration       |   180 |
      | RampUp         |     0 |
    And configure following amazon clusters
      | region    | maxThreadsPerAgent |
      | us-east-1 | 25                 |
    And finalize the configuration
    And start load generation
    And wait for 10 seconds
    And abort the load generation
    Then 3 tests should exist

  @smoke
  @end-to-end
  Scenario: Terminate tests
    When I terminate the setup
    Then 0 load agents should exist

  @smoke
  @end-to-end
  Scenario: Generate a report
    When I generate a report
    Then a report file should be created<commit_msg>First pass over integration test<commit_after>Feature: Generate load from AWS

  Background: Application for measuring performance is up and accessible
    Given 'Hailstorm Site' is up and accessible in AWS region 'us-east-1'

  @smoke
  @end-to-end
  @focus
  Scenario: Start with 10 threads
    When I have Hailstorm open
    And I created the project "Full Integration 12"
    And I configure JMeter with following properties
      | property       | value |
      | NumUsers       |    10 |
      | Duration       |   180 |
      | RampUp         |     0 |
    And configure following amazon clusters
      | region    | maxThreadsPerAgent |
      | us-east-2 |                    |
    And finalize the configuration
    And start load generation
    Then 1 test should be running

  @smoke
  @end-to-end
  Scenario: Stop the test with 10 threads
    When I wait for load generation to stop
    Then 1 tests should exist

  @end-to-end
  Scenario: Start test for 20 threads
    When I reconfigure the project
    And I configure JMeter with following properties
      | property       | value |
      | NumUsers       |    20 |
      | Duration       |   180 |
      | RampUp         |     0 |
    And configure following amazon clusters
      | region    | maxThreadsPerAgent |
      | us-east-2 |                    |
    And finalize the configuration
    And start load generation
    Then 1 test should be running

  @end-to-end
  Scenario: Stop the test with 20 threads
    When I wait for load generation to stop
    Then 2 tests should exist

  @end-to-end
  Scenario: Start test for 30 threads
    When I reconfigure the project
    And I configure JMeter with following properties
      | property       | value |
      | NumUsers       |    30 |
      | Duration       |   180 |
      | RampUp         |     0 |
    And configure following amazon clusters
      | region    | maxThreadsPerAgent |
      | us-east-2 | 25                 |
    And finalize the configuration
    And start load generation
    Then 1 test should be running

  @end-to-end
  Scenario: Stop the test with 30 threads
    When I wait for load generation to stop
    Then 3 tests should exist

  Scenario: Abort a test with 10 threads
    When I reconfigure the project
    And I configure JMeter with following properties
      | property       | value |
      | NumUsers       |    10 |
      | Duration       |   180 |
      | RampUp         |     0 |
    And configure following amazon clusters
      | region    | maxThreadsPerAgent |
      | us-east-2 | 25                 |
    And finalize the configuration
    And start load generation
    And abort the load generation after 10 seconds
    Then 3 tests should exist

  @smoke
  @end-to-end
  Scenario: Terminate tests
    When I terminate the setup
    Then 0 load agents should exist

  @smoke
  @end-to-end
  Scenario: Generate a report
    When I generate a report
    Then a report file should be created
{'fraction_non_alphanumeric': 0.045125732001377886, 'fraction_numerical': 0.019979331725800895, 'mean_word_length': 1.9136979427997993, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5147361', 'n_tokens_mistral': 1642, 'n_tokens_neox': 1524, 'n_words': 662}