ui-tests
Harvester UI testing based on RobotFramework.
⚠️ ⚠️ ⚠️ This has been moved to into harvester/tests⚠️ ⚠️ ⚠️
Running Test
Prerequisite
It is highly recommdned to use virtual environment like venv
to make a isolated environment, then install dependencies via pip:
pip install -r requirements.txt
After that, we still need webdrivers for Selenium. In here, just use the tool webdrivermanager:
webdrivermanager chrome firefox
To notice that you have to install relevant browser for its webdriver. The tool also support other browsers like Edge and Opera.
Setup And Execute
To simply setup the environment information for test cases, you just need to copy config.py.example
into config.py
and update those variables inside:
cp config.py.example config.py
vim config.py
# or other editors that you familiar with
Then just execute:
robot -A arguments.txt atests
Folder Structure
logs/
- default destination for log filesarguments.txt
- default command line options for test executionconfig.py.example
- global variables for test suitesatest/
- acceptance test cases./resources
- robot framework resource files./<Num>__<TestName>
- relevant test cases
Development
For Acceptance Tests, please check develop guide