# C#/C++ or Python/Java/Scripts which are easiest to test with

**URL:** <https://club.ministryoftesting.com/t/c-c-or-python-java-scripts-which-are-easiest-to-test-with/86741>\
**Category:** Discussions\
**Tags:** automation, coding\
**Created:** [8 October 2025 09:20 UTC](https://club.ministryoftesting.com/t/c-c-or-python-java-scripts-which-are-easiest-to-test-with/86741 "2025-10-08T09:20:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![conrad.braam](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/conrad.braam/32/660_2.png) [@conrad.braam](https://club.ministryoftesting.com/u/conrad.braam)\
**Post date:** [8 October 2025 09:20 UTC](https://club.ministryoftesting.com/t/c-c-or-python-java-scripts-which-are-easiest-to-test-with/86741/1 "2025-10-08T09:20:55Z")

</div>

As someone who aced the recent job interview by solving the interview question in a 1 hour session with C#, you might think I prefer C++ or C# for creating tests. But I’m still very much a fan of the removal of time wasted compiling and time spent searching for a missing } curly brace. Sure, compiled code has it’s bonus moments in that it catches typos or wrong library versions before they even get in. As someone with an embedded and industrial background natively running code has always been my bag, but as I get older I find my hand forced. I cannot really keep swapping between 3 languages on a daily or even weekly basis. I end up forgetting to add ; semicolons and at other times I end up having them where they are not needed at all for example. Performance and stress testing is one balance to the entire act too. But on the other hand a simple to read script-centric targeted language often scales a lot faster when I ned to bang out a batch of tests.

What is your favourite language to automate in and why. I’ve deliberately been vague here, because I want open replies.

References:

> [@Does it matter that I am writing automation code in a different language to that used in development?](https://club.ministryoftesting.com/t/does-it-matter-that-i-am-writing-automation-code-in-a-different-language-to-that-used-in-development/10543):
>
> At the moment I am learning how to write code and furthermore automation tests using Selenium WebDriver and Java, so that I can start looking at automating some of the manual regression tests which are executed each iteration. The technology stack at our company is .net meaning that development is written in c# using Visual Studio. Not that I can think of one, but I’m intrigued as to what peoples opinions are and whether this can create any issues in that I am writing automated tests in a diffe…

> [@How do you choose a programming language for software testing automation?](https://club.ministryoftesting.com/t/how-do-you-choose-a-programming-language-for-software-testing-automation/13213):
>
> This is related to a question that came up in the [Test Automation AMA](https://dojo.ministryoftesting.com/lessons/ask-me-anything-richard-bradshaw-automation) with Richard Bradshaw (at 3 minutes 12 seconds). It’s something I see asked a LOT. Questions vary in wording but are along the lines of: “What is the best language to use for test automation?” “[Does it matter that I am writing automation code in a different language used to that in development?](https://club.ministryoftesting.com/t/does-it-matter-that-i-am-writing-automation-code-in-a-different-language-to-that-used-in-development/10543)” “How do you choose a programming language for software testing automation?” “I want to get started with automation in m…

---

<div class="post-metadata">

**Author:** ![aimantirmizi](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/aimantirmizi/32/15210_2.png) [@aimantirmizi](https://club.ministryoftesting.com/u/aimantirmizi)\
**Post date:** [8 October 2025 09:46 UTC](https://club.ministryoftesting.com/t/c-c-or-python-java-scripts-which-are-easiest-to-test-with/86741/2 "2025-10-08T09:46:26Z")

</div>

> [@conrad.braam](#):
>
> What is your favourite language to automate in and why. I’ve deliberately been vague here, because I want open replies.

I believe, this depend upon which language you started writing and learning to code first?! If I talk about my experience over a decade ago, I started using Selenium WebDriver with Java and I call Java my first love in test automation, its not that I cant write code in C sharp, JavaScript, TypeScript, Ruby, however I will prefer Java over anything else as it has become my comfort language.

I believe my comfort level also derived from Java’s stronger community over internet back then as well.

---

<div class="post-metadata">

**Author:** ![hananurrehman](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/hananurrehman/32/14717_2.png) [@hananurrehman](https://club.ministryoftesting.com/u/hananurrehman)\
**Post date:** [8 October 2025 11:54 UTC](https://club.ministryoftesting.com/t/c-c-or-python-java-scripts-which-are-easiest-to-test-with/86741/3 "2025-10-08T11:54:58Z")

</div>

Like aiman, its what you start with. For me its Typescript/Javascript because that’s where I started.

---

<div class="post-metadata">

**Author:** ![adamjfoy](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/adamjfoy/32/11690_2.png) [@adamjfoy](https://club.ministryoftesting.com/u/adamjfoy)\
**Post date:** [8 October 2025 12:25 UTC](https://club.ministryoftesting.com/t/c-c-or-python-java-scripts-which-are-easiest-to-test-with/86741/4 "2025-10-08T12:25:20Z")

</div>

Similar to @aimantirmizi my comfort zone is definitely Java, but I’ve been working with C# for a couple of months and I’m enjoying it so far. There are enough similarities between the two for it to feel familiar.

I prefer statically/strongly typed languages - you’re forced to put a little more thought into how you want to set things up. I think this helps in the long run if you’re building a relatively complex automation framework.

---

<div class="post-metadata">

**Author:** ![scittels](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/scittels/32/14509_2.png) [@scittels](https://club.ministryoftesting.com/u/scittels)\
**Post date:** [8 October 2025 16:07 UTC](https://club.ministryoftesting.com/t/c-c-or-python-java-scripts-which-are-easiest-to-test-with/86741/5 "2025-10-08T16:07:36Z")

</div>

> [@conrad.braam](#):
>
> What is your favourite language to automate in and why.

I prefer C#. I like the possibilities this language offers. But when it comes to automation testing, I don’t focus only on the language itself. Since I work with games, the programming language is usually chosen based on the engine. Because I prefer Unity, I also prefer C#.

I’ve tried Python and Java, but for me, they’re a bit of a headache. I’ve also used C++ and Blueprints in Unreal Engine, but that’s too much for me.

---

<div class="post-metadata">

**Author:** ![sebastian\_solidwork](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/sebastian_solidwork/32/11076_2.png) [@sebastian\_solidwork](https://club.ministryoftesting.com/u/sebastian_solidwork)\
**Post date:** [8 October 2025 20:27 UTC](https://club.ministryoftesting.com/t/c-c-or-python-java-scripts-which-are-easiest-to-test-with/86741/6 "2025-10-08T20:27:56Z")

</div>

Are you asking intentionally just for automation? Or also any development in/for testing?

My preferred language for both is Groovy. I do anything from little scripts up to full blown tools with thousand(s of) lines.

Reasons:

- Static typing is optional. Some code is easier to do with dynamic typing. And sometimes I don’t care for typing so that I develop faster.
- It’s low on boiler plate code, which I constantly forget and have to look up in other languages (Damn you, Stream.open and .close). Especial reading and writing files are just getter and setter of the text property.
- You can use every Java library.
  - Which also helps to get support from my Java developers.

- You can easily create programmatically HTML with it for e.g. custom reports.
- You search through XMLs files easily
- Many more stuff which is way more demanding in other programming languages.
- You don’t need a semicolon at line endings.

If I have a choice I use Groovy. Specifically at automation I have less complex code than on my other tools and do it in other languages. Currently Typescript with Cypress so that also my developers can write and maintain cases.

---

<div class="post-metadata">

**Author:** ![daluu](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@daluu](https://club.ministryoftesting.com/u/daluu)\
**Post date:** [9 October 2025 06:44 UTC](https://club.ministryoftesting.com/t/c-c-or-python-java-scripts-which-are-easiest-to-test-with/86741/7 "2025-10-09T06:44:22Z")

</div>

I personally prefer ruby if/when I can for its more English like syntax, python comes next for its simplicity though it has its syntax quirks.

If I need something compile time as well or more like traditional programming, I’d consider go/golang, offering features of scripting languages and compiled languages.

From the test perspective beyond unit testing, it can depend on what test/automation library support is available to the languages as well.
