<commit_before>Feature: Runtime versions are included in all requests

    Scenario Outline: Uncaught exception contains runtime versions for Android
        When I launch an <platform> app which has an uncaught exception
        And I wait for 1 second
        Then I should receive a request
        And the request is a valid for the error reporting API
        And the payload field "events.0.device.runtimeVersions.osBuild" is not null
        And the payload field "events.0.device.runtimeVersions.reactNative" is not null
        And the payload field "events.0.device.runtimeVersions.<extra_key>" is not null

        Examples:
        | platform | extra_key       |
        | Android  | androidApiLevel |
        | iOS      | osBuild         |

    Scenario Outline: Session contains runtime versions for Android
        When I launch an <platform> app with "StoppedSessionScenario"
        And I wait for 1 second
        Then I should receive 2 requests
        And the request 0 is valid for the session tracking API
        And the payload field "device.runtimeVersions.osBuild" is not null for request 0
        And the payload field "device.runtimeVersions.reactNative" is not null for request 0
        And the payload field "device.runtimeVersions.<extra_key>" is not null for request 0

        Examples:
        | platform | extra_key       |
        | Android  | androidApiLevel |
        | iOS      | osBuild         |

    Scenario Outline: Session contains runtime versions from a native exception
        When I launch an <platform> app with "TriggerNativeError"<commit_msg>Runtime-versions: Fix scenario titles<commit_after>Feature: Runtime versions are included in all requests

    Scenario Outline: Uncaught exception contains runtime versions
        When I launch an <platform> app which has an uncaught exception
        And I wait for 1 second
        Then I should receive a request
        And the request is a valid for the error reporting API
        And the payload field "events.0.device.runtimeVersions.osBuild" is not null
        And the payload field "events.0.device.runtimeVersions.reactNative" is not null
        And the payload field "events.0.device.runtimeVersions.<extra_key>" is not null

        Examples:
        | platform | extra_key       |
        | Android  | androidApiLevel |
        | iOS      | osBuild         |

    Scenario Outline: Session contains runtime versions
        When I launch an <platform> app with "StoppedSessionScenario"
        And I wait for 1 second
        Then I should receive 2 requests
        And the request 0 is valid for the session tracking API
        And the payload field "device.runtimeVersions.osBuild" is not null for request 0
        And the payload field "device.runtimeVersions.reactNative" is not null for request 0
        And the payload field "device.runtimeVersions.<extra_key>" is not null for request 0

        Examples:
        | platform | extra_key       |
        | Android  | androidApiLevel |
        | iOS      | osBuild         |

    Scenario Outline: Session contains runtime versions from a native exception
        When I launch an <platform> app with "TriggerNativeError"
{'fraction_non_alphanumeric': 0.04505632040050062, 'fraction_numerical': 0.006257822277847309, 'mean_word_length': 2.509330406147091, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6417723', 'n_tokens_mistral': 775, 'n_tokens_neox': 750, 'n_words': 356}