JavaScript Restrictor
Browser extension that improves privacy and security
|
System tests for web browser extension Javascript Restrictor (JSR) automatically checks how JSR affets tested websites.
It is necessary to partially set up manually a test environment before the first test run!
These programs and tools are required to be installed:
numpy
selenium
python-Levenshtein
on Windows. More information.python-Levenshtein
sklearn
nltk
python -m nltk.downloader stopwords
Download the Selenium server (Grid) standalone from the download page. Save it to the folder ./get_data/selenium/
with the name selenium-server-standalone.jar
.
Download the latest TRANCO top sites list from download page. Save it to folder ./get_data/top_sites/
with the name tranco.csv
.
Download Chrome driver from download page. Select the version coresponding to the version of your Google Chrome web browser. If you download an incompatible version, you will see an error during starting tests. Download the correct ChromeDriver to folder ../common_files/webbrowser_drivers
with name chromedriver.exe
(for Windows) or chromedriver
(for Linux).
Open file ./get_data/configuration.py
and check if all paths and other properities are right.
The results of system tests will be stored in folder ./data
after finishing tests.
Open PowerShell in folder system_tests and run command: .\setup_buildJSR_runTests.ps1
.
When script execution starts for the first time, OS Windows may ask you to allow Firewall Exception for this script (for Python). Click Allow.
Open Terminal in folder system_tests and run command: ./setup_buildJSR_runTests.sh