Projects:Read Only Pool/QA
Automatic Tests
As part of the project, some new JUnit tests has been added within the DalTest class which takes care of testing different parts of the Dal API.
These new tests are intended mainly to check:
- The basic usage of the read-only pool accessible through the OBDal.getReadOnlyInstance() method.
- The modifications done in the SessionHandler class do not change the behavior of the OBDal class.
Manual Tests
The report generation has been checked, having the read-only pool both configured and not configured:
- Printing standard reports from the toolbar (Orders, Invoices, Shipments and Payments)
- Process definition reports
- Servlet based reports (HttpSecureAppServlet)
Besides, the following tests have been created in TestLink:
- https://testlink.openbravo.com/testlink/linkto.php?tprojectPrefix=Communit&item=testcase&id=Communit-10530
- https://testlink.openbravo.com/testlink/linkto.php?tprojectPrefix=Communit&item=testcase&id=Communit-10531
Performance Tests
The changes introduced in this project must be transparent in terms of performance, indeed, when the read-only pool is not configured, the standard pool will be the only pool that will be used. So in this case the behavior in the management of the database connections is not being changed. In addition, the usage of the read-only pool is relieving the load in the main database, as reports will be generated against the secondary database.
Along the testing phase of this project, it has also been verified that no connection leaks are created on report generation by monitoring the PostgreSQL statistics collector.