<commit_before>*** Settings ***

Resource        robot/Cumulus/resources/NPSP.robot
Library         cumulusci.robotframework.PageObjects
...             robot/Cumulus/resources/ContactPageObject.py
...             robot/Cumulus/resources/NPSP.py
Suite Setup     Open Test Browser
Suite Teardown  Delete Records and Close Browser

*** Test Cases ***

Add New Contact to Household With Different LastName

    &{contact1} =  API Create Contact       Email=<EMAIL>
    Go To Record Home                       &{contact1}[AccountId]
    ${id}  Get Current Record Id
    Store Session Record                    Account    ${id}

    #Create a new contact under HouseHold Validation
    Click Related List Button               Contacts    New
    Wait Until Modal Is Open
    ${first_name} =                         Generate Random String
    ${last_name} =                          Generate Random String
    Populate Form
    ...                                     First Name=${first_name}
    ...                                     Last Name=${last_name}<commit_msg>Enhancing the test Add contact to household<commit_after>*** Settings ***

Resource        robot/Cumulus/resources/NPSP.robot
Library         cumulusci.robotframework.PageObjects
...             robot/Cumulus/resources/ContactPageObject.py
...             robot/Cumulus/resources/NPSP.py
Suite Setup     Open Test Browser
Suite Teardown  Delete Records and Close Browser

*** Variables ***
${EMAIL} =       <EMAIL>

*** Test Cases ***

Add New Contact to Household With Different LastName

    &{contact1} =  API Create Contact       Email=${EMAIL}
    Go To Record Home                       &{contact1}[AccountId]
    ${id}  Get Current Record Id
    Store Session Record                    Account    ${id}

    #Create a new contact under HouseHold Validation
    Click Related List Button               Contacts    New
    Wait Until Modal Is Open
    ${first_name} =                         Generate Random String
    ${last_name} =                          Generate Random String
    Populate Form
    ...                                     First Name=${first_name}
    ...                                     Last Name=${last_name}
{'fraction_non_alphanumeric': 0.07482993197278912, 'fraction_numerical': 0.0018140589569160999, 'mean_word_length': 1.6642512077294687, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2279404', 'n_tokens_mistral': 543, 'n_tokens_neox': 526, 'n_words': 172}