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

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

  •  26-06-2023
  •  | 
  •  

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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top