allure-framework / allure2

Allure Report is a flexible, lightweight multi-language test reporting tool. It provides clear graphical reports and allows everyone involved in the development process to extract the maximum of information from the everyday testing process
https://allurereport.org/
Apache License 2.0
4.21k stars 713 forks source link

Allure Custom report name #804

Closed rkchunduri closed 9 months ago

rkchunduri commented 6 years ago

[//]: # ( . Note: for support questions, please use Stackoverflow or Gitter. . This repository's issues are reserved for feature requests and bug reports. . . In case of any problems with Allure Jenkins plugin please use the following repository . to create an issue: https://github.com/jenkinsci/allure-plugin/issues . . Make sure you have a clear name for your issue. The name should start with a capital . letter and no dot is required in the end of the sentence. An example of good issue names: . . - The report is broken in IE11 . - Add an ability to disable default plugins . - Support emoji in test descriptions ) How can we customize report name using Allure 2 ? method "processEnvironmentXml" used to read from "environment.xml" is removed in Allure 2.

I'm submitting a ...

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

What is the expected behavior?

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Allure version 2.26

Other information

[//]: # ( . e.g. detailed explanation, stacktraces, related issues, suggestions . how to fix, links for us to have more context, eg. Stackoverflow, Gitter etc )

symonk commented 6 years ago

I think this functionality is broken currently, a simple solution in the short term is to just clone the repo, modify the data and rebuild it, then use this. I have overriden both logo / report name and various other pieces of data in the report which is compiled and used locally by me until there is a PR to fix these issue(s)

BenZCryptoEngineer commented 6 years ago

I met the same issue as well, find no way to modify the report title.

rkchunduri commented 6 years ago

I modified the title by taking their code base. It is working for me now

On Thu, Nov 8, 2018 at 12:33 PM benzhou2014 notifications@github.com wrote:

I met the same issue as well, find no way to modify the report title.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/allure-framework/allure2/issues/804#issuecomment-437107725, or mute the thread https://github.com/notifications/unsubscribe-auth/AFG9EA0tyKMejm9MREhroiK9Ztn5Ww0uks5utHkBgaJpZM4UlMXm .

-- Sent from my iPhone

BenZCryptoEngineer commented 6 years ago

After import code base and I ran build.gradle for each sub-project. However I always got the following issue:

Configure project :allure-generator start up development server on localhost:3000 (demo) Configuration archives specified but does not exist in project :. Configuration(s) specified but the install task does not exist in project :.

Task :help

Welcome to Gradle 4.8.1.

To run a build, run gradle ...

To see a list of available tasks, run gradle tasks

To see a list of command-line options, run gradle --help

To see more detail about a task, run gradle help --task

And I checked 'Bin' folder, nothing is complied.

BenZCryptoEngineer commented 6 years ago

Working Directory: /home/ben/Downloads/allure2-master Gradle User Home: /home/ben/Downloads/allure2-master/gradle Gradle Distribution: Specific Gradle version 4.8.1 Gradle Version: 4.8.1 Java Home: /usr/lib/jvm/java-11-openjdk-amd64 JVM Arguments: None Program Arguments: None Build Scans Enabled: false Offline Mode Enabled: false Gradle Tasks: initQualityConfig

Download https://jcenter.bintray.com/com/bmuschko/gradle-docker-plugin/3.2.4/gradle-docker-plugin-3.2.4.pom Download https://jcenter.bintray.com/ru/vyarus/gradle-quality-plugin/3.1.0/gradle-quality-plugin-3.1.0.pom Download https://jcenter.bintray.com/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.8.0/gradle-bintray-plugin-1.8.0.pom Download https://jcenter.bintray.com/io/spring/gradle/dependency-management-plugin/1.0.5.RELEASE/dependency-management-plugin-1.0.5.RELEASE.pom Download https://jcenter.bintray.com/net/researchgate/gradle-release/2.6.0/gradle-release-2.6.0.pom Download https://plugins.gradle.org/m2/com/moowork/gradle/gradle-node-plugin/1.2.0/gradle-node-plugin-1.2.0.pom Download https://plugins.gradle.org/m2/gradle/plugin/com/github/spotbugs/spotbugs-gradle-plugin/1.6.2/spotbugs-gradle-plugin-1.6.2.pom Download https://jcenter.bintray.com/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.pom Download https://jcenter.bintray.com/org/codehaus/groovy/modules/http-builder/http-builder/0.7.2/http-builder-0.7.2.pom Download https://jcenter.bintray.com/org/apache/maven/maven-parent/19/maven-parent-19.pom Download https://jcenter.bintray.com/org/apache/apache/9/apache-9.pom Download https://jcenter.bintray.com/com/github/spotbugs/spotbugs/3.1.3/spotbugs-3.1.3.pom Download https://jcenter.bintray.com/net/sourceforge/nekohtml/nekohtml/1.9.16/nekohtml-1.9.16.pom Download https://jcenter.bintray.com/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.pom Download https://jcenter.bintray.com/net/sf/json-lib/json-lib/2.3/json-lib-2.3.pom Download https://jcenter.bintray.com/org/apache/apache/3/apache-3.pom Download https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.2.1/httpclient-4.2.1.pom Download https://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-client/4.2.1/httpcomponents-client-4.2.1.pom Download https://jcenter.bintray.com/org/apache/httpcomponents/project/6/project-6.pom Download https://jcenter.bintray.com/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.pom Download https://jcenter.bintray.com/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.pom Download https://jcenter.bintray.com/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.pom Download https://jcenter.bintray.com/org/codehaus/plexus/plexus/2.0.2/plexus-2.0.2.pom Download https://jcenter.bintray.com/org/codehaus/plexus/plexus-containers/1.0.3/plexus-containers-1.0.3.pom Download https://jcenter.bintray.com/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom Download https://jcenter.bintray.com/org/apache/ant/ant/1.8.0/ant-1.8.0.pom Download https://jcenter.bintray.com/org/apache/maven/maven-error-diagnostics/2.2.1/maven-error-diagnostics-2.2.1.pom Download https://jcenter.bintray.com/org/apache/maven/maven-model/2.2.1/maven-model-2.2.1.pom Download https://jcenter.bintray.com/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.pom Download https://jcenter.bintray.com/org/apache/ant/ant-parent/1.8.0/ant-parent-1.8.0.pom Download https://jcenter.bintray.com/org/apache/maven/maven/2.2.1/maven-2.2.1.pom Download https://jcenter.bintray.com/org/apache/maven/maven-artifact-manager/2.2.1/maven-artifact-manager-2.2.1.pom Download https://jcenter.bintray.com/org/apache/maven/maven-settings/2.2.1/maven-settings-2.2.1.pom Download https://jcenter.bintray.com/org/apache/maven/maven-project/2.2.1/maven-project-2.2.1.pom Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon-file/1.0-beta-6/wagon-file-1.0-beta-6.pom Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon-http-lightweight/1.0-beta-6/wagon-http-lightweight-1.0-beta-6.pom Download https://jcenter.bintray.com/org/codehaus/plexus/plexus-components/1.1.14/plexus-components-1.1.14.pom Download https://jcenter.bintray.com/org/apache/maven/maven-parent/11/maven-parent-11.pom Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon-providers/1.0-beta-6/wagon-providers-1.0-beta-6.pom Download https://jcenter.bintray.com/org/apache/apache/5/apache-5.pom Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon-provider-api/1.0-beta-6/wagon-provider-api-1.0-beta-6.pom Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon/1.0-beta-6/wagon-1.0-beta-6.pom Download https://jcenter.bintray.com/org/apache/maven/maven-artifact/2.2.1/maven-artifact-2.2.1.pom Download https://jcenter.bintray.com/org/dom4j/dom4j/2.1.0/dom4j-2.1.0.pom Download https://jcenter.bintray.com/org/apache/bcel/bcel/6.2/bcel-6.2.pom Download https://jcenter.bintray.com/jaxen/jaxen/1.1.6/jaxen-1.1.6.pom Download https://jcenter.bintray.com/org/ow2/asm/asm/6.1.1/asm-6.1.1.pom Download https://jcenter.bintray.com/org/apache/commons/commons-parent/42/commons-parent-42.pom Download https://jcenter.bintray.com/org/sonatype/oss/oss-parent/7/oss-parent-7.pom Download https://jcenter.bintray.com/org/ow2/asm/asm-analysis/6.1.1/asm-analysis-6.1.1.pom Download https://jcenter.bintray.com/org/ow2/asm/asm-commons/6.1.1/asm-commons-6.1.1.pom Download https://jcenter.bintray.com/org/ow2/asm/asm-tree/6.1.1/asm-tree-6.1.1.pom Download https://jcenter.bintray.com/org/ow2/asm/asm-xml/6.1.1/asm-xml-6.1.1.pom Download https://jcenter.bintray.com/org/ow2/asm/asm-util/6.1.1/asm-util-6.1.1.pom Download https://jcenter.bintray.com/commons-lang/commons-lang/2.6/commons-lang-2.6.pom Download https://jcenter.bintray.com/org/apache/commons/commons-parent/17/commons-parent-17.pom Download https://jcenter.bintray.com/org/apache/apache/18/apache-18.pom Download https://jcenter.bintray.com/org/ow2/ow2/1.5/ow2-1.5.pom Download https://jcenter.bintray.com/org/apache/apache/7/apache-7.pom Download https://jcenter.bintray.com/com/google/code/findbugs/jFormatString/3.0.0/jFormatString-3.0.0.pom Download https://jcenter.bintray.com/com/github/spotbugs/spotbugs-annotations/3.1.3/spotbugs-annotations-3.1.3.pom Download https://jcenter.bintray.com/net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.pom Download https://jcenter.bintray.com/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom Download https://jcenter.bintray.com/org/apache/commons/commons-parent/5/commons-parent-5.pom Download https://jcenter.bintray.com/org/apache/apache/4/apache-4.pom Download https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.2.1/httpcore-4.2.1.pom Download https://jcenter.bintray.com/commons-codec/commons-codec/1.6/commons-codec-1.6.pom Download https://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-core/4.2.1/httpcomponents-core-4.2.1.pom Download https://jcenter.bintray.com/org/apache/commons/commons-parent/22/commons-parent-22.pom Download https://jcenter.bintray.com/net/sf/ezmorph/ezmorph/1.0.6/ezmorph-1.0.6.pom Download https://jcenter.bintray.com/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.pom Download https://jcenter.bintray.com/org/apache/commons/commons-parent/9/commons-parent-9.pom Download https://jcenter.bintray.com/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.pom Download https://jcenter.bintray.com/org/apache/commons/commons-parent/11/commons-parent-11.pom Download https://jcenter.bintray.com/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.pom Download https://jcenter.bintray.com/org/apache/ant/ant-launcher/1.8.0/ant-launcher-1.8.0.pom Download https://jcenter.bintray.com/org/apache/maven/maven-repository-metadata/2.2.1/maven-repository-metadata-2.2.1.pom Download https://jcenter.bintray.com/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.pom Download https://jcenter.bintray.com/org/apache/maven/maven-profile/2.2.1/maven-profile-2.2.1.pom Download https://jcenter.bintray.com/org/apache/maven/maven-plugin-registry/2.2.1/maven-plugin-registry-2.2.1.pom Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon-http-shared/1.0-beta-6/wagon-http-shared-1.0-beta-6.pom Download https://jcenter.bintray.com/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.pom Download https://jcenter.bintray.com/junit/junit/3.8.1/junit-3.8.1.pom Download https://jcenter.bintray.com/nekohtml/xercesMinimal/1.9.6.2/xercesMinimal-1.9.6.2.pom Download https://jcenter.bintray.com/nekohtml/nekohtml/1.9.6.2/nekohtml-1.9.6.2.pom Download https://plugins.gradle.org/m2/com/moowork/gradle/gradle-node-plugin/1.2.0/gradle-node-plugin-1.2.0.jar Download https://jcenter.bintray.com/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar Download https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.2.1/httpclient-4.2.1.jar Download https://jcenter.bintray.com/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.8.0/gradle-bintray-plugin-1.8.0.jar Download https://plugins.gradle.org/m2/gradle/plugin/com/github/spotbugs/spotbugs-gradle-plugin/1.6.2/spotbugs-gradle-plugin-1.6.2.jar Download https://jcenter.bintray.com/net/sourceforge/nekohtml/nekohtml/1.9.16/nekohtml-1.9.16.jar Download https://jcenter.bintray.com/net/researchgate/gradle-release/2.6.0/gradle-release-2.6.0.jar Download https://jcenter.bintray.com/io/spring/gradle/dependency-management-plugin/1.0.5.RELEASE/dependency-management-plugin-1.0.5.RELEASE.jar Download https://jcenter.bintray.com/net/sf/json-lib/json-lib/2.3/json-lib-2.3-jdk15.jar Download https://jcenter.bintray.com/ru/vyarus/gradle-quality-plugin/3.1.0/gradle-quality-plugin-3.1.0.jar Download https://jcenter.bintray.com/com/bmuschko/gradle-docker-plugin/3.2.4/gradle-docker-plugin-3.2.4.jar Download https://jcenter.bintray.com/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar Download https://jcenter.bintray.com/com/github/spotbugs/spotbugs/3.1.3/spotbugs-3.1.3.jar Download https://jcenter.bintray.com/org/apache/ant/ant/1.8.0/ant-1.8.0.jar Download https://jcenter.bintray.com/org/apache/maven/maven-artifact-manager/2.2.1/maven-artifact-manager-2.2.1.jar Download https://jcenter.bintray.com/org/apache/maven/maven-project/2.2.1/maven-project-2.2.1.jar Download https://jcenter.bintray.com/org/apache/maven/maven-error-diagnostics/2.2.1/maven-error-diagnostics-2.2.1.jar Download https://jcenter.bintray.com/org/apache/maven/maven-settings/2.2.1/maven-settings-2.2.1.jar Download https://jcenter.bintray.com/org/apache/maven/maven-profile/2.2.1/maven-profile-2.2.1.jar Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon-file/1.0-beta-6/wagon-file-1.0-beta-6.jar Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon-http-lightweight/1.0-beta-6/wagon-http-lightweight-1.0-beta-6.jar Download https://jcenter.bintray.com/org/apache/maven/maven-artifact/2.2.1/maven-artifact-2.2.1.jar Download https://jcenter.bintray.com/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar Download https://jcenter.bintray.com/org/apache/maven/maven-plugin-registry/2.2.1/maven-plugin-registry-2.2.1.jar Download https://jcenter.bintray.com/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.jar Download https://jcenter.bintray.com/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar Download https://jcenter.bintray.com/org/apache/maven/maven-model/2.2.1/maven-model-2.2.1.jar Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon-http-shared/1.0-beta-6/wagon-http-shared-1.0-beta-6.jar Download https://jcenter.bintray.com/org/apache/maven/maven-repository-metadata/2.2.1/maven-repository-metadata-2.2.1.jar Download https://jcenter.bintray.com/org/apache/maven/wagon/wagon-provider-api/1.0-beta-6/wagon-provider-api-1.0-beta-6.jar Download https://jcenter.bintray.com/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar Download https://jcenter.bintray.com/org/ow2/asm/asm-xml/6.1.1/asm-xml-6.1.1.jar Download https://jcenter.bintray.com/org/ow2/asm/asm-commons/6.1.1/asm-commons-6.1.1.jar Download https://jcenter.bintray.com/org/ow2/asm/asm-util/6.1.1/asm-util-6.1.1.jar Download https://jcenter.bintray.com/jaxen/jaxen/1.1.6/jaxen-1.1.6.jar Download https://jcenter.bintray.com/net/sf/ezmorph/ezmorph/1.0.6/ezmorph-1.0.6.jar Download https://jcenter.bintray.com/commons-lang/commons-lang/2.6/commons-lang-2.6.jar Download https://jcenter.bintray.com/org/ow2/asm/asm-analysis/6.1.1/asm-analysis-6.1.1.jar Download https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.2.1/httpcore-4.2.1.jar Download https://jcenter.bintray.com/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.jar Download https://jcenter.bintray.com/org/ow2/asm/asm-tree/6.1.1/asm-tree-6.1.1.jar Download https://jcenter.bintray.com/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar Download https://jcenter.bintray.com/commons-codec/commons-codec/1.6/commons-codec-1.6.jar Download https://jcenter.bintray.com/org/ow2/asm/asm/6.1.1/asm-6.1.1.jar Download https://jcenter.bintray.com/net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.jar Download https://jcenter.bintray.com/org/apache/bcel/bcel/6.2/bcel-6.2.jar Download https://jcenter.bintray.com/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar Download https://jcenter.bintray.com/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar Download https://jcenter.bintray.com/com/github/spotbugs/spotbugs-annotations/3.1.3/spotbugs-annotations-3.1.3.jar Download https://jcenter.bintray.com/com/google/code/findbugs/jFormatString/3.0.0/jFormatString-3.0.0.jar Download https://jcenter.bintray.com/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar Download https://jcenter.bintray.com/org/dom4j/dom4j/2.1.0/dom4j-2.1.0.jar Download https://jcenter.bintray.com/org/apache/ant/ant-launcher/1.8.0/ant-launcher-1.8.0.jar Download https://jcenter.bintray.com/org/codehaus/groovy/modules/http-builder/http-builder/0.7.2/http-builder-0.7.2.jar Download https://jcenter.bintray.com/nekohtml/xercesMinimal/1.9.6.2/xercesMinimal-1.9.6.2.jar Download https://jcenter.bintray.com/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar Download https://jcenter.bintray.com/junit/junit/3.8.1/junit-3.8.1.jar Download https://jcenter.bintray.com/nekohtml/nekohtml/1.9.6.2/nekohtml-1.9.6.2.jar

Configure project :allure-generator start up development server on localhost:3000 (demo) Configuration archives specified but does not exist in project :. Configuration(s) specified but the install task does not exist in project :.

Task :allure-commandline:initQualityConfig Task :allure-generator:initQualityConfig Task :allure-jira-commons:initQualityConfig Task :allure-plugin-api:initQualityConfig Task :behaviors-plugin:initQualityConfig Task :custom-logo-plugin:initQualityConfig Task :jira-plugin:initQualityConfig Task :junit-xml-plugin:initQualityConfig Task :packages-plugin:initQualityConfig Task :screen-diff-plugin:initQualityConfig Task :trx-plugin:initQualityConfig Task :xctest-plugin:initQualityConfig Task :xray-plugin:initQualityConfig Task :xunit-xml-plugin:initQualityConfig

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.8.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 16s 14 actionable tasks: 14 executed

Could not find the output files and looks like build failed?

rkchunduri commented 6 years ago

CAn you give me the list of projects on which you are running this gradlle task. I don’t think it requires all projects to build

On Thu, Nov 8, 2018 at 5:17 PM benzhou2014 notifications@github.com wrote:

After import code base and I ran build.gradle for each sub-project. However I always got the following issue:

Configure project :allure-generator start up development server on localhost:3000 (demo) Configuration archives specified but does not exist in project :. Configuration(s) specified but the install task does not exist in project :.

Task :help

Welcome to Gradle 4.8.1.

To run a build, run gradle ...

To see a list of available tasks, run gradle tasks

To see a list of command-line options, run gradle --help

To see more detail about a task, run gradle help --task

And I checked 'Bin' folder, nothing is complied.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/allure-framework/allure2/issues/804#issuecomment-437191967, or mute the thread https://github.com/notifications/unsubscribe-auth/AFG9ELrbU3T4S8We8QDcGgKaYA0CdvSNks5utLulgaJpZM4UlMXm .

-- Sent from my iPhone

BenZCryptoEngineer commented 6 years ago

Hi rkchunduri,

Just want to rebuild the task: allure2 report, but looks like it contains Task :allure-generator etc all listed above.

Inside the eclipse configuration, I can choose which version of gradle I could use to compile. Can you share the configuration of the runner with me.

Thanks,

BEn

rkchunduri commented 6 years ago

Can you send me the screenshot of the configuration

On Fri, Nov 9, 2018 at 1:35 PM benzhou2014 notifications@github.com wrote:

Hi rkchunduri,

Just want to rebuild the task: allure2 report, but looks like it contains Task :allure-generator etc all listed above.

Inside the eclipse configuration, I can choose which version of gradle I could use to compile. Can you share the configuration of the runner with me.

Thanks,

BEn

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/allure-framework/allure2/issues/804#issuecomment-437470946, or mute the thread https://github.com/notifications/unsubscribe-auth/AFG9EKgDd_M_mlVGXLGoIzcVkxwmB3N8ks5utdj0gaJpZM4UlMXm .

-- Sent from my iPhone

BenZCryptoEngineer commented 6 years ago

screenshot from 2018-11-09 16-29-52 screenshot from 2018-11-09 15-38-32

chuanding commented 5 years ago

Hi @rkchunduri Have you successfully changed the report name? I met the same issue as well, can you give me a suggestion?

rkchunduri commented 5 years ago

Yes I changed it. Can you tell me your approach?

On Sun, Dec 2, 2018 at 7:48 PM Dean Si notifications@github.com wrote:

Hi @rkchunduri https://github.com/rkchunduri Have you successfully changed the report name? I met the same issue as well, can you give me a suggestion?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/allure-framework/allure2/issues/804#issuecomment-443564944, or mute the thread https://github.com/notifications/unsubscribe-auth/AFG9EG9qAwRbFXfR35kR1fqR4VHTgSIWks5u1ILlgaJpZM4UlMXm .

-- Sent from my iPhone

omsuhas commented 5 years ago

I have changed the title by cloning the repository from git and built a local copy. (I am using Windows OS).

Prerequisite

  1. Gradle Version 5.2.1-https://gradle.org/releases/
  2. Node Js-https://nodejs.org/en/download/ -npm -6.4.1

After installing prerequisite please follow below steps

  1. Clone the repository- Link: https://github.com/allure-framework/allure2.git
  2. Assume the repository is saved locally under C:\allure2-2.10.0
  3. Navigate to C:\allure2-2.10.0\allure-generator\src\main\java\io\qameta\allure\summary
  4. Edit SummaryPlugin.Java file with any text editor
  5. Search forsetReportName("Allure Report"); and change to whatever name you want to give. Example setReportName("Automation Report")and save that file
  6. Navigate to C:\allure2-2.10.0\allure-generator
  7. Open command prompt (cmd) from this folder.Type gradle build and hit enter
  8. Wait for few mins till it builds. It takes around 20 mins.
  9. Navigate to c:\allure2-2.10.0\allure-generator\build\libs
  10. Copy newly created file in build\libs folder allure-generator-2.10.0.jar file
  11. I have installed manually from https://docs.qameta.io/allure/#_manual_installation
  12. Navigate to allure-2.10.0\allure-2.10.0\lib and override allure-generator-2.10.0.jar file with the file created newly from the gradle build folder Generate reports to get new customised title. image

Hope It helps ! Thanks

Sanjiv12 commented 4 years ago

I have the allure-generator-2.13.0 an inside the jar there is only the class file. So I decomplie that file when we again compile the jave file there are some dependencies on other file. so unable to compile it. can u have any other wor around

kartnan commented 3 years ago

Since there's no way to replace the report title currently, other than recompiling the code, I wrote a python program to change the report name after the report generation. I run this script before serving the report

title = "My New Report"
with open('target\\allure-report\\widgets\\summary.json','r+') as report:
   x = report.read().replace("Allure Report", title)
with open('target\\allure-report\\widgets\\summary.json','w+') as report:
    report.write(x)
baev commented 9 months ago

fixed by #2229