Skip to content

Commit

Permalink
Update Job Name
Browse files Browse the repository at this point in the history
Also add some capture screen shots to Table with some spaces to debug the random failure
  • Loading branch information
damies13 committed Mar 25, 2024
1 parent 3d5edc9 commit ca72f50
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Regression_Tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:


jobs:
Agent:
Regression_Tests:
strategy:
max-parallel: 8
matrix:
Expand Down
16 changes: 11 additions & 5 deletions Regression_Tests/TestDataTable-GUI_SeleniumLibrary.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -340,26 +344,28 @@ 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
Remove Table 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}/

Expand Down

0 comments on commit ca72f50

Please sign in to comment.