Skip to content
Snippets Groups Projects
Commit b39db72f authored by L4074's avatar L4074
Browse files

ADD test-fail function

parent ff58d58d
No related branches found
No related tags found
No related merge requests found
Pipeline #66506 failed
...@@ -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
......
...@@ -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 ***
......
*** 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
......
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