Application for Testing of the Communication with a Records Management Service
This page describes the procedure of building a small application designed for testing of the Records Management API without the need of building the entire Datovka application.
Obtaining the Sources
Sources of testing application are distributed together with the sources of Datovka. Either download the latest source code archive or download the sources directly from the git repository. The sources of the test application are located in the tests/records_management_app directory.
After the installation you'll probably need to add the directory c:\Qt\5.9.1\mingw53_32\bin\ (or a different one if you've chosen a different installation location) into your PATH environment variable to be able to call the tools from command line.
From Command Line
To compile the sources from command line run Git Bash from the start menu. Navigate to the directory where you've cloned the repository to. Then run:
Depending on the settings you may be asked to choose the target architecture. Choose desktop.
Build -> Run qmake
Build -> Rebuild All
Running the Application
The application takes two command line arguments:
These arguments specify the location of the document service together with the user token. Both of these arguments must be supplied.
The repository contains two convenience scripts rm_test_app.sh and rm_test_app.bat. Copy those scripts into a directory where the compiled binary is located. You may edit the scripts to pass different values into the application.
The application can be run but all the services will always fail. That's because it is missing OpenSSL libraries. For more detail see here.
Locate the directory where the binary rm_test_app.exe has been created. Qt Creator usually creates a separate directory located outside the repository.
Copy the libraries libeay32.dll and ssleay32.dll into the same directory where rm_test_app.exe is located.
It is crucial that you use the libraries that came bundled with your Qt installation. The libraries can be found in the location such as c:\Qt\Tools\mingw530_32\opt\bin.
On Windows the application does not generate any text output to command-line interface.