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
Suite Teardown Close Browser
*** Variables ***
${DELAY} 0.1
${DELAY} 0.2
*** Test Cases ***
Create A New Game
......@@ -21,7 +21,7 @@ Create A New Game
# USE THE COMMENTED VARIABLES WHEN RUNNING ALL TESTS
#
Valid Login
Input Username ${VALID USER}
Input Username asd # ${VALID USER}
Input Password ${VALID PASSWORD}
Submit Credentials Login
......
......@@ -6,7 +6,7 @@ Resource resource.robot
Test Template Join Game And Faction
*** Variables ***
${DELAY} 0.1
${DELAY} 0.2
*** Test Cases ***
......
*** Settings ***
Documentation A resource file with reusable keywords and variables.
Library SeleniumLibrary
Library SeleniumLibrary run_on_failure=Fail
Library String
Library DateTime
Library Collections
......@@ -9,7 +9,7 @@ Library Collections
${SERVER} %{SITE_URL}
${BROWSER} ff
${DELAY} 0
${VALID USER} ville
${VALID USER} ville # overridden in suite 00
${VALID PASSWORD} koira
${LOGIN URL} https://${SERVER}/
${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
${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
${P_NOMATCH} Passwords do not match
${VALID_GAME} QWE
${VALID_GAME} QWE # overridden in suite 04
## New Game /
# B = Button / I = Input
......@@ -91,6 +91,10 @@ ${B_CLOSEPLAYERS} id=closePlayerlistX
@{PLAYERS}
*** Keywords ***
Fail
capture page screenshot
sleep 1
#Valid Login
Open Browser To Login Page
Open Browser ${LOGIN URL} ${BROWSER}
......@@ -98,6 +102,7 @@ Open Browser To Login Page
Set Selenium Speed ${DELAY}
Login Page Should be Open
Login Page Should be Open
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