当汇总测试结果以生成报告时,Serenity-BDD Jira插件找不到父项需求

时间:2019-04-05 17:33:21

标签: java jira qa serenity-bdd cucumber-serenity

我正在尝试整合Jira和Selenium-BDD。我在建立报告时遇到了问题。 Serenity是成功与Jira联系并与孩子一起阅读需求的方法,但是Serenity构建HTML报告时无法为每个已建立的需求阅读父项。并且该报告没有显示需求的测试范围。我将不胜感激。

我的宁静属性

serenity.requirement.types=Epic, Story
serenity.jira.workflow.active=true
serenity.jira.workflow=workflow.groovy
serenity.jira.always.create.new.comment=false

jira.url=http://localhost:8888
jira.project=HC
jira.username=admin
jira.password=admin
jira.root.issue.type=Epic
jira.custom.field.1=Acceptance Criteria
jira.requirement.links=Epic Link, parent of

Maven构建专家

[DEBUG] LOADING LOCAL PROPERTIES FROM /home/bohdan/Projects/IdeaProjects/Automation/heatclinic-new-site-demo/serenity.properties 
[DEBUG] LOADING LOCAL PROPERTIES FROM /home/bohdan/Projects/IdeaProjects/Automation/heatclinic-new-site-demo/serenity.properties 
[DEBUG] LOADING LOCAL PROPERTIES FROM /home/bohdan/Projects/IdeaProjects/Automation/heatclinic-new-site-demo/serenity.properties 
[DEBUG] webdriver.remote.url=http://localhost:4444/wd/hub
[DEBUG] firefox.capabilities.handlesAlerts=true
[DEBUG] chrome.capabilities.acceptSslCerts=true
[DEBUG] thucycides.step.delay=2000
[DEBUG] serenity.jira.workflow.active=true
[DEBUG] serenity.project.name=Heatclinic Demo
[DEBUG] serenity.browser.width=1200
[DEBUG] jira.project=HC
[DEBUG] firefox.capabilities.acceptSslCerts=true
[DEBUG] serenity.take.screenshots=FOR_FAILURES
[DEBUG] jira.requirement.links=Epic Link, parent of
[DEBUG] jira.password=admin
[DEBUG] serenity.requirement.types=Epic, Story, Issue
[DEBUG] serenity.outputDirectory=report/web
[DEBUG] jira.url=http://localhost:8888
[DEBUG] serenity.public.url=file:///home/bohdan/Projects/IdeaProjects/Automation/heatclinic-new-site-demo/result
[DEBUG] jira.root.issue.type=Epic
[DEBUG] jira.username=admin
[DEBUG] serenity.browser.height=1200
[DEBUG] jira.custom.field.1=Acceptance Criteria
[DEBUG] webdriver.wait.for.timeout=10000
[DEBUG] serenity.add.context=true
[DEBUG] serenity.jira.always.create.new.comment=false
[DEBUG] chrome.capabilities.handlesAlerts=true
[DEBUG] webdriver.timeouts.implicitlywait=10000
[DEBUG] serenity.jira.workflow=workflow.groovy
[INFO] current_project.base.dir: /home/bohdan/Projects/IdeaProjects/Automation/heatclinic-new-site-demo
[DEBUG] LOADING LOCAL PROPERTIES FROM /home/bohdan/Projects/IdeaProjects/Automation/heatclinic-new-site-demo/serenity.properties 
[DEBUG] LOADING LOCAL PROPERTIES FROM /home/bohdan/Projects/IdeaProjects/Automation/heatclinic-new-site-demo/serenity.properties 
[DEBUG] LOADING LOCAL PROPERTIES FROM /home/bohdan/Projects/IdeaProjects/Automation/heatclinic-new-site-demo/serenity.properties 
[DEBUG] JIRA URL: http://localhost:8888
[DEBUG] JIRA project: HC
[DEBUG] JIRA user: admin
[DEBUG] Resource directories found in  in 63 ms: [src/test/resources]
[DEBUG] Resource directories found in /home/bohdan/Projects/IdeaProjects/Automation/heatclinic-new-site-demo in 12 ms: [/home/bohdan/Projects/IdeaProjects/Automation/heatclinic-new-site-demo/src/test/resources]
[DEBUG] Copied screenshots after 0 ms
[DEBUG] Loaded test outcomes after 102 ms
[INFO] Generating test results for 4 tests
[INFO] Loading requirements from tag providers :[net.serenitybdd.plugins.jira.requirements.JIRARequirementsProvider@675d3ad1]
[DEBUG] Loading root requirements: issuetype = Epic and project=HC
[DEBUG] Count by JQL for issuetype = Epic and project=HC
[DEBUG] Loading root requirements done: 1
[DEBUG] Loading 1 requirements
[DEBUG] Load children for requirement The online shop testing
[DEBUG] Loading child requirements for: The online shop testing
[DEBUG] Loading child requirements for The online shop testing done: 1
[DEBUG] Loading child requirements for: HeatClinic Complete Purchase Transaction
[DEBUG] Loading child requirements for HeatClinic Complete Purchase Transaction done: 2
[DEBUG] 2 child requirements loaded in: 54 ms
[DEBUG] Child requirements: [Requirement{name='Add/remove item(s) to/from cart with chosen browser from GQP HeatClinic Demo Site', type='Sub-task' parent = 'null', cardNumber='HC-4'}, Requirement{name='Complete purchase transaction with chosen browser on GQP HeatClinic Demo Site', type='Task' parent = 'null', cardNumber='HC-2'}]
[DEBUG] 1 child requirements loaded in: 117 ms
[DEBUG] Child requirements: [Requirement{name='HeatClinic Complete Purchase Transaction', type='Story' parent = 'null', cardNumber='HC-1'}]
[DEBUG] Load children for requirement The online shop testing done
[DEBUG] 1 requirements loaded in 121 ms
[DEBUG] Requirements: [Requirement{name='The online shop testing', type='Epic' parent = 'null', cardNumber='HC-5'}]
[DEBUG] Merged requirements set:
REQUIREMENTS:
    - Epic: The online shop testing
        - Story: HeatClinic Complete Purchase Transaction
            - Sub-task: remove item(s) to/from cart with chosen browser from GQP HeatClinic Demo Site
            - Task: Complete purchase transaction with chosen browser on GQP HeatClinic Demo Site

[INFO] 4 requirements loaded after 744 ms
[INFO] 4 related requirements found after 745 ms
[INFO] Generating test outcome reports: false
[INFO] Starting generating reports after 849 ms
[INFO] Configured report threads: 20
[DEBUG] GENERATE TAG REPORTS FOR TestTag{name='#2', type='issue'}
[DEBUG] GENERATE TAG REPORTS FOR TestTag{name='HeatClinic-Checkout', type='tag'}
[DEBUG] GENERATE TAG REPORTS FOR TestTag{name='HeatClinic-AddRemove', type='tag'}
[DEBUG] GENERATE TAG REPORTS FOR TestTag{name='#1', type='issue'}
[DEBUG] GENERATE TAG REPORTS FOR TestTag{name='chrome', type='context'}
[DEBUG] GENERATE TAG REPORTS FOR TestTag{name='firefox', type='context'}
[DEBUG] GENERATE TAG REPORTS FOR TestTag{name='#1', type='issue'}
[DEBUG] GENERATE TAG REPORTS FOR TestTag{name='#4', type='issue'}
[DEBUG] GENERATE TAG REPORTS FOR TestTag{name='#4', type='issue'}
[DEBUG] GENERATE TAG REPORTS FOR TestTag{name='HeatClinic-AddRemove', type='tag'}
[DEBUG] GENERATE TAG REPORTS FOR TestTag{name='HeatClinic-AddRemove', type='tag'}
[DEBUG] GENERATE TAG REPORTS FOR TestTag{name='#1', type='issue'}
[DEBUG] GENERATE TAG REPORTS FOR TestTag{name='HeatClinic-AddRemove', type='tag'}
[DEBUG] GENERATE TAG REPORTS FOR TestTag{name='HeatClinic-Checkout', type='tag'}
[DEBUG] GENERATE TAG REPORTS FOR TestTag{name='#4', type='issue'}
[DEBUG] GENERATE TAG REPORTS FOR TestTag{name='#1', type='issue'}
[DEBUG] GENERATE TAG REPORTS FOR TestTag{name='#2', type='issue'}
[DEBUG] GENERATE TAG REPORTS FOR TestTag{name='#2', type='issue'}
[DEBUG] Requirements found:[Requirement{name='The online shop testing', type='Epic' parent = 'null', cardNumber='HC-5'}]
[DEBUG] Requirements found:[Requirement{name='The online shop testing', type='Epic' parent = 'null', cardNumber='HC-5'}]
[DEBUG] Requirements found:[Requirement{name='The online shop testing', type='Epic' parent = 'null', cardNumber='HC-5'}]
[DEBUG] Requirements found:[Requirement{name='The online shop testing', type='Epic' parent = 'null', cardNumber='HC-5'}]
[DEBUG] Requirements found:[Requirement{name='The online shop testing', type='Epic' parent = 'null', cardNumber='HC-5'}]
[DEBUG] Requirements found:[Requirement{name='The online shop testing', type='Epic' parent = 'null', cardNumber='HC-5'}]
[DEBUG] Find parent requirement in JIRA for Add/Remove item(s) from cart with chosen browser from GQP HeatClinic Demo Site
[DEBUG] Find parent requirement in JIRA for Complete purchase transaction with chosen browser on GQP HeatClinic Demo Site
[DEBUG] Find parent requirement in JIRA for Add/Remove item(s) from cart with chosen browser from GQP HeatClinic Demo Site
[DEBUG] Find parent requirement in JIRA for Add/Remove item(s) from cart with chosen browser from GQP HeatClinic Demo Site
[WARNING] Failed to load requirements: null
[WARNING] Failed to load rejava.lang.NullPointerException
    at net.thucydides.core.ThucydidesSystemProperty.from (ThucydidesSystemProperty.java:1404)
    at net.thucydides.core.ThucydidesSystemProperty.from (ThucydidesSystemProperty.java:1373)
    at net.thucydides.core.issues.IssueKeyFormat.getProjectPrefix (IssueKeyFormat.java:17)
    at net.thucydides.core.issues.IssueKeyFormat.andKey (IssueKeyFormat.java:25)
    at net.thucydides.core.model.TestOutcome.lambda$getIssueKeys$18 (TestOutcome.java:1794)
    at java.util.stream.ReferencePipeline$3$1.accept (ReferencePipeline.java:193)
    at java.util.ArrayList$ArrayListSpliterator.forEachRemaining (ArrayList.java:1382)
    at java.util.stream.AbstractPipeline.copyInto (AbstractPipeline.java:481)
    at java.util.stream.AbstractPipeline.wrapAndCopyInto (AbstractPipeline.java:471)
    at java.util.stream.ReduceOps$ReduceOp.evaluateSequential (ReduceOps.java:708)
    at java.util.stream.AbstractPipeline.evaluate (AbstractPipeline.java:234)
    at java.util.stream.ReferencePipeline.collect (ReferencePipeline.java:499)
    at net.thucydides.core.model.TestOutcome.getIssueKeys (TestOutcome.java:1795)
    at net.serenitybdd.plugins.jira.requirements.JIRARequirementsProvider.getParentRequirementOf (JIRARequirementsProvider.java:252)
    at net.thucydides.core.requirements.ParentRequirementsProvided.forOutcome (ParentRequirementsProvided.java:26)
    at net.thucydides.core.requirements.BaseRequirementsService.getParentRequirementOf (BaseRequirementsService.java:156)
    at net.thucydides.core.requirements.BaseRequirementsService.getParentRequirementFor (BaseRequirementsService.java:61)
    at net.serenitybdd.reports.model.UnstableFeaturesBuilder.featureReport (UnstableFeatures.kt:44)
    at net.serenitybdd.reports.model.UnstableFeaturesBuilder.withMaxOf (UnstableFeatures.kt:33)
    at net.thucydides.core.reports.html.FreemarkerContext.getBuildContext (FreemarkerContext.java:118)
    at net.thucydides.core.reports.html.TagReportingTask.generateTagReport (TagReportingTask.java:73)
    at net.thucydides.core.reports.html.TagReportingTask.generateReports (TagReportingTask.java:64)
    at net.thucydides.core.reports.html.ReportExecutor.call (ReportExecutor.java:32)
    at net.thucydides.core.reports.html.ReportExecutor.call (ReportExecutor.java:11)
    at java.util.concurrent.FutureTask.run (FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
    at java.lang.Thread.run (Thread.java:748)

我需要家长问题保险。我已经完成了测试。

enter image description here

但是该报告显示的问题层次结构与已完成的测试无关。并且与前一个屏幕相同的测试未显示为已完成。 enter image description here

0 个答案:

没有答案