-
Notifications
You must be signed in to change notification settings - Fork 0
BDD Testing
Testing is an important aspect in any application development. In this project, BDD(Behavior-driven development) Testing is used with the help of Serenity.
To test this project
-
First clone it and open the project in the SpringToolSuite.
-
Import the sub-modules present in the cloned directory seperately into your Spring IDE:
- Api : It contains all the APIs for wallets and transactions. (Working on port 8080)
- bddTest : Module for testing.
- ConnectionService : Module for connecting the Api module with the User Management Service (having APIs for User Management with Lenders and Customers)
-
After you import the sub-modules in your workspace, first run the Api module and then the ConnectionService module as a Spring Application. (The testing is implemented for the ConnectionService module which connects both Api and UserMangement services)
-
After running the appliations, start the testing with the bddTest module. It can be done in two ways:
- By selecting the module -> run as -> Maven install.
- Through Command Line, go to the bddTest module directory in the command line. Now use the command:
mvn clean install
This test module is used to test both Api module as well as UserManagement module. And thus, this will show some failed test cases which are the test cases of the UserManagement module(Which is the part of the complete project.)
So, to work on the complete project, you need to clone the UserManagement repository and import the sub-module UserManagement inside the Spring Tool Suite IDE. After importing this module, run it as a Spring Application and again do the testing with bddTest module.
This completed your testing for the application.