diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..6d064de --- /dev/null +++ b/.drone.yml @@ -0,0 +1,18 @@ +--- +kind: pipeline +name: test001 + +platform: + arch: amd64 + +steps: +- name: open-website + pull: always + image: robotframework/rfdocker + commands: + - uname -r + - python --version + - robot test001 + - cat log.html + - cat output.html + - cat report.hmtl diff --git a/README.md b/README.md index 98c365d..7da9ae1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# rf-testing +# rf-testing [![Build Status](https://drone.dotya.ml/api/badges/wanderer/rf-testing/status.svg?ref=refs/heads/master)](https://drone.dotya.ml/wanderer/rf-testing) -this repoholds *testing* sawce of robotframework tests that are meant to be run in a Docker container +this repo holds *testing* sawce of robotframework tests that are meant to be run in a Docker container > use at your own discretion diff --git a/test001.robot b/test001.robot new file mode 100644 index 0000000..af02c2d --- /dev/null +++ b/test001.robot @@ -0,0 +1,20 @@ +*** Settings *** +Library SeleniumLibrary run_on_failure=Nothing + +*** Variables *** +${URL} https://drone.dotya.ml/wanderer/docker-archlinux-cdev/ +${BROWSER} Chrome +${RANDELEM} //section[@class='repo-item build-yes active-yes'] + +*** Test Cases *** +TC_001 - open browser and go to url + Set Selenium Speed 0.2 + Open Browser ${URL} ${BROWSER} + Wait Until Element Is Visible ${RANDELEM} + Click Element ${RANDELEM} + Log Location + Sleep 2 + Capture Page Screenshot filename=screen.png + +Post-conditions + Close Browser