詹金斯的 JiraTestResultReporter 错误

error with JiraTestResultReporter with Jenkins

我使用 JiraTestResultReporter 插件配置了 Jenkins。我正在使用 selenium testNg 测试用例,它也可以读取测试用例。但我正在使用 JIRA free Trail。我没有在我的詹金斯中安装 JIRA。

[xUnit] [INFO] - Starting to record.
[xUnit] [INFO] - Processing JUnit
[xUnit] [INFO] - [JUnit] - 1 test report file(s) were found with the pattern '**/TEST-CallingTestSuite.xml' relative to 'C:\SeleniumTest\workspace\testwithJira' for the testing framework 'JUnit'.
[xUnit] [INFO] - Converting 'C:\SeleniumTest\workspace\testwithJira\test-output\junitreports\TEST-CallingTestSuite.xml' .
[xUnit] [INFO] - Check 'Failed Tests' threshold.
[xUnit] [INFO] - Check 'Skipped Tests' threshold.
[xUnit] [INFO] - Setting the build status to SUCCESS
[xUnit] [INFO] - Stopping recording.
[JiraTestResultReporter] [INFO] Examining test results...
[JiraTestResultReporter] [DEBUG] Build result is SUCCESS

[JiraTestResultReporter] [DEBUG] [JiraTestResultReporter] [INFO] Workspace is C:\SeleniumTest\workspace\testwithJira

[JiraTestResultReporter] [DEBUG] projectKey: TEST
[JiraTestResultReporter] [DEBUG] errorDetails: failure message test
[JiraTestResultReporter] [DEBUG] fullName: CallingTestSuite.failingtestcase
[JiraTestResultReporter] [DEBUG] simpleName: CallingTestSuite
[JiraTestResultReporter] [DEBUG] title: Case Result: failingtestcase
[JiraTestResultReporter] [DEBUG] packageName: (root)
[JiraTestResultReporter] [DEBUG] name: failingtestcase
[JiraTestResultReporter] [DEBUG] className: CallingTestSuite
[JiraTestResultReporter] [DEBUG] failedSince: 88
[JiraTestResultReporter] [DEBUG] status: FAILED
[JiraTestResultReporter] [DEBUG] age: 11
[JiraTestResultReporter] [DEBUG] ErrorStackTrace: 
[JiraTestResultReporter] [DEBUG] affectedFile: 
[JiraTestResultReporter] [DEBUG] ----------------------------
java.lang.RuntimeException: java.lang.RuntimeException: org.json.JSONException: A JSONArray text must start with '[' at 1 [character 2 line 1]
java.lang.RuntimeException: java.lang.RuntimeException: org.json.JSONException: A JSONArray text must start with '[' at 1 [character 2 line 1]
[JiraTestResultReporter] [INFO] Done.
Finished: SUCCESS  

我配置了 xUnit 插件来读取测试结果。但是我收到一个错误。问题不是在我的 JIRA 服务器中创建。以下是我收到的错误。

我需要用 Jenkins 安装 JIRA 吗?或者我可以直接使用这个试用版服务器吗?

我创建了一个 java 应用程序,而不是尝试使用它。 我的应用程序将从 selenium 测试的输出中获取失败的测试用例,并使用 Jira Rest API.

在 Jira 中创建错误