如何将量角器测试用例与Hiptest集成在一起? [英] How to integrate Protractor test cases with Hiptest?

查看:105
本文介绍了如何将量角器测试用例与Hiptest集成在一起?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于使用angular js制作的网站,我们的组织使用量角器作为自动化测试用例的工具.

我们的组织提出了一个名为"HipTest"的新工具来管理测试用例的自动化. 如何将量角器测试用例与HipTest集成.我去了以下链接,但无法获取一些有用的信息.

https://docs.hiptest.net/automate-your-tests/

https://github.com/hiptest/hiptest-publisher

有人可以帮助我如何开始吗?

解决方案

我是主要贡献者或最时髦的发布者之一,所以我应该能够为您提供帮助.

从hiptest-publisher开始的快速方法是从Hiptest下载测试的引导程序(在自动化"选项卡下,您将具有"Javascript/Protractor"链接).

您将获得一个包含四个文件的zip文件(您应将所有文件以及要测试的应用程序代码一起添加到版本控制系统中): -一种用于配置hiptest-publisher以使用命令行工具 -所有测试之一(您可以稍后使用配置文件中的--with-folders选项将其拆分) -一个动作词:这是您进行自动化的地方 -用于存储您导出的动作词的状态的对象(与hiptest-publisher一起使用,以查看自上次更新以来已更新的动作词)

一旦执行了动作词,生成的测试文件就可以像其他任何量角器测试一样集成到您的测试套件中.

在Hiptest方面,您唯一的要求是仅使用操作字编写测试.据我从您的帖子中了解到的那样,您不能直接在Hiptest中工作,而只能管理自动化部分(或者我弄错了吗?)

为了将执行结果推回Hiptest,原理非常简单: -创建专用于CI的测试运行 -在测试之前运行命令"hiptest-publisher --config-file --test-run-id"(因此,仅执行测试运行中的测试,您不希望运行某人当前正在写入的测试当然会失败执行) -运行测试 -运行命令"hiptest-publisher --config-file --push"将结果推回hiptest.

请注意,可以通过测试运行中的自动"按钮直接在Hiptest中找到这两个命令(包括测试运行ID).

如果您拥有Hiptest帐户,则可以在聊天中直接与我们联系,这可能会更轻松地帮助您完成此过程. Ho和我记录了我上次有关自动化的网络研讨会,我想您也可以在其中找到一些有用的信息:)

For a Website which is made using angular js , our organization used protractor as the tool to automate test cases.

Our organization has come up with a new tool named 'HipTest' to manage test cases automation. How to integrate protractor test cases with HipTest. I went to following links but was unable to fetch some useful information.

https://docs.hiptest.net/automate-your-tests/

https://github.com/hiptest/hiptest-publisher

Can Anyone help me how to start ?

解决方案

I'm one of the main contributor or hiptest-publisher, so I should be able to help you.

The quick way to start with hiptest-publisher is to download the bootstrap of the tests from Hiptest (under the automation tab, you will have a "Javascript/Protractor" link).

You will get a zip file with four files (you should add all of them to your version control system, alongside the code of the application you are testing): - one for the configuration of hiptest-publisher to use the command-line tool - one for all the tests (you can split them later on, using the --with-folders option in the config file) - one for the action words: that's the place where you will do the automation - one for storing the status of the action words you exported (which is used with hiptest-publisher to see which action words have been updated since the last update)

Once the action words are implemented, the test files generated can be integrated in your test suite like any other Protractor test.

On the Hiptest side itself, the only requirement you have is that your tests should only be written using action words only. From what I understand from your post, you do not work directly in Hiptest yourself and you only manage the automation part (or did I get that wrong ? )

For pushing the execution results back to Hiptest, the principle is pretty simple: - create a test run dedicated to the CI - run the command "hiptest-publisher --config-file --test-run-id " before the tests (so only the tests inside the test run are executed, you do not want to run a test that someone is currently writing to be executed on fail of course) - run your tests - run the command "hiptest-publisher --config-file --push " to push the results back to hiptest.

Note that those two commands (including the test run ID) can be found directly inside Hiptest, from the "Automate" button in the test run.

If you have an Hiptest account, you can contact us directly on the chat, that might be easier to help you through the process. Ho and I have a recording of the last webinar I made about automation, I guess you could find some useful information there too :)

这篇关于如何将量角器测试用例与Hiptest集成在一起?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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