Comments (25)
I figured out a work around. Executing aggregate task in debug mode is resolving the issue.
from serenity-cucumber-starter.
Did you run mvn verify?
from serenity-cucumber-starter.
yes, I ran through mvn and i couldnt seen index.html in the serenity folder which generated
from serenity-cucumber-starter.
“Mvn verify” should generate the reports in target/site/serenity
from serenity-cucumber-starter.
from serenity-cucumber-starter.
I have the same issue with versions:
<serenity.version>2.0.24
<serenity.maven.version>2.0.24</serenity.maven.version>
<serenity.cucumber.version>1.9.21</serenity.cucumber.version>
Execution for the index.html doesn't work in pom. It works only when you execute in console: mvn serenity:aggregate
from serenity-cucumber-starter.
from serenity-cucumber-starter.
Now it worked using mvn serenity:aggregate
Thank You anastasiia12
from serenity-cucumber-starter.
I haven’t been able to reproduce this at all - mvn clean verify on a clean copy of the repo should generate the full reports.
from serenity-cucumber-starter.
some how it doesnt worked out using mvn verify and mvn clean verify
from serenity-cucumber-starter.
What versions of maven/java are you using?
from serenity-cucumber-starter.
Apache Maven 3.5.2
Java version: 1.8.0_201
from serenity-cucumber-starter.
Do you get any error messages in the log?
from serenity-cucumber-starter.
finally it creates using mvn clean verify after i clean .m2 repository
from serenity-cucumber-starter.
I started off with the latest serenity-cucumber-starter template project using both Eclipse and IntelliJ, and JDK 1.8_127. The same situation is happening with my testing also. The generation of index.html is random. Some time it gets generated when I run the Runner file, some times as mvn clean verify/install.
Again major problem is suddenly the IDE especially intelliJ shows one of the pageObject class as not able to resolve almost all the framework classes and their methods like
- PageObject
- WebElementFacade
- FindBy() method etc
After following the IDE suggestion that to attach serenity-core as dependency (which is already present in the pom file), the classes and methods gets resolved. But nevertheless, the running of the project gets stopped showing/citing dependency problems from pom.xml file. I never touch pom.xml file after initial project import. Why this flakiness in the framework ? How to resolve it permanently.
I happen to use the Serenity in 2017-2018 successfully. I never come across this type of problem, except logical and programmatic issues which are my responsibility !
What is the most stable version starter project in the available options ? Please help me by naming that. I will follow only that at least I can be moving ahead with my work, with out being bogged down by the framework issues.
To help improve the framework, I am not that good with the framework in the first place, sorry !
.,
from serenity-cucumber-starter.
This is an environment and/or IDE issue, it is not related to Serenity BDD or the starter project. Reports are generated by the maven report plugin, not after each individual test (see https://github.com/serenity-bdd/serenity-cucumber-starter/blob/master/README.md#generating-the-reports).
Missing dependencies are an environment or IDE issue. If it builds on the command line, it is an IDE issue, otherwise it is probably a Maven repository issue. If you need help with setting up your development environment, you can post your question on Gitter (https://gitter.im/serenity-bdd/serenity-core) or ask the Maven community (https://maven.apache.org/users/getting-help.html). If you are having issues with IntelliJ, then the IntelliJ folk are the best people to ask for help.
from serenity-cucumber-starter.
I am using gradle with spring boot. I am getting same issue. Aggregation task not generating index.html.
Sometimes the report looks good but other times index page will be either blank or show last execution data.
After getting empty report, I tried running aggregate task alone.
Surprisingly, run in IntelliJ is giving same empty result but debug is giving the correct expected result
I using the command - clean test aggregate reports.
Please let me know if I am missing anything.
buildscript {
repositories {
mavenLocal()
jcenter()
}
dependencies {
classpath("net.serenity-bdd:serenity-gradle-plugin:2.3.4")
classpath("net.serenity-bdd:serenity-single-page-report:2.3.4")
}
}
plugins {
id 'org.springframework.boot' version '2.3.4.RELEASE'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'java'
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'idea'
apply plugin: 'net.serenity-bdd.aggregator'
repositories {
mavenLocal()
jcenter()
}
group = 'com.test.qa'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
configurations.all {
resolutionStrategy {
force "io.cucumber:cucumber-core:6.6.0"
}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.20'
testCompile group: 'io.cucumber', name: 'cucumber-junit', version: '6.6.0'
compile "net.serenity-bdd:serenity-core:2.3.4",
"net.serenity-bdd:serenity-cucumber6:2.3.4"
testCompile group: 'net.serenity-bdd', name: 'serenity-spring', version: '2.3.4'
testCompile group: 'net.serenity-bdd', name: 'serenity-model', version: '2.3.4'
testCompile group: 'net.serenity-bdd', name: 'serenity-reports', version: '2.3.4'
compile group: 'org.assertj', name: 'assertj-core', version: '3.16.1'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
compile group: 'commons-httpclient', name: 'commons-httpclient', version: '3.1'
compile group: 'org.apache.poi', name: 'poi', version: '4.1.0'
compile group: 'org.apache.poi', name: 'poi-ooxml', version: '4.1.0'
compile group: 'com.github.javafaker', name: 'javafaker', version: '1.0.2'
}
serenity {
reports = ["single-page-html"]
}
test {
systemProperty "cucumber.filter.tags", System.getProperty('cucumber.filter.tags')
}
test.ignoreFailures=true
test.finalizedBy(aggregate, reports)
from serenity-cucumber-starter.
Try deleting the serenity-resources file in the target/site/serenity directory.
from serenity-cucumber-starter.
Thanks for the response.
target directory is getting deleted while clean task and created at the time of test task.
serenity-resources file gets generated after the test execution is done.
And the file is empty with 0 kb.
Please help me understand how the deletion of serenity-resources file would resolve the issue with aggregate.
Is there anything that I can to do before test execution to get aggregated report?
from serenity-cucumber-starter.
HI @satyayalamanchi
I am using Intellij tool and Gradle build for my automation project and even i face the same issue that sometimes index report is blank.
Could you please tell me what exactly you did to overcome this issue..
from serenity-cucumber-starter.
After getting a blank index report, in run configurations, I have only aggregate task and hit the debug. This is generating the report for the last executed test.
from serenity-cucumber-starter.
@satyayalamanchi ,
i have attached the screenshot of options visible after clicking on Run menu item.. can u please tell me what exactly i need to do now..?
from serenity-cucumber-starter.
Sorry for the late response.
Create a run configuration with aggregate task
Then select the run configuration and click on debug
Hope this helps.
from serenity-cucumber-starter.
Thanks @satyayalamanchi ..it worked..
please let me know when u know the permanent solution for it.. so that report will get auto generated for every execution.
from serenity-cucumber-starter.
Hello Everyone, am using intellji, after running suite form jenkin, index.html is blank, I could find above solution. I appreciate anybody resposne.
from serenity-cucumber-starter.
Related Issues (20)
- 'Test outcome unavailable' in Serenity 3.6.12 + cucumber7 + junit5
- Is there a way to use custom css for serenity reports?
- Support Doc Strings in Serenity reports HOT 1
- Display wrong list testcase in report when test failded HOT 1
- webdriver.remote.os=WINDOWS not working in Serenity 3.4.3
- Starter code not generating reports
- Cucumber Runner Class for Junit 5 Not finding tests. HOT 3
- V3.6.21 Report Broken: Scenario page that shows the steps and screenshots is showing an error page. HOT 5
- Build failing in Jenkins after update 3.9.7 HOT 1
- Once I add Manual tag in my feature file, the case that has step definitions is passed without executing HOT 8
- updated Chrome version 114 to 116 HOT 1
- Serenity reports show tab name as **Epi Cs** instead **Epics** HOT 2
- Download prompt keeps being displayed HOT 1
- Any choices if my team don't want to apply Screenplay pattern in Serenity framework HOT 2
- Can't work with SessionVariables
- How to get statistics of Serenity report
- Unable to download junit-platform-suite HOT 2
- Sereniry.reportRecordData().fromFile() is not working HOT 6
- Advice on Migrating from Cucumber to Serenity BDD
- Serenity BDD: Html report is having more number of tests than expected HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serenity-cucumber-starter.