From f06875a6a5bbf83c5262b3b72ad08c21d6dc68aa Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 4 Mar 2020 01:59:25 +0100 Subject: [PATCH] add test001 and add repo to drone * added first test * added drone config .drone.yml * fixed typo in README.md --- .drone.yml | 18 ++++++++++++++++++ README.md | 4 ++-- test001.robot | 20 ++++++++++++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 .drone.yml create mode 100644 test001.robot 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