Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.19 KB

README.md

File metadata and controls

59 lines (40 loc) · 1.19 KB

flasky-ui-test

Structure of the repo:

---Pages
|--results
|--screenshots
|--testdata
|--userkeywords
|--variables

Pages:
Contains POM based robot files containing locators and Keywords to interact with that Page

results:
Contains test run results

screenshots:
All screenshots should be saved in this directory

testdata:
Holds any test data that can be used for further/future test
I have test data in csv format

userkeywords:
User Defined keywords as python package. Import this in your test/pages robot files as:
Library userkeywords/keywords.py

variables:
defines variables, it can be different for different environments of testing.
[optionally]: While running robot file, we can pass which variables.py to use.

How to use this repo to run tests

  • git clone https://github.com/aloknag/flasky-api-test.git

  • create a virtual environment using python 3.7. Inside the virtualenv install libraries. Activate virtual env and install all dependencies.

  • pip install -r requirements.txt

  • To Run all tests :

  • robot --outputdir results tests/

Results

image

image