add test001 and add repo to drone
Some checks failed
continuous-integration/drone/push Build is failing

* added first test
* added drone config .drone.yml
* fixed typo in README.md
This commit is contained in:
surtur 2020-03-04 01:59:25 +01:00
parent 9c892ed5fa
commit f06875a6a5
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
3 changed files with 40 additions and 2 deletions

18
.drone.yml Normal file
View File

@ -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

View File

@ -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

20
test001.robot Normal file
View File

@ -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