Client side unit testing has been introduced into dbforms! Now it is possible to test client side http responses during unit tests.
How it works:
before starting unit tests, tomcat as application server is started with the bookstore application deployed.
The unit tests uses maxq and the HTTPClient package to test the responses of the server.
See tests/test/dbforms/org/bookstore
for
three example test cases.
To generate own unit tests you can use the new maven task maxq
. This task
first starts tomcat as application server and second starts maxq as recorder
of your web pages. Only thing you must do to use the recorder is to set your
proxyport
to localhost:8090
so that all request can be proxied by maxq.
For detail information see the link above.