Skip to content

aloknag/flasky-ui-test

Repository files navigation

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