Why new-to-automation testers should learn UI Test Automation in Ruby first?
Ruby is easy to learn and pleasant to use, and the best choice for scripting automated end-to-end tests.
--
Table of Contents:
· 1. Ruby is one of the five official Selenium binding languages
· 2. Ruby was the preferred language for automated testing, and still is
· 3. Why is Ruby less used in Test Automation now?
∘ Why did so many go for Protractor or other Java/JS library?
· 4. Team Use
· 5. TestWise Tool
1. Ruby is one of the five official Selenium binding languages
Selenium WebDriver, the dominating (and only W3C-compliant) web automation framework, has five official language bindings:
This means the implementation and syntax are similar among all five of them. For example:
Ruby:
driver.find_element(:name, "user").send_keys("WiseTester")Java:
driver.findElement(By.name("user")).sendKeys("WiseTester")C#:
driver.FindElement(By.Name("user")).SendKeys("WiseTester")JavaScript:
driver.findElement(By.name("user")).sendKeys("WiseTester")Python:
driver.find_element_by_name("user").send_keys("WiseTester")
Therefore, it will take no time to master another one after you master one language (ruby is the best).
Regardless of what language a web app is developed in, I could always drive it with Selenium WebDriver in Ruby, and the same way for all. — Zhimin Zhan
The fact: many of manual testers who I trained worked in test automation roles by using Java/C#/Java/Python. But they all started test automation journey, i without prior knowledge/expreience, in Ruby.