This is a project for a cucumber related practices training. It tests against a simple web application with UI and REST api.
Install Docker and Docker-Compose. Use docker-compose from project root directory to start the system under test.
docker-compose up -d
If you are using IntelliJ Community/Educational Edition, please install Cucumber for Java
plugin for better experience.
It can be executed via IntelliJ or gradle cucumber task:
./gradlew cucumber
It tests the web using Chrome browser. During the process, it may ask for permission to open chromedriver, please permit it.
If you want to play with the application, you can open http://localhost:8100/#/signin in browser. There is no default user to login, nor the register page. you can register a user via REST api.
Use http client embedded in IntelliJ:
POST http://localhost:4000/users/signup
Accept: application/json
Content-Type: application/json
{
"email": "[email protected]",
"password": "password"
}
###
Use curl command:
curl -d '{"email": "[email protected]", "password": "password"}' -H 'Content-Type: application/json' http://localhost:4000/users/signup
Or use any other http tool you prefer, like PostMan.
It uses mysql as the database. Here is the connection information:
- User: nerd
- Password: dbs3cr3t
- Database: bbuddytest