This commit is contained in:
parent
a96c53b7db
commit
03e93e2ef2
18
.drone.yml
18
.drone.yml
|
@ -51,6 +51,22 @@ steps:
|
|||
depends_on:
|
||||
- reveal-env
|
||||
|
||||
- name: test02
|
||||
pull: if-not-exists
|
||||
image: immawanderer/archlinux-rf:latest
|
||||
volumes:
|
||||
- name: shm
|
||||
path: /dev/shm
|
||||
commands:
|
||||
- mkdir -pv results/${DRONE_STAGE_NAME}/test02
|
||||
- robot -T -d results/${DRONE_STAGE_NAME}/test02 test02.robot
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
- failure
|
||||
depends_on:
|
||||
- reveal-env
|
||||
|
||||
- name: copy-cache
|
||||
pull: if-not-exists
|
||||
image: immawanderer/archlinux-rf:latest
|
||||
|
@ -66,7 +82,7 @@ steps:
|
|||
- success
|
||||
- failure
|
||||
depends_on:
|
||||
- test01
|
||||
- test02
|
||||
|
||||
volumes:
|
||||
- name: cache
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
*** Settings ***
|
||||
Library SeleniumLibrary run_on_failure=Nothing
|
||||
|
||||
*** Variables ***
|
||||
${URL} https://git.dotya.ml/
|
||||
${BROWSER} chrome
|
||||
|
||||
*** Test Cases ***
|
||||
open page and maximize (mobile)
|
||||
${chrome_options} = Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
|
||||
Call Method ${chrome_options} add_argument headless
|
||||
Call Method ${chrome_options} add_argument no-sandbox
|
||||
Call Method ${chrome_options} add_argument disable-dev-shm-usage
|
||||
${options}= Call Method ${chrome_options} to_capabilities
|
||||
|
||||
Set Selenium Speed 0.2
|
||||
Open Browser ${URL} browser=${BROWSER} desired_capabilities=${options}
|
||||
Set Window Size 1080 1920
|
||||
|
||||
Maximize Browser Window
|
||||
Capture Page Screenshot
|
||||
|
||||
Post-conditions
|
||||
Log Location
|
||||
Sleep 1
|
||||
Close Browser
|
Reference in New Issue