如何配置serenity.properties以通过ssl访问jira,以添加报告链接?

时间:2019-06-25 12:30:55

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

我正在尝试将宁静报告的链接放入Jira。只能通过Ssl证书访问Jira url,但我不知道如何为Jira Ssl配置serenity.properties。

我已按照以下步骤操作: http://thucydides.info/docs/serenity-staging/#_one_way_integration_with_jira

按链接中的步骤配置pom。

我的serenity.properties

jira.url=https://highway.project.com/jira/browse/
#jira.project=PRJ 1.0
jira.username=admin
jira.password=admin

我得到的错误

13:59:48.699 [pool-5-thread-1] WARN  n.t.c.r.RequirementsTagProvider - Failed to load requirements: net.serenitybdd.plugins.jira.model.JQLException: net.serenitybdd.plugins.jira.client.JIRAAuthenticationError: Forbidden error (403) for user admin
java.lang.IllegalArgumentException: net.serenitybdd.plugins.jira.model.JQLException: net.serenitybdd.plugins.jira.client.JIRAAuthenticationError: Forbidden error (403) for user admin
    at net.serenitybdd.plugins.jira.requirements.JIRARequirementsProvider.getParentRequirementOf(JIRARequirementsProvider.java:266) ~[serenity-jira-requirements-provider-1.12.0.jar:na]
    at net.thucydides.core.requirements.ParentRequirementsProvided.forOutcome(ParentRequirementsProvided.java:26) ~[serenity-model-2.0.46.jar:2.0.46]
    at net.thucydides.core.requirements.BaseRequirementsService.getParentRequirementOf(BaseRequirementsService.java:156) [serenity-model-2.0.46.jar:2.0.46]
    at net.thucydides.core.requirements.BaseRequirementsService.getParentRequirementFor(BaseRequirementsService.java:61) [serenity-model-2.0.46.jar:2.0.46]
    at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.addParentRequirmentFieldToContext(HtmlAcceptanceTestReporter.java:168) [serenity-reports-2.0.46.jar:2.0.46]
    at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.addTestOutcomeToContext(HtmlAcceptanceTestReporter.java:162) [serenity-reports-2.0.46.jar:2.0.46]
    at net.thucydides.core.reports.html.HtmlAcceptanceTestReporter.generateReportFor(HtmlAcceptanceTestReporter.java:106) [serenity-reports-2.0.46.jar:2.0.46]
    at net.thucydides.core.reports.ReportService.generateReportFor(ReportService.java:238) [serenity-model-2.0.46.jar:2.0.46]
    at net.thucydides.core.reports.ReportService.lambda$generateReportsFor$0(ReportService.java:175) [serenity-model-2.0.46.jar:2.0.46]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_171]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_171]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_171]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_171]
    at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_171]

0 个答案:

没有答案