Java+JS demo example
Please note that at the moment:
– This demo works only for Windows 10.
– Frontend JavaScript coverage collection for automated tests works only when running headful Chrome.
#
Step 1. Clone the example repository:#
Step 2. Start Drill4J AdminAfter the installation go to Drill4J Admin: http://localhost:8091
Press “Continue as a Guest” and register agents (both Java and Node.js)

Go through the first two steps of the registration wizard and make sure that Test2Code plugin is enabled at Step 3
There is no need to specify any parameters during the registration, just click through steps leaving everything as-is.
Open sample application at: http://localhost:8080
To collect coverage run tests:
Tests will be started in a few seconds. Please wait untill the testing process finish.
See the testing results on Test2Code plugin’s page and finish active scope
to add collected coverage to your build.
#
Step 3. Deploy additional buildsYou have to deploy additional builds to discover Drill4J features:
- Tests to run;
- Risks Management;
- Time Savings;
- Baseline builds.
Deploy the 2nd build of Realworld example app:
Wait for build notification to appear (click the icon in the top-right corner).
Now you are able to see the list of Risks (uncovered new and modified methods)
and suggested Tests to Run
To collect coverage for the 2nd build run tests:
Deploy the 3rd build (optional):
To collect coverage for the 3rd build run tests:
Below you can find a command to remove RealWorld demo example:
#
For manual testing use Chrome ExtensionInstall the latest version of Chrome Extension