Application for testing ZnetDK 4 Mobile.
More than a hundred unit and acceptance test cases are executed by this application to validate the correct operation of ZnetDK 4 Mobile.
ZnetDK 4 Mobile is installed.
Go to the page Getting Started to install ZnetDK 4 Mobile.
- Download the ZIP archive of the Testing App from this GitHub repository: znetdk4mobile-test ZIP archive.
- Add a subfolder named
tests
within theINSTALL_DIR/applications/
folder of ZnetDK 4 Mobile. - Unzip the downloaded ZIP archive content within the new
INSTALL_DIR/applications/tests/
subfolder. - Create an empty MySQL database dedicated to the Testing App, named for example
z4m-tests-db
with the character setutf8mb4_unicode_ci
. - Add the ZnetDK 4 Mobile Security SQL tables to the testing database by executing the script
znetdk-security.sql
. - Edit the
INSTALL_DIR/applications/tests/app/config.php
script and configure the testing database connection by changing the values of the PHP constantsCFG_SQL_HOST
,CFG_SQL_APPL_DB
,CFG_SQL_APPL_USR
andCFG_SQL_APPL_PWD
. See Getting Started - Connecting to a Database - Configuring the Application for more information.
Once the installation is done, open your web browser and enter in the address bar, the URL of the Testing Application followed by the GET parameter ?appl=tests
.
For example:
http://localhost/znetdk4mobile/index.php?appl=tests
Next, click the Run button to start de tests.