Skip to content

Kaynan-Jamelaumn/Py-APItest-report-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Virtual Environment Setup and Usage

Overview

This guide explains how to create the enviroment and run the tests.


Prerequisites

  • Python: Ensure Python 3.x is installed on your system.
  • Pip: Ensure pip (Python package manager) is installed.

Steps to Create and Use a Virtual Environment

1. Create a Virtual Environment

python -m venv venv

USe virtual enviroment

.\venv\Scripts\activate

Install Dependencies

pip install -r requirements.txt

install the py-test (since currently is still in development and a local dependency you have to "fake install it locally")

if you are inside this repository "." to collect the PyTestDocx

pip install -e . 

Run the tests

pytx  --test-dir <path-to-your-test-directory>

Fields to use on .env

BASE_API_URL="https://test.com" # Base API URL
TEST_USER="username" #for login
TEST_PASSWORD="password" 
PROJECT_NAME="Tests?" #project meta data
ENVIROMENT="Staging?"
TEST_CYCLE="IG Regression?"

About

test runner for API, it generates reports on the tests for html, docx and json

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published