Skip to content

This is an example project that will demonstrate the use of RESTinstance for Restful 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.

License

Notifications You must be signed in to change notification settings

jjwong/RESTinstance_starter_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTinstance Starter Project

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!

Getting Started

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.

Instructions with virtualenv

  1. Start a terminal in the root of your project
  2. Activate virtualenv
  3. Run command: ./run_local_tests.sh
  4. Tests should all pass
  5. Inspect the log.html that gets generated in results/log.html

Activate virtualenv

In the project root directory, use the following commands.

  1. Create virtualenv
    • virtualenv -p python3 venv
  2. Activate virtualenv
    • source venv/bin/activate
  3. Install the required packages in virtualenv
    • pip install -r requirements.txt
  4. Verify you are on Python 3+
    • python --version

Credits

About

This is an example project that will demonstrate the use of RESTinstance for Restful 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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published