From ca72f50a1cd6402c6f76835e62cce0f0bbdd90a2 Mon Sep 17 00:00:00 2001 From: damies13 Date: Mon, 25 Mar 2024 10:22:07 +1000 Subject: [PATCH] Update Job Name Also add some capture screen shots to Table with some spaces to debug the random failure --- .github/workflows/Regression_Tests.yaml | 2 +- .../TestDataTable-GUI_SeleniumLibrary.robot | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/Regression_Tests.yaml b/.github/workflows/Regression_Tests.yaml index 17fb4db..b2bc68e 100644 --- a/.github/workflows/Regression_Tests.yaml +++ b/.github/workflows/Regression_Tests.yaml @@ -12,7 +12,7 @@ on: jobs: - Agent: + Regression_Tests: strategy: max-parallel: 8 matrix: diff --git a/Regression_Tests/TestDataTable-GUI_SeleniumLibrary.robot b/Regression_Tests/TestDataTable-GUI_SeleniumLibrary.robot index 27b84d0..1325caa 100644 --- a/Regression_Tests/TestDataTable-GUI_SeleniumLibrary.robot +++ b/Regression_Tests/TestDataTable-GUI_SeleniumLibrary.robot @@ -318,18 +318,22 @@ Table with some spaces Input Text id:table-name ${TABLENAME} Click Button Create Wait Until Element Is Visible xpath: //a[text()='${TABLENAME}'] + Capture Page Screenshot # Add Column Wait Until Element Is Visible xpath: //li/a[text()='${TABLENAME}'] Click Element xpath: //li/a[text()='${TABLENAME}'] Wait Until Element Is Visible xpath: //li[@aria-selected='true']/a[text()='${TABLENAME}'] + Capture Page Screenshot Click Button Add Column Wait Until Element Is Enabled xpath: //span[contains(@class, 'ui-dialog-title') and contains(text(), 'Add Column')] Capture Page Screenshot Input Text id:column-name Col with spaces + Capture Page Screenshot Click Button Add Wait Until Element Is Visible xpath: //div[@name='${TABLENAME}']//th/span[text()='Col with spaces'] ${col_a_id}= Get Element Attribute xpath: //div[@name='${TABLENAME}']//th/span[text()='Col with spaces']/.. id + Capture Page Screenshot # Add Value Wait Until Element Is Visible xpath: //div[@name="${TABLENAME}"]//td[@id="${col_a_id}-0"] @@ -340,12 +344,14 @@ Table with some spaces Click Element xpath: //div[@name="${TABLENAME}"]//td[@id="${col_a_id}-0"] Capture Page Screenshot Wait Until Element Is Visible xpath: //div[@name="${TABLENAME}"]//td[@id="${col_a_id}-0"]/input - Input Text xpath: //div[@name="${TABLENAME}"]//td[@id="${col_a_id}-0"]/input abc123 + Input Text xpath: //div[@name="${TABLENAME}"]//td[@id="${col_a_id}-0"]/input abc123 + Capture Page Screenshot Click Element xpath: //div[@name="${TABLENAME}"]//td[@id="${col_a_id}-3"] Wait Until Element Is Not Visible xpath: //div[@name="${TABLENAME}"]//td[@id="${col_a_id}-0"]/input + Capture Page Screenshot Wait until page contains element xpath: //div[@name="${TABLENAME}"]//td[@id="${col_a_id}-0" and contains(@class, "has-value")] ${result}= Get Text xpath: //div[@name="${TABLENAME}"]//td[@id="${col_a_id}-0"] - Should Be Equal As Strings ${result} abc123 + Should Be Equal As Strings ${result} abc123 Remove Table with some spaces [Tags] Delete Table Dialogues @@ -353,13 +359,13 @@ Remove Table with some spaces Remove Table undefined [Tags] Table - ${passed} = Run Keyword And Return Status Remove Table undefined - Run keyword if ${passed} Fail Table undefined should not exist + ${passed} = Run Keyword And Return Status Remove Table undefined + Run keyword if ${passed} Fail Table undefined should not exist *** Keywords *** Open TDT GUI - ${orig timeout} = Set Selenium Timeout 60 seconds + ${orig timeout}= Set Selenium Timeout 60 seconds Open Browser about:blank ${BROWSER} Go To http://${TDT_Host}/