Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Testing frameworks implemented with Modules vs. Classpath

 
Ranch Hand
Posts: 73
1
Python Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to write a test framework from scratch. My boss (who isn't an expert on testing or Java) required to use Modules, reducing reliance on the classpath.
To be honest, I also have the urge to try and use the newest, most elegant and theoretically correct solution (overly rigid nature of my character). I mean, it's really weird to
see some guy show up with a project using an SDK from 2009 and no interest about what happened in Java in the last 10 years!

That's also the problem: I can't find guidance or examples online on how to build Selenium+Cucumber projects using features newer than Java 8. Actually, all such projects
use =< 1.8 compiler and the related deps. When you code in it, it's all "Deprecated" and god forbid if you need to introduce a new package, you'll be fishing for ancient deps
all day!

Anyway, could you please share some ideas from projects you've worked on, or just plain theory from your beautiful mind, about how to leverage on modules in a
Selenium-Cucumber (with page object models and JUnit/TestNG) test framework?
 
Sheriff
Posts: 16713
278
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So is time and money not a consideration at your place of business then? Because what you and your boss are proposing sounds like a colossal waste of time and money. Unless, of course, you're in the business of writing testing frameworks for maybe 5% of all Java users.
 
Saloon Keeper
Posts: 13426
302
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Agree with Junilu. What sets the new framework apart from existing ones?

Also, why are you looking for examples using Cucumber and Selenium? Are you planning on writing a framework that performs web automation tests and understands Gherkin?
 
Todor Kolev
Ranch Hand
Posts: 73
1
Python Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess we are in the lucky position of being able to make that call
I hope this is the last reply of this type. I mean, everything is one big waste of time, if you think about it.

If someone can refer to some interesting project or can suggest even a rough idea, it would be great!
 
Todor Kolev
Ranch Hand
Posts: 73
1
Python Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:Also, why are you looking for examples using Cucumber and Selenium? Are you planning on writing a framework that performs web automation tests and understands Gherkin?



Yes. Perhaps I am in the wrong forum? I searched for "Testing"...
 
Junilu Lacar
Sheriff
Posts: 16713
278
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Most of the testing frameworks in use today are open source so it's not hard to find where they are hosted. Where is JUnit source code

Before committing to the undertaking, I suggest you look at what you might be getting yourself into. Yes, JUnit was originally written by just two people (Kent Beck and Erich Gamma) on a trans-Atlantic flight, meaning in less than a day. That was merely the spark that lit the forest fire though. Countless hours have been contributed to that product to bring it to the state it's in today, roughly twenty years after that first back-of-a-napkin version.

The comment about a waste of time and money, while admittedly a bit blunt (sorry if that came across wrong), was meant to question the practicality of such an endeavor given that there are many other people who are already way ahead of you on this. If you are going to go ahead and make the call, at least consider forking an existing open source project that already has most of the features you may be thinking of providing in your framework anyway.
 
Todor Kolev
Ranch Hand
Posts: 73
1
Python Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just mentioning JUnit made me look up stuff in a different way and I found an article that looks promising (thanks!):
https://sormuras.github.io/blog/2018-09-11-testing-in-the-modular-world.html

PS: we are a "profit with a purpose company" and we definitely look at things differently.
 
Junilu Lacar
Sheriff
Posts: 16713
278
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Todor Kolev wrote:Just mentioning JUnit made me look up stuff in a different way and I found an article that looks promising (thanks!):
https://sormuras.github.io/blog/2018-09-11-testing-in-the-modular-world.html

PS: we are a "profit with a purpose company" and we definitely look at things differently.


The article looks interesting, thanks for sharing the link to it. It's great to work for a socially responsible organization (I'm assuming that's what is meant by "profit with a purpose") and I wish you luck and success in whichever direction you eventually choose to go.

By the way, here's a link to a podcast where Kent Beck explains the history of JUnit, how he and Erich lit the unit testing world on fire. https://www.se-radio.net/2010/09/episode-167-the-history-of-junit-and-the-future-of-testing-with-kent-beck/ so while I may have my doubts, maybe you'll prove me completely wrong and start your own testing fire that will sweep over the world.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic