<commit_before>*** Settings ***
Resource    common.robot
Suite Setup    Set Test Image Directory    .${/}src${/}test${/}resources${/}testImages    

*** Test Cases ***
Capture screenshot locally
    Enable Debugging
    Capture Screenshot
	
Test image wait locally
	[Teardown]    Log results and kill process
    Enable OCR
	Start test application
	Wait Until Screen Contains    buttons.png
	
Test image click locally
    Enable OCR
    Start test application
	Wait Until Screen Contains    buttons.png
	Click Item    ok_button.png
	Wait Until Screen Contains    ok_clicked.png
	
Local call should be made if server connection is closed
    Enable Debugging
    ${port}    Start Remote Server
    Initialize Connection    http://127.0.0.1:${port}/
    Stop Remote Server
    Capture Screenshot
	
Test image wait remotely
	[Teardown]    Log results and kill process
	Start test server
    Initialize Connection    http://127.0.0.1:62022/
	Start test application
	Wait Until Screen Contains    buttons.png

Test image click at other remote server
    [Teardown]    Log results and kill process
    Start test server
    Initialize Connection    http://127.0.0.1:62022/
	Start test application
	Wait Until Screen Contains    buttons.png
	Click Item    ok_button.png
	Wait Until Screen Contains    ok_clicked.png
	
Test remote screenshot capture to other remote server
    [Teardown]    Log results and kill process
    Start test server
    Enable Debugging
    Initialize Connection    http://127.0.0.1:62022/
	Enable Debugging
    Capture Screenshot<commit_msg>+ New tests to check text input in both local and remote cases<commit_after>*** Settings ***
Resource    common.robot
Suite Setup    Set Test Image Directory    .${/}src${/}test${/}resources${/}testImages    

*** Test Cases ***
Capture screenshot locally
    Enable Debugging
    Capture Screenshot
	
Test image wait locally
	[Teardown]    Log results and kill process
    Enable OCR
	Start test application
	Wait Until Screen Contains    buttons.png
	
Test image click locally
    [Teardown]    Log results and kill process
    Start test application
	Wait Until Screen Contains    buttons.png
	Click Item    ok_button.png
	Wait Until Screen Contains    ok_clicked.png
	
Local input of text 
    [Teardown]    Log results and kill process
    Start test application
	Wait Until Screen Contains    buttons.png
	Input Text    Test text    empty_text_field.png

Local call should be made if server connection is closed
    Enable Debugging
    ${port}    Start Remote Server
    Initialize Connection    http://127.0.0.1:${port}/
    Stop Remote Server
    Capture Screenshot
	
	
Test image wait remotely
	[Teardown]    Log results and kill process
	Start test server
    Initialize Connection    http://127.0.0.1:62022/
	Start test application
	Wait Until Screen Contains    buttons.png

Test image click at other remote server
    [Teardown]    Log results and kill process
    Start test server
    Initialize Connection    http://127.0.0.1:62022/
	Start test application
	Wait Until Screen Contains    buttons.png
	Click Item    ok_button.png
	Wait Until Screen Contains    ok_clicked.png
	
Remote input of text 
    [Teardown]    Log results and kill process
    Start test server
    Initialize Connection    http://127.0.0.1:62022/
	Start test application
	Wait Until Screen Contains    buttons.png
	Input Text    Test text    empty_text_field.png
	
Test remote screenshot capture to other remote server
    [Teardown]    Log results and kill process
    Start test server
    Enable Debugging
    Initialize Connection    http://127.0.0.1:62022/
	Enable Debugging
    Capture Screenshot
{'fraction_non_alphanumeric': 0.05283328770873255, 'fraction_numerical': 0.024363536819052834, 'mean_word_length': 3.0735785953177257, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 9, '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': '3866516', 'n_tokens_mistral': 1050, 'n_tokens_neox': 989, 'n_words': 409}