TestNG and the requirement for public for the test case method

If we miss out on the “public” scope modifier for the test case method annotated with @Test then that is not identified as a test case by the framework and is not run.

Ensure “public” for any test case (annotated with @Test)

Leave a Reply

Your email address will not be published. Required fields are marked *

     

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">