Welcome to the Question and Answer site for Software Testing Professionals

You can get your queries resolved from Software Testing Professionals.

Ask a Question

Get answers and give answers to questions from other members.

View All Questions

Get votes and earn points to build your reputation in community.

View Hot Questions

Which language for Automation, Java or Python, Ruby

Open 3 Answers 66 Views
1 3
I am working with Automation project with Python. And  i feel that Python is light-weight, readable and easy to code and debug. But many automation projects still use Java to write automation script.

I think the scripting language should be used, not a heavy and complicated one as Java. It should be used to build software, not need for testing.

Please share your real experience!
commented Nov 29, 2016 by MinMin (232 points)
It is clear now. Thank you @Onkar_Nimje and @Mayur

3 Answers

I dont know Python. So for me Python is difficult. As you stated Java is complicated. But i know Java only and uisng this core java  i can automate any dynamic script easily.

So my thought is, you can use any language which you know very well because if you know langauage in deep then you can make any quality script easily and with less time.
answered Nov 28, 2016 by Onkar_Nimje (473 points)
There are two prospectives here,
  • Maintenance
  • Business
Scripting language makes implementation of OOP concepts little difficult. So, the main part, Object Repository will be difficult to implement and maintain using scripting language. But in case of OOP language like Java, you can easily implement POM (Page Object Model) and reuse your elements. It will make scripting breeze.
From business prospective, Selenium-Java is older than Selenium-Python. So, getting developers for Selenium-Java will be much easier and cost effective. So, business people encourage usage of Java. Hence making it more flavor day by day.
Hope my answer helped!
answered Nov 28, 2016 by stbadmin (192 points)
I've heard about Python and Robotframework is a good combination. I just did not have enough time to look into it yet.

Most examplecode you can find on the internet seems to be Java, but is harder to understand for a non-programmer.

I'm using Ruby with a gem called "lapis_lazuli". Ruby itself is readable quiet well. Also for less development minded people like me. The gem just makes it super easy to create a demo project with enough examples to get started (I found the installation and getting started manual on www.testautomation.info)

Personally I have been using this Ruby + LL for just a year now and I like it a lot. I can use it with selenium-grid (but also browserstack) which is really usefull in my case.
answered May 12, 2017 by Mark Duivesteijn

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

We have resolved 1.2k+ Software Testing queries!

Software Testing Board Weekly update

We will send you handpicked questions that you would love to answer.

View previous campaigns.

Top Contributors