Git Product home page Git Product logo

Comments (25)

satyayalamanchi avatar satyayalamanchi commented on August 12, 2024 1

I figured out a work around. Executing aggregate task in debug mode is resolving the issue.

from serenity-cucumber-starter.

wakaleo avatar wakaleo commented on August 12, 2024

Did you run mvn verify?

from serenity-cucumber-starter.

manjugb avatar manjugb commented on August 12, 2024

yes, I ran through mvn and i couldnt seen index.html in the serenity folder which generated

from serenity-cucumber-starter.

wakaleo avatar wakaleo commented on August 12, 2024

“Mvn verify” should generate the reports in target/site/serenity

from serenity-cucumber-starter.

manjugb avatar manjugb commented on August 12, 2024

from serenity-cucumber-starter.

anastasiia12 avatar anastasiia12 commented on August 12, 2024

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.

manjugb avatar manjugb commented on August 12, 2024

from serenity-cucumber-starter.

manjugb avatar manjugb commented on August 12, 2024

Now it worked using mvn serenity:aggregate
Thank You anastasiia12

from serenity-cucumber-starter.

wakaleo avatar wakaleo commented on August 12, 2024

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.

manjugb avatar manjugb commented on August 12, 2024

some how it doesnt worked out using mvn verify and mvn clean verify

from serenity-cucumber-starter.

wakaleo avatar wakaleo commented on August 12, 2024

What versions of maven/java are you using?

from serenity-cucumber-starter.

manjugb avatar manjugb commented on August 12, 2024

Apache Maven 3.5.2
Java version: 1.8.0_201

from serenity-cucumber-starter.

wakaleo avatar wakaleo commented on August 12, 2024

Do you get any error messages in the log?

from serenity-cucumber-starter.

manjugb avatar manjugb commented on August 12, 2024

finally it creates using mvn clean verify after i clean .m2 repository

from serenity-cucumber-starter.

PrasadNutalapati avatar PrasadNutalapati commented on August 12, 2024

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.

wakaleo avatar wakaleo commented on August 12, 2024

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.

satyayalamanchi avatar satyayalamanchi commented on August 12, 2024

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)

image

from serenity-cucumber-starter.

wakaleo avatar wakaleo commented on August 12, 2024

Try deleting the serenity-resources file in the target/site/serenity directory.

from serenity-cucumber-starter.

satyayalamanchi avatar satyayalamanchi commented on August 12, 2024

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.

sudhir-kunchakuri avatar sudhir-kunchakuri commented on August 12, 2024

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.

satyayalamanchi avatar satyayalamanchi commented on August 12, 2024

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.

sudhir-kunchakuri avatar sudhir-kunchakuri commented on August 12, 2024

image
@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.

satyayalamanchi avatar satyayalamanchi commented on August 12, 2024

Sorry for the late response.
Create a run configuration with aggregate task

image

Then select the run configuration and click on debug

image

Hope this helps.

from serenity-cucumber-starter.

sudhir-kunchakuri avatar sudhir-kunchakuri commented on August 12, 2024

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.

SannKV avatar SannKV commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.