Can automated GUI test cases written for project without entry point (without main class)?

StackOverflow https://stackoverflow.com/questions/22836285

  •  26-06-2023
  •  | 
  •  

Question

I am working on a project where there is no necessity of having an entry point (without a main class). I have been thinking about implementing few GUI test cases using FEST or Jemmy (using NetBeans IDE). Is it possible to automate GUI tests without an entry point?

Was it helpful?

Solution

Yes, a testing-framework like FEST does not need a main Class. The test is executed by a Testrunner provided by JUnit or TestNG. The fixtures to access the GUI Components are created by the public constructors of your Elements. So like for every Unit test there is no need for a main method.

Here is a tutorial for FEST.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top