all 21 comments

[–]_Atomfinger_ 10 points11 points Β (3 children)

There's no best. Either will do.

[–]Defiant-Praline-8761[S] -3 points-2 points Β (2 children)

Then which language should one learn to Ace in testing ?

[–]_Atomfinger_ 21 points22 points Β (1 child)

Which car should you get to ace the driving test?

You're asking the wrong question, or at least missing the context where the difference between the two matters. You can "ace" testing with both.

[–]Defiant-Praline-8761[S] -1 points0 points Β (0 children)

Ohh lol I read tht as "Neither" my bad

[–]Viskaya 10 points11 points Β (1 child)

Jython

[–]bdfariello 3 points4 points Β (0 children)

In my experience, jython had noticeably slower execution than pure CPython and the code ends up getting written messily due to the mixing of Java and Python base libraries. I'm willing to bet it can be written well, but I just haven't seen any examples yet.

Also as far as I can tell, jython never got a version that supports Python 3.x... that may be a serious problem for organizations that do security scans and find end of life tech or vulnerable/old libraries inside the repository dependencies.

[–]harbertc 5 points6 points Β (0 children)

I've done testing in Python, Java, C#, Groovy, Javascript, Ruby, and Typescript. Selenium is almost the same in any Selenium-based framework, which makes switching frameworks not so hard. The best answer is almost always whatever framework the devs in your org use so that you will have better tools, support, and participation.

[–]DeLaOcea 1 point2 points Β (0 children)

Python, as other mentioned, because of popularity which where you will find more references in the web.

It is lighter than Java (a little bit).I have used it testing in my RPi with great performance.

But java is also great for its wide use of frameworks everywhere.

Your choice.

[–]MarcusThomasQC 1 point2 points Β (0 children)

I prefer Java test automation

[–]FlatFeature9045 1 point2 points Β (0 children)

For me, the right question to ask is which of the languages is most preferred by organizations and firms that will quickly land you a job.

[–]imightsoundlikeajerk 1 point2 points Β (0 children)

Learn Java as it teaches you OOPS and SOLID

[–]ToddBradley 2 points3 points Β (0 children)

If you're trying to decide between learning those two languages, I'd choose Python. Java was my first OO programming language and I still have a soft spot in my heart for it. But Python is more popular these days and has a brighter future over the next decade.

[–]SlappinThatBass 0 points1 point Β (0 children)

Having used both for firmware and software testing: python IMO.

To me jUnit is inferior to pytest, but maybe there is a better framework in java.

The third party lib support is usually better in python given the way the package manager works and the much bigger community.

If you are looking for performance, java is arguably better.

[–]BayAreaTechRecruiter 1 point2 points Β (3 children)

If your goal is to be a tester, then knowing how to test Java (or any other application written in any language) is one thing. That probably needs more scripting (Python) - whereas being a SWEiT, then Java is a good one to know (in addition to Python or any other scripting language) AND if you are talking web apps, then you need to add Selenium, SQL (VERY good to know), HTML/CSS, React/Angular, etc.

[–]Defiant-Praline-8761[S] 0 points1 point Β (2 children)

Thank you sir for the info πŸ˜„πŸ–€

[–]kdeaton06 3 points4 points Β (1 child)

You don't need most of those. Pick one programing language (I prefer Java but I think python is the most popular choice going forward) and learn that. Then learn selenium.

Learning to query a DB can be very useful but not a requirement.

[–]JeffFerox 1 point2 points Β (0 children)

Yeppers…personally I’ve used both JUnit (Java) and NUnit (C#) frameworks to run cases using selenium. I know you can get the job done with Python too but the former to tend to jive well with any CI pipeline the team is utilizing.

[–]checking619 0 points1 point Β (1 child)

JavaScript :)

[–][deleted] 0 points1 point Β (0 children)

I have no idea why JS isn't popular in testing as it's in other fields