This is an example project that will demonstrate the use of RESTinstance for API testing. This is to help new users quickly get started using the library and providing common examples that they might need to leverage for their own projects.
This project uses virtualenv to handle all package requirements.
Please visit the RESTinstance Keyword Library for more keyword usage. We will try to provide as many useful examples as possible. Please feel free to submit PRs for areas we do not have covered!
Please make sure virtualenv (python3) is setup before proceeding.
If you've never used it, try this guide.
However, if you do not want to use virtualenv, you just need to make sure Python 3 is installed.
From there, you would just run pip install -r requirements.txt
and ./run_local_tests.sh
to run the tests.
- Start a terminal in the root of your project
- Activate virtualenv
- Run command:
./run_local_tests.sh
- Tests should all pass
- Inspect the log.html that gets generated in results/log.html
In the project root directory, use the following commands.
- Create virtualenv
virtualenv -p python3 venv
- Activate virtualenv
source venv/bin/activate
- Install the required packages in virtualenv
pip install -r requirements.txt
- Verify you are on Python 3+
python --version
- Joe Wong
- Anssi Syrjäsalo - Thank you for creating RESTinstance and answering all of my silly questions :)