如何将 Protractor 测试用例与 Hiptest 集成? [英] How to integrate Protractor test cases with Hiptest?

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

问题描述

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

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

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

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

谁能帮助我如何开始?

推荐答案

我是主要贡献者或最时髦的发布者之一,所以我应该可以帮助你.

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

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

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).

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

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)

一旦实现了动作词,生成的测试文件就可以像任何其他 Protractor 测试一样集成到您的测试套件中.

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

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

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 ? )

将执行结果推送回 Hiptest,原理很简单:- 创建一个专用于 CI 的测试运行- 在测试之前运行命令hiptest-publisher --config-file --test-run-id"(因此只执行测试运行中的测试,您不想运行某人当前正在写入的测试当然在失败时执行)- 运行你的测试- 运行命令hiptest-publisher --config-file --push"将结果推送回hiptest.

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.

请注意,这两个命令(包括测试运行 ID)可以直接在 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.

如果您有 Hiptest 帐户,可以直接在聊天中与我们联系,这可能更容易帮助您完成整个过程.Ho 和我有我上次关于自动化的网络研讨会的录音,我想你也可以在那里找到一些有用的信息:)

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 :)

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

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