<commit_before>*** Settings ***
Documentation     Check 200 OK status of various static links of dataprovides
Library           HttpLibrary.HTTP
Library           ExtendedSelenium2Library

*** Variables ***
${dzhwandbmbflink}
${docanddataaccesslink}

*** Test Cases ***
Check Link Status for DZHW and BMBF
    Get Attribute and Status of the Element with id   dzhw-link
    Get Attribute and Status of the Element with id   bmbf-link

Check Link Status for DZHW Documentation and Data Access
    Get Attribute and Status of the Element with tooltip   md-tooltip-2
    Get Attribute and Status of the Element with tooltip   md-tooltip-4

*** Keywords ***
Get Attribute and Status of the Element with id
    [Arguments]    ${id}
    ${dzhwandbmbflink}     Get Element Attribute   xpath=//a[@id="${id}"]@href
    Log To Console   ${dzhwandbmbflink}
    GET    ${dzhwandbmbflink}
    Response Status Code Should Equal    200 OK

Get Attribute and Status of the Element with tooltip
    [Arguments]    ${tooltip}
    ${docanddataaccesslink}     Get Element Attribute   xpath=//a[@md-labeled-by-tooltip="${tooltip}"]@href
    Log To Console   ${docanddataaccesslink}
    GET    ${docanddataaccesslink}
    Response Status Code Should Equal   200 OK<commit_msg>#2247 added tag localonly for dzhw and bmbf<commit_after>*** Settings ***
Documentation     Check 200 OK status of various static links of dataprovides
Library           HttpLibrary.HTTP
Library           ExtendedSelenium2Library

*** Variables ***
${dzhwandbmbflink}
${docanddataaccesslink}

*** Test Cases ***
Check Link Status for DZHW Documentation and Data Access
    [Tags]   localonly
    Get Attribute and Status of the Element with tooltip   md-tooltip-2
    Get Attribute and Status of the Element with tooltip   md-tooltip-4

Check Link Status for DZHW and BMBF
    Get Attribute and Status of the Element with tooltip   md-tooltip-6
    Get Attribute and Status of the Element with tooltip   md-tooltip-7

*** Keywords ***
Get Attribute and Status of the Element with tooltip
    [Arguments]    ${tooltip}
    ${docanddataaccesslink}     Get Element Attribute   xpath=//a[@md-labeled-by-tooltip="${tooltip}"]@href
    Log To Console   ${docanddataaccesslink}
    GET    ${docanddataaccesslink}
    Response Status Code Should Equal   200 OK
{'fraction_non_alphanumeric': 0.0745880312228968, 'fraction_numerical': 0.011708586296617519, 'mean_word_length': 3.479611650485437, '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': '2409921', 'n_tokens_mistral': 659, 'n_tokens_neox': 633, 'n_words': 253}