# Serenity with cucumber (BDD)

Last updated on : 09 Jan 2026

A guide on the prerequisites and execution of the Serenity test

## Prerequisites

1.  Java version 11
2.  Configure the environment variable for Java
3.  Maven with JUnit framework support

### Configuration

1.  Replace the credentials in pcloudySerenity.java inside the 'test' directory with the appropriate values for `username\`, `apiKey\`, and `baseUrl\`.
2.  From serenity.properties change the value of `Pcloudy_DeviceFullName\` , `platformVersion\` , `platformName\`

### Execution
To run the script, use the following command in the terminal:

```java
mvn clean
mvn verify -P single
```

Try our Sample Repository

Get a Sample Project: View on GITHUB
