简体   繁体   English

如何使用Selenium WebDriver在测试自动化中使用Hiptest Publisher

[英]How to use Hiptest publisher in test automation using selenium webdriver

I'm using Hiptest platform to write Gherkin based stories and ACs for our projects in Hiptest. 我正在使用Hiptest平台为我们在Hiptest中的项目编写基于Gherkin的故事和AC。 After my research, I also found that there is possibility that I can also download the QA automation test script in Java language that I can run and execute with Selenium Web Driver. 在研究之后,我还发现我还可以下载可以使用Selenium Web Driver运行和执行的Java语言的QA自动化测试脚本。

I also export the script from Hiptest using Hiptest Publisher service but it only contains blank template structure in which my automation engineer team needs to manually write automation business logic (like open the url in web browser, find element by id, click on button etc.)But in Hiptest documentation in website (ie https://docs.hiptest.net/define-the-right-level-for-your-action-words/ ), I found that if I create our action words as low level (leaf action words) and then export the script using Hiptest Publisher service in Java, I might have all automation business logic already written. 我还使用Hiptest Publisher服务从Hiptest导出了脚本,但该脚本仅包含空白模板结构,我的自动化工程师团队需要在其中手动编写自动化业务逻辑(例如在Web浏览器中打开url,按id查找元素,单击按钮等)。 )但是在网站上的Hiptest文档中(即https://docs.hiptest.net/define-the-right-level-for-your-action-words/ ),我发现如果我将操作词创建为低级(叶动作词),然后使用Java中的Hiptest Publisher服务导出脚本,我可能已经编写了所有自动化业务逻辑。

Again this is my understanding by reading the documentation from the given link.But my challenge is I don't know how to write leaf low level action words in Hiptest.Can anyone help me in this case and show me a path on how I can write leaf low level action words in hiptest, so that after writing in such manner when I export the automation script in Java, I can directly execute it using Selenium Web Driver (and my automation team don't need to do any modification in downloaded script)? 再次阅读给定链接中的文档是我的理解,但是我的挑战是我不知道如何在Hiptest中编写叶子低级动作词,在这种情况下有人可以帮助我并向我展示如何实现的方法以最时髦的方式编写叶子低级动作词,这样,当我以Java导出自动化脚本时,以这种方式编写后,就可以使用Selenium Web Driver直接执行它(而且我的自动化团队不需要对下载的脚本进行任何修改)?

Waiting for your quick response on the same at your earliest 尽早等待您的快速响应

If you use low-level action words, you'll have the possibility the directly export Seleniuml-IDE code, but I would not advise to do it this way (and I'm the one who wrote the documentation you are referring to ;) this is some doc I wrote for people who only wanted to use Selenium IDE inside Firefox). 如果您使用低级操作词,则可以直接导出Seleniuml-IDE代码,但我不建议这样做(我是编写您所参考文档的人;)这是我为只想在Firefox中使用Selenium IDE的人写的一些文档。

What I would suggest you is to keep you action words at a high-level (something like for example) and then generate the action words and fill in the blanks (or let the QA team fill in the blanks). 我建议您将动作词保留在较高级别(例如,类似的东西),然后生成动作词并填入空白(或让质量检查小组填入空白)。 One quick way to do that is to use Selenium IDE to record each action word and generate Java code that can then be placed in the skeletons generated by hiptest-publisher. 一种快速的方法是使用Selenium IDE记录每个操作词并生成Java代码,然后将其放置在hiptest-publisher生成的框架中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM