JkinsTestResultReporter与Jenkins

时间:2015-06-25 10:38:41

标签: jenkins junit jira

我使用JiraTestResultReporter插件配置了Jenkins。我正在使用selenium testNg测试用例,它也可以读取测试用例。但我正在使用JIRA免费小道。我没有在我的jenkins中安装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?或者我可以直接使用这个试用版服务器吗?

1 个答案:

答案 0 :(得分:0)

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