如何选择与硒最佳的自动化工具组合 [英] How to choose best automation Tool combination with selenium

查看:97
本文介绍了如何选择与硒最佳的自动化工具组合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是基于意见的问题,但是我对选择自动化工具组合感到非常困惑.

It might be opinion based question but I am really confused about choosing automation tools combination.

到目前为止,我一直在使用Selenium webdriver,maven和Java来构建自动化框架.这似乎完全正常.

Till date I have been using Selenium webdriver,maven and Java to build automation frameworks. This seems totally working fine.

现在有几天,我感到许多自动化工程师开始使用WebdriverJSWebdriverIONodeJS等.

Now a days I feel that many automation engineers moving to use of WebdriverJS , WebdriverIO, NodeJS etc.

有人告诉我,如果我们使用WebdriverJS/WebdriverIO/NodeJS构建自动化框架,则执行速度将比Java快.

Someone told me that if we build automation framework using WebdriverJS/ WebdriverIO/NodeJS, Then execution will be faster than Java.

我知道我应该根据自己的要求选择工具,但与此同时,我感到我们不能在某些网站中使用WebdriverJS/WebdriverIO/NodeJS,其中所有元素都必须由xpath,因为大多数元素动态更改class / id.

I know that I should choose tool based on my requirements but at the same time I feel that we can not use WebdriverJS/ WebdriverIO/NodeJS in some kind of website where all elements must be located by xpath as most of elements changing class / id dynamically.

因此,如果任何人都可以给我提示选择哪种工具来选择哪种类型的网站,那将非常有帮助.也就是说,对于AngularJS网站Node.Js对于使用硒进行自动化非常合适.

So If anyone can just give me hint about which tools to choose for which kind of website then it would be really helpful. i.e For AngularJS website Node.Js is fine for automation with selenium.

推荐答案

根据 Selenium官方网页下载部分,您可以在 Selenium Client& WebDriver语言绑定部分列出了以下内容:

As per the Selenium Official Webpage, Download Section, you can see in the Selenium Client & WebDriver Language Bindings section the following are listed :

  1. Java
  2. C#
  3. Ruby
  4. Python
  5. Javascript(节点)
  1. Java
  2. C#
  3. Ruby
  4. Python
  5. Javascript (Node)

从我个人的角度来看,这5个变体是使用 Selenium 处理 Automation Framework 时使用最广泛的 Selenium Clients

So from my personal take would be, these 5 variants which are the most widely used Selenium Clients while dealing with Automation Framework with Selenium

撇开Selinium的GitHub备忘,它在Internet上可用的大部分文档显然都在 Selenium(Java)上.这是因为 Java 作为语言在世界范围内广受欢迎.因此学习变得更加容易. 甚至 Selenium(Java)客户端版本的频率也可以支持我的本机视图.

Leaving aside Selinium's GitHub ducumentation, its pretty clear majority of the documentation available on internet is on Selenium (Java). It's because of Java's world wide popularity as a Language. So learning becomes easier. Even the frequency of Selenium (Java) Client Releases would support my native view.

但是,我个人发现 Selinium的GitHub文档因为所有客户端绑定都是完美而精确的.

But, personally I have found Selinium's GitHub Documentation for all the client bindings are perfect and precise.

WebdriverIO是Selenium版本的另一个变体.毫无疑问, WebdriverIO 团队在使用 Selenium Client Releases 构建追赶游戏方面付出了艰辛的努力.但是我认为 WebdriverIO 仍在不断发展.

WebdriverIO is another variant of the Selenium Release. No doubt the WebdriverIO team have played it hard in building up the catch-up game with the Selenium Client Releases. But my take would be WebdriverIO is still evolving.

从功能的角度来看,我将采用 NodeJS WebdriverJS .原因很简单,当浏览器完全加载并且将 javascript 注入 Web浏览器中时,我仍然认为 Selenium-RC 方法仍在实践中然后使用其javascript在浏览器中驱动被测应用.

From a functional perspective my take will be either on NodeJS or WebdriverJS. Reason is simple I still feel the Selenium-RC way is still in practice when we inject javascript into the Web Browser once the browser loads completely and then use its javascript to drive the Application Under Test within the browser.

这篇关于如何选择与硒最佳的自动化工具组合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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