Commit d0b85acd authored by douomo's avatar douomo
Browse files

Merge branch 'main' of github.com:douomo/mwT-test-script

parents a338952f 0db1258c
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
@@ -10,6 +10,10 @@ source bin/activate
#INSTALL THE NEEDED LIBRARIES
pip install -r requirements.txt

#it might me needed to delete the folder related to pyenv and re-create the environment

rm -rf bin include lib pyvenv.cfg

#### TO RUN THE INVENTORY AND PERFORMANCE TESTS:
#Configure the file for authentication:
In PerformanceTest.robot and test_inventory.robot, you can either authenticate with key or with username and password.
@@ -17,6 +21,8 @@ In PerformanceTest.robot and test_inventory.robot, you can either authenticate w
Configure username, password and key_filename in ne-cfg for inventory and Performance Test
If you want to use authentication with password and username you can leave key_filename as it is. Viceversa you have to select the file with your private key

Be sure to set up all the field you find in the ne-cfg.py (interfaces, ip, name and so on)

robot inventoryTest.robot

robot PerformanceTest.robot
@@ -31,5 +37,10 @@ Edit the network.csv file accordingly with your device.
bridgeName and componentName are needed to configure the VLAN
    (see cvlan_deletion.xml.pyformat and cvlan_creation.xml.pyformat to compare it with your xml config file)

in folder "sampleTest" run:
in the root folder run:
robot --parser GherkinParser features/


EDIT: For some performance and alarm test you need to set up two devices.
be sure to correctly define the names of the interfaces involved in the ne-cfg.py file