Farmework's feature on high Level
-
Framework has designed with Maven Architecture type "Serenity" so all package has designed as per maven-serenity standard.
-
Framework is designed with latest and recommended design pattern ScreenPlay so Test cases and Test report will be very expressive.
-
Framework has JIRA integration.
-
Framework has **Data-driven support **so we write parameterized test cases.
-
Framework has support to use Cross browser on cross OS (Mac/Windows/Linux).
-
Framework has support to run test cases in Parallel Mode.
-
Framework has Cucumber integration.
-
Framework has cloud (BrowserStack) integration so we can run test cases on cloud.
-
Framework has support to customized webdriver so we can add capabilties by ourself which will not provided by serenity readymade drivers.
-
Framework is enabled with multiple Maven Profile so it will really helpful and user-friendly if we want to execute specific test cases e.g. for cucumber we can use maven profile mvn clean verify -Pcucumber.
-
We are fetching all values either from serenity.properties file or Constant.java so we don't have any hard-coded value.
-
Framework has Log enabled with Logback.
Environment Details
-
Install Java Version 8 and Maven latest version
-
Import clone project into favourite IDE(Intellij IDEA or Eclipse).
-
Install Maven Plugin for IDE (Eclipse OR Intellij IDEA)
-
Viewing the reports: Run project with
mvn clean verify serenity:aggregate
You can check generated report after execution in "/target/site"
Both of the commands provided above will produce a Serenity test report in the target/site/serenity directory. Go take a look!
- Override browser:
You can override the driver specified in the properties or configuration file from the command line. For Maven, you would use the -D option, e.g.
mvn clean verify -Dwebdriver.driver=firefox
- Execution:
a) Sequential Execution: You can can sequentially using below maven commands
mvn clean verify
b) Parallel Execution: You can execution in parallel mode using maven profile
mvn clean verify -PParallelRun
c) Cucumber based test cases Execution: You can run cucumber based test cases using maven profile
mvn clean verify -Pcucumber
- Cloud Support You can add your 'browserstack.user' and 'browserstack.key' in serenity.properties file to write test cases with browserstack.