Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
ShankarSampath
@ShankarSampath
Hi Team,
Im using Pytest framework for my automation scripts & integrated with jenkins using docker. configured pipeline script for allure but when i try to build in jenkins im unable to get data in report. could someone help me out?
6 replies
anshuk584
@anshuk584

Hi team,

I'm trying to import my allure report to JIRA using Allure for JIRA plugin. But even after providing all the relevant details I can't see the Allure launches Plugin Seeing up

Below is the glimpse of Pipeline. I can See the links poping up in my report

pipeline {
agent any

stages {

    stage('Behave Step') {
        steps {

              dir("<Folder Path>") {
              bat "behave --f allure_behave.formatter:AllureFormatter -D AllureFormatter.link_pattern=<JIRA LINK>/browse/{} -o <Workspace path>/allureresults --tags=@Health_Check --no-capture"

                        }

            }
    }
    stage('Allure Setup') {

    environment {
                ALLURE_JIRA_ENDPOINT = 'http://<JIRA URL>/rest/'
                ALLURE_JIRA_LAUNCH_ENABLED = 'true'
                ALLURE_JIRA_LAUNCH_ISSUES = 'TEST-3'
                ALLURE_JIRA_USERNAME = '**********'
                ALLURE_JIRA_PASSWORD = '**********'


            }

            steps {
                        script {

        allure([
                includeProperties: true,
                jdk: '',
                commandline: '2.18.1',
                configPath: '<Config directory path>/config/allure.yml',
                properties: [[key: 'AllureFormatter.link_pattern', value: '<JIRA URL>/browse/{}']],
                reportBuildPolicy: 'ALWAYS',
                results: [[path: 'allureresults']]
        ])
                    }

            }
}
anshuk584
@anshuk584
@fescobar is it possible for you too look at the above request?
Nicolas Muller
@zepouet
Hello, after many tests we understand we can use @allure.label.suite:xxx by example into feature file with Behave. Thanks to your examples but I cannot understand if we can do the same thing with Java Cucumber because into example I found nothing like this. Is it possible or not ? Thanks a lot
ShankarSampath
@ShankarSampath
HI ,
im getting below error in in jenkins console log. could someone help me.
image.png
6 replies
fescobar
@fescobar
workspace.png
31 replies
@ShankarSampath check that and locate your results files
ShankarSampath
@ShankarSampath
Sure. Thanks
Darius Lapūnas
@DariusL

Hey, quick question.

[rule-analysis-nightly] $ /home/ec2-user/tools/ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation/allure/bin/allure generate /home/ec2-user/workspace/rule-analysis-nightly/allure-results -c -o /home/ec2-user/workspace/rule-analysis-nightly/allure-report
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
...
Error when executing always post condition:
ru.yandex.qatools.allure.jenkins.exception.AllurePluginException: Can not generate Allure Report, exit code: 1
...

The allure step on jenkins runs out of memory. Pretty sure this is valid, since I threw 5000 tests at it with quite a bit of log. How do I give it more memory? I assume it's a settings problem, since the machine has 16GB and I can provision more if needed.

3 replies
Dmytro Verbytskyi
@dverbytskyi
Has anyone got the allure report working via Azure DevOps?
3 replies
David Tran
@iso13
Can Allure reports roll up into a single json file?
Eric Kanimba
@ekanimba
Screenshot 2022-11-30 at 14.08.34.png
started to get this error. does any one know why/
Mikhail Makarenko
@yammakar_twitter
Hi gentlemen,
I'm getting SSLHandshakeException during 'downloadAllure' task executuion. Does anyone can help me out? Thanks
Keerat Lalia
@klalia
Screenshot 2022-12-02 at 09.36.18.png
Hello all, I have been trying to connect allure with github actions and have completed all the steps but the report generates an unknown report with no information
does anyone know how I could fix this issue?
47 replies
ShankarSampath
@ShankarSampath
image.png
@fescobar
im able to locate the folder in workspace and folder is matching with configured folder path.but still unable to get result . let me share the screenshot
fescobar
@fescobar
image.png
image.png
1 reply
ShankarSampath
@ShankarSampath
@fescobar , as per your input i had configured all the setting & updated the path for allure and removed unwanted folder from workspace server. but still unable to get allure report. guide me what i doing wrong
30 replies
fescobar
@fescobar
image.png
ShankarSampath
@ShankarSampath
image.png
fescobar
@fescobar
image.png
vlad230
@vlad230
@baev @fescobar any chance you can take a look over this please: allure-framework/allure-java#156 ?
vlad230
@vlad230
please check the last comment
maldm01
@maldm01
hello,
have a jenkinsFIle and would like to use slackSend to send failed/broken/skipped etc count to channel
how can i get those numbers from allure in jenkinsFile?
for now we have
AbstractTestResultAction testResultAction = currentBuild.rawBuild.getAction(AbstractTestResultAction.class)
but there is only failed/skipped/passed statuses. no broken status
tia
Dmitry Baev
@baev
@vlad230 please do not comment on closed issues, create a discussion instead
parapand
@parapand

I have two different pipelines in Jenkins and allure results are generating fine for one pipeline but not another. I could see the test cases as zero in the B pipeline while A pipeline is displaying allure report with some non-zero test cases . I am using the same repo/same branch and the same snippet for allure-results B pipeline:
[] $ /var/lib/jenkins/tools/ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation/Allure/bin/allure generate -c -o /var/lib/jenkins/workspace//allure-report
allure-results does not exist
Report successfully generated to /var/lib/jenkins/workspace/*/allure-report
Allure report was successfully generated.
Creating artifact for the build.
Artifact was added to the build.

A pipeline:

[] $ /var/lib/jenkins/tools/ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation/Allure/bin/allure generate /var/lib/jenkins/workspace//allure-results -c -o /var/lib/jenkins/workspace//allure-report
Report successfully generated to /var/lib/jenkins/workspace/
/allure-report
Allure report was successfully generated.
Creating artifact for the build.
Artifact was added to the build.

Below code I have used in both the pipeline for allure:

        script {
            ws("${WORKSPACE}/"){
            allure([
                    includeProperties: false,
                    jdk: '',
                    properties: [],
                    reportBuildPolicy: 'ALWAYS',
                    results: [[path: ""${WORKSPACE}/allure-results""]]
                    ])
        }
        }
        deleteDir()
    }
Sergei Bykov
@baks_man_es_twitter
Did anyone have an experience with allure publishing as a static page via GitHub actions? without external market libraries?
Camille Louise
@lionelmary:matrix.org
[m]

"I'll help anyone interested on how to earn 80k or more in just 72hours from the crypto Trade, if interested send me a direct message via WhatsApp by asking me HOW for more details on how to get started

+1 (201) 870‑4619

wbigno
@wbigno
looking for an option to take 4 pipelines that I run in Jenkins nightly, and combine all the allure reports into one so I can have sort of a combines dashboard for all my automation runs.. has anyone ever don this or have any ideas?
Edi
@_freeman_12_twitter

Hi everyone here
I work as Test developer engineer and do automation API testing with JMeter,
I want to generate my test result with Allure in Test pipeline
I already use Docker for running my JMeter test cases and in my JMeter files I put command that Generate Allure results in allure-results folder
and I'm able to generate Allure report locally with command: allure generate allure-results --clean -o allure-report and then run this command for see that: allure open allure-report

But I want do same thing when I run test pipeline, I'm not familiar with Docker and Docker compos and want to know if anybody can help me with that? I already find some source that they use docker compos but Its hard for me to change that to work on my project!
BR

Edi
@_freeman_12_twitter
@baks_man_es_twitter
did u find the solution?
1 reply
Mikhail Makarenko
@yammakar_twitter
Hi all,
Do you know how can I gather allure-results from several modules? using Gradle, thx
1 reply
Aliaksei Misuna
@iiice_33_twitter

Hello all,

I faced with issue during generate allure report on Jenkins :
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.base/java.util.LinkedHashMap.newNode(LinkedHashMap.java:256) at java.base/java.util.HashMap.putVal(HashMap.java:637) at java.base/java.util.HashMap.put(HashMap.java:607) at com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringKeyMap(MapDeserializer.java:630) at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:449) at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:32) at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:323) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4730) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3722) at io.qameta.allure.history.HistoryPlugin.readResults(HistoryPlugin.java:77) at io.qameta.allure.ReportGenerator.lambda$readResults$0(ReportGenerator.java:47) at io.qameta.allure.ReportGenerator$$Lambda$203/0x0000000800254040.accept(Unknown Source) at java.base/java.util.ArrayList.forEach(ArrayList.java:1540) at io.qameta.allure.ReportGenerator.readResults(ReportGenerator.java:47) at io.qameta.allure.ReportGenerator$$Lambda$200/0x0000000800255040.apply(Unknown Source) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) at io.qameta.allure.ReportGenerator.generate(ReportGenerator.java:69) at io.qameta.allure.ReportGenerator.generate(ReportGenerator.java:58) at io.qameta.allure.Commands.generate(Commands.java:103) at io.qameta.allure.CommandLine.run(CommandLine.java:160) at io.qameta.allure.CommandLine$$Lambda$91/0x0000000800113040.get(Unknown Source) at java.base/java.util.Optional.orElseGet(Optional.java:369) at io.qameta.allure.CommandLine.main(CommandLine.java:92) Can not generate Allure Report, exit code: 1

Which parameter I should specify to give more memory allure app?

I saw - https://stackoverflow.com/questions/51262801/java-lang-outofmemoryerror-when-generating-allure-report - but that not helped me. Thank you !

Carl Noval
@carlnoval

Hey everyone 👋

I am running into this error Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlElement when generating the report via mvn allure:serve.

Entire error stack trace and my POM file is in the thread.

So far I have tried these solutions but none of them worked:

Thanks in advance.

4 replies
jradom
@jradom
Hello All. I use Allure reports with Java 18, Cucumber 7. I can generate reports OK but keep getting these errors and don't know how to get rid of them ERROR io.qameta.allure.AllureLifecycle - Could not update step: no step running
ERROR io.qameta.allure.AllureLifecycle - Could not stop step: no step running Any help will be greatly appreciated
Anyul Rivas
@anyulled_twitter
Hi community, would you mind sharing with me some documentation on how to send allure report to Jira? I'm working with Java, but can't find related information through the docs. Right now we only display the report in Jenkins
cristopher0820
@cristopher0820
Hey team, I want to know where can I find or generate the .\allure-results\widgets\summary.json in a wdio project?
MaxCio
@Maaaax_C_twitter

Hi all,
I am using Allure with testng.
reports are generated successfully, but if i change any parameter under test in testng.xml, in the report I will get 2 different executions
If i execute scenario with the same parameters in testng.xml, i will see single execution and in history i will se execution history

anyone faced the same issue?

image.png
abdeldeh2021
@abdeldeh2021
Hi all,
we are using allure report with bamboo data center 9.1
the report is created but the Allure Report tab does not appear in results.
Thank for help.
eddiep
@eddiep:matrix.org
[m]
Hi, when I run allure serve my reports aren't showing up, the ip comes up as 192.xx and I can't view the reports. So, I'm wondering is there a way I can configure the reports to come up on my local host 127.0.0.1? I checked online but haven't had any success finding this yet.
Qameta Software
@QametaSoftware_twitter

On the 26th of January, we are going to have a free online-meetup and discuss the very first steps of Allure TestOps with trailblazers from the Wrike team, and which tools and approaches help to keep performance sane.

We will also discuss the challenges the team of 16 SDETs faces doing more than 3000 runs per month for 64k (45k E2E Selenium tests and 19k rest/api tests) of tests. Feel free to join in: https://www.events.qameta.io/

eddiep
@eddiep:matrix.org
[m]
figured out my issue, the answer is: allure serve -h localhost
Nilson Silva
@nson22

Hello
I had my java env set on

E:\Java\jdk
Now I had to change to my

C:\Program Files\Java\jdk-19.0.2\
But when I try to run my report I got this error message

ERROR: JAVA_HOME is set to an invalid directory: E:\Java\jdk
How can I fix? I want to maintain C:\Program Files\Java\jdk-19.0.2

Denis🇺🇸
@lllepemetbeb_twitter

Hi
I'm trying to use allure-jasmine.
When I try to add a screenshot after the test I only get an image in the allure-result folder but the attachments array is empty in the result.json file.
The code I'm using:

let JasmineAllureReporter = require("allure-jasmine").JasmineAllureReporter;
const reporter = new JasmineAllureReporter({
    resultsDir: "allure-results",
});
jasmine.getEnv().addReporter(reporter);
jasmine.getEnv().afterEach(function(done){
    driver.takeScreenshot().then(function (png) {
    let buf = new Buffer(png, 'base64');
    reporter.writeAttachment(buf, 'image/png');
      done();
    })
  });

How can I add a screenshot after tests?
To be more precise: How can I add a screenshot only for failed tests?