The Selenium based setuptest for the CYBR CSCW-SUITE (CCS). 1.download: wget sourceforge.net/projects/c-c-s/files/latest/download 2.install-app: docker-compose up --build 3.get-test: pip3 install ccs-setuptest-v1 --user 4.setup-and-test(execute locally - install on server by typing in your command-line): ccs-setuptest.py
Project description
The python-based setuptest for the CYBR CSCW-SUITE (CCS) Version 0.9.6
(will use selenium & pytest. will require to be installed: python3 & ChromeDriver. Get ChromeDriver from: https://chromedriver.chromium.org/)
prepare, install & usage:
A) The short cli description (works for Linux-users - adapt accordingly if you are on Windows or Mac - or check the B) long version below)
- Be aware: you need to make the mandatory needed changes within the Conf/test_configVars.py file before you make the installation!
a) download & unzip the setuptest.zip from sourceforge:
wget https://sourceforge.net/projects/c-c-s/files/setuptest.zip/download
unzp into the ccstest/ created directory:
python3 -m zipfile -e download ccstest
b) modify the configuration-file "Conf/test_configVars.py":
open the Conf/test_configVars.py file & make the needed modifications: (at least: set the correct IP)
nano ccstest/setuptest/Conf/test_configVars.py
c) save & overwrite the test_configVars.py
d) install the ccs-setuptest:
python3 setup.py install --user
e) run the setup, install & test automation for the installed CYBR CSCW-SUITE (CCS) by typing:
setuptest.py
f) execute the ccs-setuptest, check values & click the [INSTALL] btn
=> Enjoy the test & setup-automation.
B) the longer version:
1. prepare the setup (download, unzip, modify the Conf/test_configVars.py)
https://sourceforge.net/projects/c-c-s/files/setuptest.zip/download
-
download, unzip & cd into the setuptest/
-
open the Conf/test_configVars.py with your text-editor (editor,nano,gedit,touch, whatever ...)
-
modify / exchange the dummy-values with those fitting to your own situation (eg: enter the IP of your server where you have the CCS running, exchange the SendGrid API-Key, the email & its public PGP-Key)
save / override the yet modified test_configVars.py file
2. install
-
you need the setuptools installed on your machine. Check / install via pip3:
pip3 install setuptools --user
If you are new to python & the usage of setuptools: if there is a setup.py within a python package, you simply can install it (based on the installed setuptools) with:
python3 setup.py install --user
3. run the setup, install & test automation for the installed CYBR CSCW-SUITE (CCS) by typing:
setuptest.py
4. execute the ccs-setuptest, check values & click the [INSTALL] btn**
=> Enjoy the test & setup-automation.
The setuptest will:
- Open the Conf/test_configVars.py file, so you can modify the values (The IP of your CCS, the SendGrid API-Key, E-Mail-Address & publicPGP-Key ..)
- Call the installation-script for creating the database-tables of your CCS
- Make the automated setup for your first 5 projects
- Will create a testing-project and simulate an admin who is creating a project, a WBS, creates a user-profile, testst the user's CFLX, starts to make a posting.
If not done already: install the CCS on your server:
Requirements: Linux & docker / docker-compose installed
-
from the terminal of your Linux-server / VPS (if you need one, then get one via: https://www.mvps.net/?aff=6517 - and support my server-costs)
wget sourceforge.net/projects/c-c-s/files/latest/download
docker-compose up --build
Installation & Execution of this ccs-setuptest
Requires ChromeDriver & Chrome Web-Browser to be installed - ensure to have the correct versions which fit to each other! Installation is easy - check the docs / tutorials for your local Operation System (Windows / Mac / Linux), then proceed and:
Detailed usage of the ccs-setuptest
<1st page>
- The yellow [CONTINUE] button will open the page displaying the actual setup-install values.
<2nd page>
- The yellow [SETUP] button will open the Conf/test_configVars.py file, so you can modify the values (The IP of your CCS, the SendGrid API-Key, E-Mail-Address & publicPGP-Key ..)
make the changes, save & re-run with:
setuptest.py
<2nd page>
- The red [INSTALL] button (bottom of 2nd page) will perform the installation with the values & perform a fully automated show-up-test showing and explaining you the basic functionalities for setting-up the projects as well as how to use the application.
NOTE: this will use the first slot of your CCS and populate it with an example project!
This means, your per default available projects for your productive work will be reduced to 4, unless you decide to fully delete the database-tables of projectdb1 database - and rebuild the tables by calling: https://[IP or domain]/1/zubringer/create8Tables.php
manually start & select the setup, installation & testing-scripts
At first, you need to make the settings by modifying the Conf/test_configVars.py file with the text-editor of your choice (nano, gedit, touch, editor) - then you can call the scripts via pytest
You can call the scripts manually - and only the selected one or ones from your terminal / console/ bash/ shell/ as well:
- for running all tests within the directory: pytest foldername/
eg for running all setups or running all tests:
pytest RunSetups/
or:
pytest Tests/
- for running a single test, cd to the test and type: pytest filename.py (see details below)
Setup-Scripts available:
cd RunSetups/
pytest test_ini_1_createTables.py
pytest test_ini_2_registerSuperadmin.py
pytest test_ini_3_1stProjectSetup.py
pytest test_ini_4_4ProjectsSetup.py
Walk-Through tests available (still in beta: will work, but might throw errors. Its a test-script issue then - not an application one!):
cd Tests/
pytest test_loginCreateProjectCreateWBS.py
pytest test_loginMakePosts.py
pytest test_loginPersProfileComplete.py
if you need to make changes to the Conf/test_configVars.py afterwards
YOU CANNOT SIMPLY CHANGE THE VALUES FROM WITHIN THE DOWNLOAD-FOLDER ... the installation is moving the files which are executed to an other, Operation-System-dependend place. After the installation, a change of the file - like performed via:
nano ccstest/setuptest/Conf/test_configVars.py
will have no effect.
but you can simply uninstall, delete all the unzipped setuptest folders & start from a new unzip:
-
uninstall:
pip3 uninstall ccs-setuptest-v1
-
remove all of the unzipped folders
-
unzip the downloaded setuptest.zip folder, and now you can make the changes of the Conf/test_configVars.py file
-
store the modified file
-
install the setuptest again via:
python3 setup.py install --user
-
execute via:
setuptest.py
-
click [CONTINUE], check the -yet hopefully modified- values, scroll down & click [INSTALL]
enjoy the automation.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ccs_setuptest_v1-1.1.1.tar.gz
.
File metadata
- Download URL: ccs_setuptest_v1-1.1.1.tar.gz
- Upload date:
- Size: 36.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fe3c16d0c8bd8223132b3054e93b6d8bb2beab2d1abe68586abcd75dd9f2d83 |
|
MD5 | c7a5940b3a4141c39f7f71e27a46fe43 |
|
BLAKE2b-256 | 6649c296cfa35118fda6e300ac0873f7db027c06ee0e51181004b47a6da93c48 |
File details
Details for the file ccs_setuptest_v1-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: ccs_setuptest_v1-1.1.1-py3-none-any.whl
- Upload date:
- Size: 46.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3389c9096fba23fc12de07e1594a562b3989f952a12c0ef7ffab89ff0210d0ee |
|
MD5 | 01618c40d9cd9d947d090f27af5a6e0c |
|
BLAKE2b-256 | 70699c545faa5bfcfba51564c1d27242b8bcc59f43469f71bd0229bf90e31523 |