mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-02 03:48:09 +00:00
be4f242cf0fa14a2832e787f7a725c6c0a6a547f
Signed-off-by: shivamcandela <shivam.thakur@candelatech.com>
TIP Open WiFi Testing
This repository contains the test automation framework and scripts for TIP Open WiFi. Test Framework is implemented in pytest
Test Cases are Classified as follows
├── lanforge - /* to be migrated */
├── libs
│ ├── controller_tests -/* Library Support for controller_tests part */
├── apnos -/* Library Support for Access Points (uses AP SSH) */
│ ├── lanforge
│ ├── perfecto -/* Library Support for Perfecto Traffic Generator*/
│ ├── testrails -/* Result Visualization (will be depreciated )*/
├── tests - /* Pytest cases Directory */
│ ├── _basic_test_setup
│ ├── access_point_tests
│ ├── controller_tests
│ ├── e2e
├── advanced
├── basic
├── interOp
├── mdu
|── mesh
|── scale
|── README.md - /* Pytest framework and testcases information */
##Follow the below instructions to setup the Testing and Development Environment
STEP 1
git clone https://github.com/Telecominfraproject/wlan-testing
git clone https://github.com/Telecominfraproject/wlan-lanforge-scripts
Make sure this directory structure exists
├── wlan-lanforge-scripts
├── wlan-testing
cd wlan-testing
./sync_repos.bash
STEP 2
Make sure you have python version >= 3.8
User this to check "python --version"
Lets Install the Python Packages needed
pip3 install pytest==6.2.2
pip3 install bs4
pip3 install paramiko
pip3 install xlsxwriter
STEP 4
Lets Install Controller Libraries, follow below steps:
mkdir ~/.pip
echo "[global]" > ~/.pip/pip.conf
echo "index-url = https://pypi.org/simple" >> ~/.pip/pip.conf
echo "extra-index-url = https://tip-read:tip-read@tip.jfrog.io/artifactory/api/pypi/tip-wlan-python-pypi-local/simple" >> ~/.pip/pip.conf
echo "tip-wlan-cloud" > ~/.pip/requirements.txt
pip3 install -r ~/.pip/requirements.txt
STEP 5
Setup configuration.py file
This file is autogenerated by Quali-Lab-Orchestration
You can custom create the configuration file, by following the sample configuration data structure (tests/configuration.py)
STEP 6
You are all set,
To verify that everything is working,
cd wlan-testing/tests
pytest -m test_connection -s -vvv
Now, follow tests/README.md to understand the Testing Framework, and How to run and
write new tests
Incase of any Issue regarding setup,
email: shivam.thakur@candelatech.com
Build status
Best Practice
- Ensure to have a python version > 3.8
- We strongly recommend to use virtualenv to ensure that your dev environment sandbox is created.
Code style
All code must be written in python 3 and conform to PEP 8 style guide. The test framework is built using pytest.
Description
Languages
Python
99%
Shell
0.6%
Roff
0.4%