开发者社区 问答 正文

使用JPT测试吉拉性能时无法识别吉拉地址

使用JPT测试JIRA性能

https://github.com/atlassian/jira-performance-tests/blob/master/docs/tests/ON_PREMISE.md

将jira URI设置为:

jira-performance-tests / examples / btf-test / src / test / java / com / atlassian / performance / tools / btftest / MyJiraOnPremiseIT.java

final URI myJira = new URI("http://192.168.1.1:8080"); // Official example is http://localhost:8090/jira/
jiraOnPremiseTest.setAdminLogin("admin");
jiraOnPremiseTest.setAdminPassword("admin");

在jira-performance-tests / examples / btf-test运行下:

./mvnw verify

得到了这些错误:

at com.atlassian.performance.tools.virtualusers.api.Application.tryRunning(EntryPoint.kt:27)
    ... 29 more

[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR]   MyJiraOnPremiseIT.testMyJira:55 ?  Failed to run with [--jira-address, http://...
[INFO]
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO]
[INFO]
[INFO] --- maven-failsafe-plugin:2.22.0:verify (default) @ btf-test ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.500 s
[INFO] Finished at: 2019-12-04T06:39:56Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.22.0:verify (default) on project btf-test: There are test failures.
[ERROR]
[ERROR] Please refer to /home/vagrant/jira-performance-tests/examples/btf-test/target/failsafe-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

我的JIRA地址是http://192.168.1.1:8080。可以访问。为什么JPT无法识别它?此JPT存储库尚未更新超过1年。它的来源是否过时?

展开
收起
垚tutu 2019-12-04 16:29:32 838 分享 版权
阿里云 AI 助理回答

遇到这样的问题,确实可能与几个因素相关。首先,您提到的Jira Performance Tests (JPT) 存储库长时间未更新,这确实可能导致它与当前版本的Jira不兼容或者存在一些依赖项过时的问题。存储库中的代码、配置或依赖关系可能需要针对您正在测试的Jira版本进行调整。

以下是一些建议来解决您的问题:

  1. 检查日志和堆栈跟踪:仔细查看Maven输出中提到的错误详细信息,特别是/home/vagrant/jira-performance-tests/examples/btf-test/target/failsafe-reports目录下的报告文件,以及任何dump文件。这些通常会提供更具体的错误原因,比如网络连接问题、认证失败或是API不兼容等。

  2. 更新依赖:虽然整个项目可能没有更新,但您可以尝试手动更新该项目的依赖项(如Maven的pom.xml文件中的插件和库),确保它们与您的环境兼容。注意,这样做可能会引入新的不兼容性,因此需要谨慎操作并做好回退准备。

  3. 验证网络访问:确认运行测试的机器能够访问到Jira服务器的http://192.168.1.1:8080地址。有时候,防火墙规则或网络配置可能会阻止外部请求。

  4. 认证信息:您设置的管理员用户名和密码是否正确?如果Jira实例启用了其他安全措施,如双因素认证或自定义安全插件,也可能导致测试无法通过认证。

  5. Jira版本兼容性:确认JPT支持的Jira版本范围,并检查您的Jira实例是否在这个范围内。如果Jira版本较新,可能需要寻找或开发适用于新版本的测试工具或脚本。

  6. 社区和官方资源:考虑到这个项目在GitHub上,可以查看是否有其他人遇到了类似问题并分享了解决方案。同时,Atlassian的官方文档或社区论坛也是获取帮助的好地方。

  7. 考虑替代方案:如果上述方法都无法解决问题,可能需要考虑使用其他性能测试工具或框架,或者直接联系Atlassian获取支持,看看他们是否有推荐的最新性能测试实践或工具。

总之,由于该仓库长期未更新,可能存在与当前技术栈不兼容的情况,需要从多个角度排查问题,并考虑是否有必要寻找更现代的测试解决方案。

有帮助
无帮助
AI 助理回答生成答案可能存在不准确,仅供参考
0 条回答
写回答
取消 提交回答
问答分类:
问答标签:
问答地址: