Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ehasa-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WIMMA Lab 2019
Overflow
ehasa-frontend
Commits
28d3dfbb
Commit
28d3dfbb
authored
5 years ago
by
M3079
Browse files
Options
Downloads
Patches
Plain Diff
test updated
parent
cb2148f7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#65843
canceled
5 years ago
Stage: purge
Stage: build
Stage: rf-test
Stage: push-results
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/resource.robot
+55
-9
55 additions, 9 deletions
tests/resource.robot
with
55 additions
and
9 deletions
tests/resource.robot
+
55
−
9
View file @
28d3dfbb
...
@@ -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
taded
ime ok
Log
end
datet
ime 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment