feat: added test12 - .drone.yml dependency chain adjusted
This commit is contained in:
parent
667a522c13
commit
456532c7d4
|
@ -230,6 +230,7 @@ steps:
|
||||||
- failure
|
- failure
|
||||||
depends_on:
|
depends_on:
|
||||||
- reveal-env
|
- reveal-env
|
||||||
|
- test09
|
||||||
|
|
||||||
- name: test13
|
- name: test13
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
|
@ -505,6 +506,7 @@ steps:
|
||||||
- test09
|
- test09
|
||||||
- test10
|
- test10
|
||||||
- test11
|
- test11
|
||||||
|
- test12
|
||||||
|
|
||||||
- name: copy-cache
|
- name: copy-cache
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
|
|
58
test12.robot
58
test12.robot
|
@ -4,19 +4,71 @@ Library SeleniumLibrary run_on_failure=Nothing
|
||||||
*** Variables ***
|
*** Variables ***
|
||||||
${URL} https://git.dotya.ml/
|
${URL} https://git.dotya.ml/
|
||||||
${BROWSER} chrome
|
${BROWSER} chrome
|
||||||
|
${DELAY} 0.2
|
||||||
|
|
||||||
|
${LOGIN_BUTTON} //*[@id="navbar"]/div[2]/a[2]
|
||||||
|
${SIGN_IN} //form/div[4]/button[1]
|
||||||
|
${USERNAME_FIELD} //*[@id="user_name"]
|
||||||
|
${PASSWD_FIELD} //*[@id="password"]
|
||||||
|
${MILESTONES_TABBAR_BUTTON} //*[@id="navbar"]/a[4]
|
||||||
|
|
||||||
|
*** Keywords ***
|
||||||
|
Screenshot page
|
||||||
|
Capture Page Screenshot
|
||||||
|
|
||||||
|
Input Username
|
||||||
|
[Arguments] ${USERNAME_FIELD} ${USERNAME}
|
||||||
|
Input Text ${USERNAME_FIELD} ${USERNAME}
|
||||||
|
|
||||||
|
Input Password
|
||||||
|
[Arguments] ${PASSWD_FIELD} ${PASSWORD}
|
||||||
|
Input Text ${PASSWD_FIELD} ${PASSWORD}
|
||||||
|
|
||||||
|
Login page title
|
||||||
|
Title Should Be Sign In - dotya.ml Gitea Service
|
||||||
|
|
||||||
|
Login success
|
||||||
|
Title Should Be dat_test_usr - Dashboard - dotya.ml Gitea Service
|
||||||
|
|
||||||
|
Dashboard page address
|
||||||
|
Location Should Be https://git.dotya.ml/
|
||||||
|
|
||||||
|
Milestones page
|
||||||
|
Location Should Be https://git.dotya.ml/milestones
|
||||||
|
|
||||||
*** Test Cases ***
|
*** Test Cases ***
|
||||||
just a page GET (+ screenshot)
|
show Milestones page
|
||||||
${chrome_options} = Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
|
${chrome_options} = Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
|
||||||
Call Method ${chrome_options} add_argument headless
|
Call Method ${chrome_options} add_argument headless
|
||||||
Call Method ${chrome_options} add_argument no-sandbox
|
Call Method ${chrome_options} add_argument no-sandbox
|
||||||
Call Method ${chrome_options} add_argument disable-dev-shm-usage
|
Call Method ${chrome_options} add_argument disable-dev-shm-usage
|
||||||
${options}= Call Method ${chrome_options} to_capabilities
|
${options}= Call Method ${chrome_options} to_capabilities
|
||||||
|
|
||||||
Set Selenium Speed 0.2
|
|
||||||
Open Browser ${URL} browser=${BROWSER} desired_capabilities=${options}
|
Open Browser ${URL} browser=${BROWSER} desired_capabilities=${options}
|
||||||
|
Set Selenium Speed ${DELAY}
|
||||||
|
|
||||||
Capture Page Screenshot
|
Set Window Size 1920 1080
|
||||||
|
Maximize Browser Window
|
||||||
|
|
||||||
|
Click Element ${LOGIN_BUTTON}
|
||||||
|
Sleep ${DELAY}
|
||||||
|
Screenshot page
|
||||||
|
Log Location
|
||||||
|
Login page title
|
||||||
|
Input Username ${USERNAME_FIELD} dat_test_usr
|
||||||
|
Input Password ${PASSWD_FIELD} D@t_p@ssw000rd987.
|
||||||
|
Screenshot page
|
||||||
|
Press Keys None RETURN
|
||||||
|
Sleep ${DELAY}
|
||||||
|
Screenshot page
|
||||||
|
Log Location
|
||||||
|
Login success
|
||||||
|
Dashboard page address
|
||||||
|
Click Element ${MILESTONES_TABBAR_BUTTON}
|
||||||
|
Sleep ${DELAY}
|
||||||
|
Screenshot page
|
||||||
|
Log Location
|
||||||
|
Milestones page
|
||||||
|
|
||||||
Post-conditions
|
Post-conditions
|
||||||
Log Location
|
Log Location
|
||||||
|
|
Reference in New Issue