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