![]() test scripts (test methods) where the main business logic resides, should be tagged with annotation. Below listed are some of the most widely used annotations in test framework. It is represented TestNG uses these annotations to help create a framework. Then create a new Java class without the Main method.Īfter writing the codes, you will notice that TestNG annotations are underlined with red, it means that the Eclipse IDE doesn’t know which library to refer for, just place the cursor over it, and select import from “” as show in the below screenshot to import.Īn annotation is a tag that provides additional information about the class or method.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |