如何将JIRA与Selenium WebDriver集成? [英] How to integrate JIRA with Selenium WebDriver?

查看:295
本文介绍了如何将JIRA与Selenium WebDriver集成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将JIRA与Selenium WebDriver集成?实际上,我想执行测试用例并报告JIRA中每个测试用例的通过/失败状态.

How can I can integrate JIRA with Selenium WebDriver? Actually I want to execute test cases and report pass/ fail status for each test cases in JIRA.

推荐答案

您的问题很笼统,所以我的回答将紧随其后.

Your question is very general, so my answer will follow suit.

Jira并非完全是TCM(测试用例管理器)应用程序,尽管当然可以使用Jira来跟踪测试.重点是,您可能会在尝试大量定制代码工作,以获取集成了测试启动/计划功能.开始使用Jenkins或Team City之类的东西会更好.

Jira isn't exactly a TCM (Test Case Manager) application, though it's certainly possible to track tests using Jira... The point being, you'd likely be looking at a fair amount of custom code work trying to get test launch/scheduling capabilities integrated. You'd be far better off using something like Jenkins or Team City for your kick off.

要使结果返回Jira,您需要做两件事.首先是一个测试框架.假设您使用的是Java语言绑定,那么TestNG和JUnit都是Selenium的最佳搭档.但是,无论使用哪种语言,您都需要一个与Selenium一起的测试框架.我不确定是否有任何将测试框架集成到Jira中的库,因此可能涉及一些自定义代码来捕获自动测试的结果并将这些结果中继到Jira中,这是第二个需要的项目.正如@Helping Hands所述,他们的REST API可能是一个不错的起点.可能有TestNG的侦听器可以做到这一点,但是粗略的Google搜索并没有返回任何容易获得的有价值的信息.

To get results back into Jira, you'd need two things. First up is a test framework. TestNG is a great match for Selenium, as is JUnit, assuming you're using the Java language binding. Regardless of language, however, you will need a test framework alongside Selenium. I'm unsure of any library off the top of my head that integrates a test framework into Jira, so there may be some custom code involved to capture the result of an automated test and relay those results into Jira, which is the second needed item. As @Helping Hands mentioned, their REST API is likely a good place to start. There may be a listener out there for TestNG that may do this, but a cursory google search didn't return any readily valuable information.

如果我可以说一点话,我想知道Jira是否真的是完成这项工作的最佳工具.我意识到您可能会受到一些限制,从而限制了您的选择,但我认为将其集成到Jira中可能会重新发明轮子.诸如qTest或TestRail之类的工具是专门为质量检查活动而构建的,它们自己与Jira集成,并为开箱即用的自动化结果报告提供支持.我并不是说您想做的事不是一个好主意,只是可能还有其他选择可能并不需要那么多的开销来产生价值.

If I may opine a bit, I wonder if Jira is really the best tool for the job here. I realize you may have constraints that restrict your options here, but I think integrating into Jira may be bit of wheel re-invention. Tools like qTest or TestRail are purpose built for QA activities, integrate with Jira on their own, and provide support for automation results reporting out of the box. I'm not saying what you want to do is a bad idea, just that there may be other options that may not require as much overhead to producing value.

我希望这会有所帮助.如果您可以提供有关目标的更多详细信息,我们很乐意添加更多具体的信息.

I hope this helps. If you can provide some more detail about your goals, I'd be happy to add more specific input.

这篇关于如何将JIRA与Selenium WebDriver集成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆