Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to add customfields such as application version, user etc. in serenity single page html report #2081

Closed
kreigy1310garg opened this issue May 13, 2020 · 2 comments

Comments

@kreigy1310garg
Copy link

Not able to add customfields such as application version, user etc. in serenity single page html report.

I am using following version
SerenityCoreVersion = 2.1.5
SerenityScreenPlayCoreVersion = 2.1.5
SerenityCucumberVersion = 1.9.50

This is my build.gradle

repositories {
mavenCentral()
}

buildscript {
repositories {
mavenLocal()
jcenter()
}
dependencies {
classpath("net.serenity-bdd:serenity-gradle-plugin:${SerenityCoreVersion}")
classpath("net.serenity-bdd:serenity-single-page-report:${SerenityCoreVersion}")
classpath("net.serenity-bdd:serenity-json-summary-report:${SerenityCoreVersion}")
}
}

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'net.serenity-bdd.aggregator'

sourceCompatibility = 1.8
targetCompatibility = 1.8

dependencies {

testCompile "net.serenity-bdd:serenity-junit:${SerenityCoreVersion}"
testCompile "net.serenity-bdd:serenity-rest-assured:${SerenityCoreVersion}"
testCompile "net.serenity-bdd:serenity-cucumber:${SerenityCucumberVersion}"
testCompile "org.assertj:assertj-core:${assertJVersion}"
testCompile "ch.qos.logback:logback-classic:${logVersion}"
testCompile "net.serenity-bdd:serenity-core:${SerenityCoreVersion}"
testCompile "com.googlecode.json-simple:json-simple:${gsonVersion}"
testCompile "org.skyscreamer:jsonassert:${jsonAssertVersion}"
testCompile  "mysql:mysql-connector-java:${mysqlVerison}"

}

serenity {
reports = ["single-page-html","json-summary"]
}

test {
testLogging.showStandardStreams = true
}
gradle.startParameter.continueOnFailure = true

test.finalizedBy(aggregate)

Serenity.properties
report.customfields.ApplicationVersion = 1.2.3
report.customfields.environment = staging

I am able to generate the reports but not able to add the customfields . Working with windows10, openjdk 11.

could you please look into the same ?

#Request : Could you please let me know how to generate serenity reports folder with date and time using gradle. I am able to generate it using maven -surfire plugin in maven but not getting a way to the same gradle. If you have any solution for the same.

@wakaleo
Copy link
Member

wakaleo commented May 13, 2020

I can't reproduce this - try with the latest version of serenity-core and serenity-cucumber (and consider switching to Cucumber 5, we no longer support the version of Cucumber you are using).

@wakaleo
Copy link
Member

wakaleo commented May 13, 2020

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants