Skip to content
Snippets Groups Projects
Commit 28d3dfbb authored by M3079's avatar M3079
Browse files

test updated

parent cb2148f7
No related branches found
No related tags found
No related merge requests found
Pipeline #65843 canceled
...@@ -65,6 +65,14 @@ ${I_CAPTURE} id=captureTimeInput ...@@ -65,6 +65,14 @@ ${I_CAPTURE} id=captureTimeInput
${I_CONF} id=confirmationTimeInput ${I_CONF} id=confirmationTimeInput
${B_ESUBMIT} id=editGameSubmitButton ${B_ESUBMIT} id=editGameSubmitButton
${B_EDELETE} id=gameDeleteButton
${E_ECLOSE} id=closeEditGameFormX
${FACTION1} Faction1
${FACTION2} Faction2
## Game List
${B_GAMESELECT} id=selectGameButton
${testit} css=button[id^="selecttest_"]
*** Keywords *** *** Keywords ***
...@@ -323,7 +331,17 @@ Generate Task Name/Description ...@@ -323,7 +331,17 @@ Generate Task Name/Description
${TASK_D} = Generate Random String ${TASK_DESCRIPTION} [LETTERS][NUMBERS] ${TASK_D} = Generate Random String ${TASK_DESCRIPTION} [LETTERS][NUMBERS]
Input Text id=taskNameInput ${TASK_N} Input Text id=taskNameInput ${TASK_N}
Input Text id=taskDescriptionInput ${TASK_D} Input Text id=taskDescriptionInput ${TASK_D}
Submit Task
Click Element id=newTaskSubmitButton
#Wait For Game Select Button To Appear
# Wait Until Page Contains Element id= 1
Select Faction
[Arguments] ${faction}
Select From List By Label id=taskFactionSelect ${faction}
...@@ -382,13 +400,14 @@ Create Game ...@@ -382,13 +400,14 @@ Create Game
Generate Game End Date And Time # Generate globals: ENDDATE, ENDTIME Generate Game End Date And Time # Generate globals: ENDDATE, ENDTIME
Input Text ${I_NGAMESTOP} ${ENDDATE} Input Text ${I_NGAMESTOP} ${ENDDATE}
Input Text ${I_NSTOPTIME} ${ENDTIME} Input Text ${I_NSTOPTIME} ${ENDTIME}
Log end tadedime ok Log end datetime ok
Click Button ${B_NSUBMIT} Click Button ${B_NSUBMIT}
Handle Alert Handle Alert
Select Game Select Game
${x} = Format String select{} ${VALID_GAME} ${x} = Format String select{} ${VALID_GAME}
Wait Until Page Contains Element id=${x} 1
Click Button id=${x} Click Button id=${x}
Log Game Selected Log Game Selected
...@@ -413,11 +432,11 @@ Edit Game Time ...@@ -413,11 +432,11 @@ Edit Game Time
Log end edited Log end edited
Edit Factions Edit Factions
Input Text ${I_FACTIONNAME} Faction1 Input Text ${I_FACTIONNAME} ${FACTION1}
Input Text ${I_FACTIONPASS} Pass1 Input Text ${I_FACTIONPASS} Pass1
Click Button ${B_FACTIONADD} Click Button ${B_FACTIONADD}
Input Text ${I_FACTIONNAME} Faction2 Input Text ${I_FACTIONNAME} ${FACTION2}
Input Text ${I_FACTIONPASS} Pass2 Input Text ${I_FACTIONPASS} Pass2
Click Button ${B_FACTIONADD} Click Button ${B_FACTIONADD}
...@@ -426,15 +445,17 @@ Edit Objective Points ...@@ -426,15 +445,17 @@ Edit Objective Points
Input Text ${I_FLAGMULTI} 3 Input Text ${I_FLAGMULTI} 3
Click Button ${B_FLAGADD} Click Button ${B_FLAGADD}
Input Text ${I_CAPTURE} 240 # Input Text ${I_CAPTURE} 240
Input Text ${I_CONF} 30 # Input Text ${I_CONF} 30
Save Game Save Game
# Joku vika # Joku vika
Press Keys None PAGE_DOWN #Press Keys None PAGE_DOWN
Submit Form #Submit Form
Click Button id=closeEditGameFormX Click Button ${B_ESUBMIT}
Alert Should Be Present text=Game updated action=ACCEPT timeout=None
Click Element ${E_ECLOSE}
# Handle Alert # Handle Alert
Generate Valid Gamename #Generates new name for every test rotation in gitlab. Used in test suite xx. Generate Valid Gamename #Generates new name for every test rotation in gitlab. Used in test suite xx.
...@@ -482,3 +503,28 @@ Generate Game End Date And Time ...@@ -482,3 +503,28 @@ Generate Game End Date And Time
Log Log
[Arguments] ${x} [Arguments] ${x}
Log To Console ${x} Log To Console ${x}
#
# Delete Game
#
Delete Game
Click Button ${testit}
Click Button ${B_EDITGAME}
Click Button ${B_EDELETE}
Alert Should Be Present text=Are you sure you want to delete this game action=ACCEPT timeout=None
Alert Should Be Present text=Game deleted action=ACCEPT timeout=None
Click Button ${B_GAMESELECT}
Check If Any Test Games
${status} ${value} = Run Keyword And Ignore Error Page Should Contain Button ${testit}
[Return] ${status}
#Select Game
# ${x} = Format String select{} ${VALID_GAME}
# Wait Until Page Contains Element id=${x} 2
# Click Button id=${x}
# Log Game Selected
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment