<commit_before>@RALLY_US2663
Feature: Sandbox usage analytics

Background:
  Given I have an open web browser

Scenario Outline: As a SLC Operator I can determine how many tenants are using the sandbox enviornment
    Given I go to the "Tenant Usage Admin Tool"
        Then I was redirected to the "Simple" IDP Login page

    When I submit the credentials "slcoperator" "slcoperator1234" for the "Simple" login page
        Then I am displayed a list of "3" tenants
        And there is a row with tenantId <Tenant_id>
        And I am displayed a column for mongo usage and number of records
        And I am displayed the total number of tenants as "3" at the bottom of the page

    Examples:
    | Tenant_id |
    |    "T1"   |
    |    "T2"   |
    |    "T3"   |

Scenario Outline: As a SLC Operator I can determine mongo entity count and data size (in Kb) for each sandbox tenant
    Given I go to the "Tenant Usage Admin Tool"
        Then I was redirected to the "Simple" IDP Login page

    When I submit the credentials "slcoperator" "slcoperator1234" for the "Simple" login page
        Then I am displayed a list of "3" tenants
        And there is a row with tenantId <Tenant_id>
        And the row for <Tenant_id> displays entity count <Count>
        And the row for <Tenant_id> displays size greater than <Size>

    Examples:
    | Tenant_id | Count |  Size |
    |    "T1"   |  "14" |  "20" |
    |    "T2"   |  "49" | "100" |
    |    "T3"   | "532" | "500" |

Scenario: As a SLC Operator I can determine the total mongo entity count and data size (in Kb) for all sandbox tenants
    Given I go to the "Tenant Usage Admin Tool"
        Then I was redirected to the "Simple" IDP Login page

    When I submit the credentials "slcoperator" "slcoperator1234" for the "Simple" login page
        Then I am displayed a list of "3" tenants
          And the row for <Tenant_id> displays size greater than <Size>
        And I am displayed the total data size is greater than "600"
        And I am displayed the total entity count as "595"

Scenario Outline: As a SLC Operator I can determine mongo entity count and data size (in Kb) for each collection for a single tenant
    Given I go to the "Tenant Usage Admin Tool"
        Then I was redirected to the "Simple" IDP Login page

    When I submit the credentials "slcoperator" "slcoperator1234" for the "Simple" login page
        Then I am displayed a list of "3" tenants
        And there is a row with tenantId <Tenant_id>

    When I click on the <Tenant_id> link
        Then I am displayed a list of <Collection_Count> collections
        And next to <Collection> is the entity count <CRecords>
        And next to <Collection> is size greater than <CSize>
        And I am displayed the total data size is greater than <TSize><commit_msg>Removed unnecessary step.<commit_after>@RALLY_US2663
Feature: Sandbox usage analytics

Background:
  Given I have an open web browser

Scenario Outline: As a SLC Operator I can determine how many tenants are using the sandbox enviornment
    Given I go to the "Tenant Usage Admin Tool"
        Then I was redirected to the "Simple" IDP Login page

    When I submit the credentials "slcoperator" "slcoperator1234" for the "Simple" login page
        Then I am displayed a list of "3" tenants
        And there is a row with tenantId <Tenant_id>
        And I am displayed a column for mongo usage and number of records
        And I am displayed the total number of tenants as "3" at the bottom of the page

    Examples:
    | Tenant_id |
    |    "T1"   |
    |    "T2"   |
    |    "T3"   |

Scenario Outline: As a SLC Operator I can determine mongo entity count and data size (in Kb) for each sandbox tenant
    Given I go to the "Tenant Usage Admin Tool"
        Then I was redirected to the "Simple" IDP Login page

    When I submit the credentials "slcoperator" "slcoperator1234" for the "Simple" login page
        Then I am displayed a list of "3" tenants
        And there is a row with tenantId <Tenant_id>
        And the row for <Tenant_id> displays entity count <Count>
        And the row for <Tenant_id> displays size greater than <Size>

    Examples:
    | Tenant_id | Count |  Size |
    |    "T1"   |  "14" |  "20" |
    |    "T2"   |  "49" | "100" |
    |    "T3"   | "532" | "500" |

Scenario: As a SLC Operator I can determine the total mongo entity count and data size (in Kb) for all sandbox tenants
    Given I go to the "Tenant Usage Admin Tool"
        Then I was redirected to the "Simple" IDP Login page

    When I submit the credentials "slcoperator" "slcoperator1234" for the "Simple" login page
        Then I am displayed a list of "3" tenants
        And I am displayed the total data size is greater than "600"
        And I am displayed the total entity count as "595"

Scenario Outline: As a SLC Operator I can determine mongo entity count and data size (in Kb) for each collection for a single tenant
    Given I go to the "Tenant Usage Admin Tool"
        Then I was redirected to the "Simple" IDP Login page

    When I submit the credentials "slcoperator" "slcoperator1234" for the "Simple" login page
        Then I am displayed a list of "3" tenants
        And there is a row with tenantId <Tenant_id>

    When I click on the <Tenant_id> link
        Then I am displayed a list of <Collection_Count> collections
        And next to <Collection> is the entity count <CRecords>
        And next to <Collection> is size greater than <CSize>
        And I am displayed the total data size is greater than <TSize>
{'fraction_non_alphanumeric': 0.05402010050251256, 'fraction_numerical': 0.01866475233309404, 'mean_word_length': 2.750336473755047, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '4333848', 'n_tokens_mistral': 1676, 'n_tokens_neox': 1579, 'n_words': 843}