Automated Tests¶
If you want to run smoke tests on BLIS you can find them in the smoke_tests folder on the C4G BLIS Github. Below are the tests that are implemented and instructions for running the smoke tests.
Tests
-
Login
-
Specimen test
-
Registering a patient
-
Registering a specimen
Running Instructions
-
You will need python 3 installed, the latest is preferred
-
You will need to pip install selenium, if pip is not on your command line you can do python -m pip install selenium
-
Create a folder called test or something of that variety to extract your smoke test zip file to
-
Extract the zip to that folder
-
Ensure you have Firefox installed on the local machine, you will need to also get the gecko driver
-
Get the gecko driver from here for your platform you are running the tests on https://github.com/mozilla/geckodriver/releases
-
Put the gecko driver into the folder where your tests are running
-
Either run BLIS locally or have it installed on digital ocean
-
Get the address for your BLIS installation, this is what you put in the address bar in your browser to access BLIS
-
Edit the BLIS_URL in test.py with your address from step 9, so if your address was http://172.24.80.1:4001 that line should now be blis_url = "http://172.24.80.1:4001"
-
Open up command prompt or terminal
-
Navigate to the directory with cd
-
Run python main.py in your terminal or command prompt
-
The testing platform will run and will report back if any tests failed and with any errors or if all the tests ran successfully