![]() ![]() This more detailed examination includes code uses of these annotations. The chapter introduces Java annotations and standard Java annotations ( and before covering TestNG's specific annotations in a table with annotation name and brief description.Ĭhapter 3 of TestNG Beginner's Guide examines TestNG's annotations in more detail after the initial listing of them in the table with annotations names and descriptions. In this case, it's on TestNG's annotations. The third chapter of TestNG Beginner's Guide, like the second chapter, focuses on a core part of TestNG. As testng.xml is a core part of TestNG, it is not surprising that Chapter 2 is a core part of TestNG Beginner's Guide. The examples shown are Eclipse-oriented, but XML snippets are shown as well, which is useful for those not using Eclipse. This chapter contains some of the concepts central to using TestNG. It covers use of TestNG within Eclipse and from the command line. The second chapter of TestNG Beginner's Guide focuses on the testng.xml file, which it describes as "a configuration file for TestNG" that is "used to define test suites and tests in TestNG" and is "used to pass parameters to test methods." The chapter focuses on using testng.xml to specify test suites. The TestNG documentation includes a section on running TestNG from the command line. Similar instructions on using TestNG with Eclipse can be found in the TestNG Eclipse documentation. There are numerous screen snapshots in this Equinox-heavy portion of the chapter. It demonstrates creating an Eclipse project, associating the TestNG library with the Eclipse project, writing a TestNG-based test class, and executing the TestNG test class in Eclipse. The chapter spends multiple pages and several screen snapshots demonstrating configuration of TestNG within Eclipse via the plugin update site. The chapter describes how to acquire TestNG via download (testng-6.8.jar in the book) and explains five ways it can be run: command line, Eclipse plugin, IntelliJ IDEA plugin, Ant, and Maven. The chapter then introduces TestNG and provides a brief history and overview of the features of that open source unit testing framework. The first chapter of TestNG Beginner's Guide opens with a brief introduction to testing and automated testing. ![]() The Preface lists four things needed for getting most use out of TestNG Beginner's Guide: Java JDK, Eclipse, Linux or Windows, "basic knowledge of Java and testing." I have read about and played a little bit with TestNG before, but the vast majority of my Java unit testing experience has been with JUnit.Īuthor Varun Menon opens TestNG Beginner's Guide with the following statement in the Preface, "Currently, TestNG is the most widely used testing framework in the software industry." This is definitely not what I've found in my experience where JUnit has been used far more than TestNG in the different Java projects that I've worked on. I was happy to accept Packt Publishing's invitation to review the recently released (July 2013) book TestNG Beginner's Guide because I welcomed the opportunity to learn more about TestNG. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |