Last updated on : 09 Jan 2026
Serenity with cucumber (BDD)
A guide on the prerequisites and execution of the Serenity test
Prerequisites
- Java version 11
- Configure the environment variable for Java
- Maven with JUnit framework support
Configuration
- Replace the credentials in pcloudySerenity.java inside the 'test' directory with the appropriate values for
username\,apiKey\, andbaseUrl\. - From serenity.properties change the value of
Pcloudy_DeviceFullName\,platformVersion\,platformName\
Execution
To run the script, use the following command in the terminal:
mvn clean
mvn verify -P single
Try our Sample Repository
Get a Sample Project: View on GITHUB
Did this page help you?