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
b39db72f
Commit
b39db72f
authored
5 years ago
by
L4074
Browse files
Options
Downloads
Patches
Plain Diff
ADD test-fail function
parent
ff58d58d
No related branches found
No related tags found
No related merge requests found
Pipeline
#66506
failed
5 years ago
Stage: purge
Stage: build
Stage: rf-test
Stage: push-results
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/04_new_game.robot
+2
-2
2 additions, 2 deletions
tests/04_new_game.robot
tests/06_join_game.robot
+1
-1
1 addition, 1 deletion
tests/06_join_game.robot
tests/resource.robot
+8
-3
8 additions, 3 deletions
tests/resource.robot
with
11 additions
and
6 deletions
tests/04_new_game.robot
+
2
−
2
View file @
b39db72f
...
@@ -5,7 +5,7 @@ Suite Setup Open Browser To Login Page
...
@@ -5,7 +5,7 @@ Suite Setup Open Browser To Login Page
Suite Teardown
Close Browser
Suite Teardown
Close Browser
*** Variables ***
*** Variables ***
${DELAY}
0.
1
${DELAY}
0.
2
*** Test Cases ***
*** Test Cases ***
Create A New Game
Create A New Game
...
@@ -21,7 +21,7 @@ Create A New Game
...
@@ -21,7 +21,7 @@ Create A New Game
# USE THE COMMENTED VARIABLES WHEN RUNNING ALL TESTS
# USE THE COMMENTED VARIABLES WHEN RUNNING ALL TESTS
#
#
Valid Login
Valid Login
Input Username
${VALID USER}
Input Username
asd
#
${VALID USER}
Input Password
${VALID PASSWORD}
Input Password
${VALID PASSWORD}
Submit Credentials Login
Submit Credentials Login
...
...
This diff is collapsed.
Click to expand it.
tests/06_join_game.robot
+
1
−
1
View file @
b39db72f
...
@@ -6,7 +6,7 @@ Resource resource.robot
...
@@ -6,7 +6,7 @@ Resource resource.robot
Test Template
Join Game And Faction
Test Template
Join Game And Faction
*** Variables ***
*** Variables ***
${DELAY}
0.
1
${DELAY}
0.
2
*** Test Cases ***
*** Test Cases ***
...
...
This diff is collapsed.
Click to expand it.
tests/resource.robot
+
8
−
3
View file @
b39db72f
*** Settings ***
*** Settings ***
Documentation
A resource file with reusable keywords and variables.
Documentation
A resource file with reusable keywords and variables.
Library
SeleniumLibrary
Library
SeleniumLibrary
run_on_failure=Fail
Library
String
Library
String
Library
DateTime
Library
DateTime
Library
Collections
Library
Collections
...
@@ -9,7 +9,7 @@ Library Collections
...
@@ -9,7 +9,7 @@ Library Collections
${SERVER}
%{SITE_URL}
${SERVER}
%{SITE_URL}
${BROWSER}
ff
${BROWSER}
ff
${DELAY}
0
${DELAY}
0
${VALID USER}
ville
${VALID USER}
ville
# overridden in suite 00
${VALID PASSWORD}
koira
${VALID PASSWORD}
koira
${LOGIN URL}
https://
${SERVER}
/
${LOGIN URL}
https://
${SERVER}
/
${WELCOME URL}
#You can use this if there's a different page after login page.
${WELCOME URL}
#You can use this if there's a different page after login page.
...
@@ -30,7 +30,7 @@ ${SU_LP} Validation failed: name must be longer than or equal to 3 ch
...
@@ -30,7 +30,7 @@ ${SU_LP} Validation failed: name must be longer than or equal to 3 ch
${LU_SP}
Validation failed: name must be shorter than or equal to 31 characters, password must be longer than or equal to 3 characters
${LU_SP}
Validation failed: name must be shorter than or equal to 31 characters, password must be longer than or equal to 3 characters
${ACC_EXISTS}
User already exists
${ACC_EXISTS}
User already exists
${P_NOMATCH}
Passwords do not match
${P_NOMATCH}
Passwords do not match
${VALID_GAME}
QWE
${VALID_GAME}
QWE
# overridden in suite 04
## New Game /
## New Game /
# B = Button / I = Input
# B = Button / I = Input
...
@@ -91,6 +91,10 @@ ${B_CLOSEPLAYERS} id=closePlayerlistX
...
@@ -91,6 +91,10 @@ ${B_CLOSEPLAYERS} id=closePlayerlistX
@{PLAYERS}
@{PLAYERS}
*** Keywords ***
*** Keywords ***
Fail
capture page screenshot
sleep
1
#Valid Login
#Valid Login
Open Browser To Login Page
Open Browser To Login Page
Open Browser
${LOGIN URL}
${BROWSER}
Open Browser
${LOGIN URL}
${BROWSER}
...
@@ -98,6 +102,7 @@ Open Browser To Login Page
...
@@ -98,6 +102,7 @@ Open Browser To Login Page
Set Selenium Speed
${DELAY}
Set Selenium Speed
${DELAY}
Login Page Should be Open
Login Page Should be Open
Login Page Should be Open
Login Page Should be Open
Title Should Be
TACS
Title Should Be
TACS
...
...
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