Index
A
- @AfterClass / Annotations in TestNG
- @AfterGroups / Annotations in TestNG
- @AfterMethod / Annotations in TestNG
- @AfterSuite / Annotations in TestNG
- @AfterTest / Annotations in TestNG
- afterClass method / What just happened?
- AfterClass method / Have a go hero
- alwaysRun attribute / Test annotation
- Ant
- about / Ant
- installing / Installing Ant
- using / Using Ant
- terminologies / Using Ant
- URL / Using Ant
- used, for running TestNG tests / Time for action – using Ant to run TestNG tests, What just happened?
- advantages / What just happened?
- JUnit tests, running with TestNG / Running JUnit tests along with TestNG through Ant, Time for action – running JUnit and TestNG tests through Ant, What just happened?
- Ant, build process
- Ant, terminologies
- ant testng-execution command / Time for action – using Ant to run TestNG tests
- ArrayList class
- about / Unit testing with TestNG
- Assert.assertTrue method / Time for action – writing a custom logger, Time for action – generating TestNG HTML and XML reports
- Assert class
- methods / Assertion with TestNG
- assertion
- about / Assertion with TestNG
- with TestNG / Assertion with TestNG
- attributes, Test annotation
- about / Test annotation
- alwaysRun / Test annotation
- dataProvider / Test annotation
- dataProviderClass / Test annotation
- dependsOnGroups / Test annotation
- dependsOnMethods / Test annotation
- description / Test annotation
- enabled / Test annotation
- expectedExceptions / Test annotation
- groups / Test annotation
- timeOut / Test annotation
B
- @BeforeClass / Annotations in TestNG
- @BeforeGroups / Annotations in TestNG
- @BeforeMethod / Annotations in TestNG
- @BeforeSuite / Annotations in TestNG
- @BeforeTest / Annotations in TestNG
- Before and After annotation options
- beforeClass method / What just happened?, Have a go hero
- beforeTest method / Time for action – running tests inside a suite in parallel
- bin directory / Installing Ant, Installing Maven
- build.xml file / Ant
- build automation
- about / Build automation
- advantages / Advantages of build automation
- build tools
C
- classes-test-testng.xml file / Time for action – running test classes in parallel
- command prompt
- used, for executing testng.xml / Time for action – running testng.xml through the command prompt, What just happened?
- compile option / Time for action – using Ant to run TestNG tests
- configuration options, ReportNG report / ReportNG configuration options
- org.uncommons.reportng.escape-output / ReportNG configuration options
- org.uncommons.reportng.frames / ReportNG configuration options
- org.uncommons.reportng.locale / ReportNG configuration options
- org.uncommons.reportng.stylesheet / ReportNG configuration options
- org.uncommons.reportng.title / ReportNG configuration options
- configuration options, Reporty-ng report
- testNgXslt.outputDir / Configuration options for Reporty-ng report
- testNgXslt.cssFile / Configuration options for Reporty-ng report
- testNgXslt.showRuntimeTotals / Configuration options for Reporty-ng report
- testNgXslt.reportTitle / Configuration options for Reporty-ng report
- testNgXslt.sortTestCaseLinks / Configuration options for Reporty-ng report
- testNgXslt.chartScaleFactor / Configuration options for Reporty-ng report
- testNgXslt.testDetailsFilter / Configuration options for Reporty-ng report
- Console window / Time for action – writing first parallel test, Time for action – running test methods in parallel, Time for action – running test classes in parallel, Time for action – running tests inside a suite in parallel, Time for action – running independent test in threads
- custom logger
- custom reporter
D
- @DataProvider / Annotations in TestNG
- data-driven tests
- about / TestNG
- DataProvider
- about / DataProvider
- Test annotation, using on class / Time for action – using Test annotation on Class
- in different class / Time for action – DataProvider in different class
- using, with @Factory annotation / Using DataProvider along with the @Factory annotation, Time for action – using DataProvider with Factory
- dataProvider attribute / Test annotation
- dataProviderClass attribute / Test annotation
- DataProvider test
- about / DataProvider or Factory
- creating / Time for action – the DataProvider test, What just happened?
- default group
- about / Default group
- working / Default group
- assigning, to set of tests / Time for action – assigning a default group to a set of tests, What just happened?
- Dependencies, Maven / Using Maven
- dependency test
- about / Dependency test, Dependency test
- depending on sinlge test, creating / Time for action – creating a test that depends on another test, What just happened?
- depending on multiple tests, creating / Time for action – creating a test that depends on multiple tests, What just happened?
- inherited dependency test / Inherited dependency test
- regular expressions, using / Using regular expressions, Time for action – using regular expressions, What just happened?
- executing, with @Factory annotation / Time for action – dependency with the @Factory annotation
- running sequentially / Time for action – running a dependency test sequentially
- configuring / Time for action – configuring a dependency test
- dependent groups
- about / Dependent groups
- dependsOnGroups attribute / Test annotation
- dependsOnMethods attribute / Test annotation
- description attribute / Test annotation
E
- Eclipse
- TestNG, installing / Installing TestNG onto Eclipse
- URL / Installing TestNG onto Eclipse
- used, for executing testng.xml / Using Eclipse, Time for action – executing testng.xml using Eclipse
- configuring, for testng.xml / Time for action – configuring Eclipse to run a particular TestNG XML file
- used, for running TestNG group / Using Eclipse
- enabled attribute / Test annotation
- exception test
- about / Exception test
- working / Exception test
- writing / Time for action – writing an exception test
- verifying message, writing / Time for action – writing a exception test verifying message, What just happened?
- excludedgroups option, Ant / Different configurations to be used with TestNG task
- excludedgroups option, Maven / Different configurations to be used with Maven
- expectedExceptions attribute / Test annotation
F
- @Factory / Annotations in TestNG
- @Factory annotation
- using / First factory program
- using, with DataProvider / Using DataProvider along with the @Factory annotation, Time for action – using DataProvider with Factory
- used, for executing dependency test / Time for action – dependency with the @Factory annotation
- factory
- about / What is factory?
- factory methods
- parameters, passing to test classes / Passing parameters to test classes, Time for action – passing parameters to test classes, What just happened?
- Factory test
- about / DataProvider or Factory
- creating / Time for action – the Factory test
- factory test
- creating / Time for action – first factory test
- features, Selenium / TestNG with Selenium
- features, TestNG
- about / Features of TestNG
- Multiple Before option / Features of TestNG
- After annotation option / Features of TestNG
- XML based test configuration / Features of TestNG
- test suite definition / Features of TestNG
- dependent methods / Features of TestNG
- groups / Features of TestNG
- dependent groups / Features of TestNG
- parameterization, of test methods / Features of TestNG
- data-driven testing / Features of TestNG
- multithreaded execution / Features of TestNG
- better reporting / Features of TestNG
- Open API / Features of TestNG
- functional testing
- about / Functional testing
- automation tools / Functional testing
G
- getCurrentTime method / Time for action – writing a custom logger
- groups
- groups attribute / Test annotation
- groups option, Ant / Different configurations to be used with TestNG task
- groups option, Maven / Different configurations to be used with Maven
I
- Id value / Time for action – running test methods in parallel, Time for action – running test classes in parallel
- include/exclude methods
- using / Include/exclude methods
- include/exclude packages
- about / Include/exclude packages
- using / Include/exclude packages
- including/excluding groups
- performing, testng XML used / Including and excluding groups, Time for action – including/excluding groups using the testng XML, What just happened?
- IndependentTestThreading class / Time for action – running independent test in threads
- inherited dependency test
- init option / Time for action – using Ant to run TestNG tests
- Installations
- Ant / Installing Ant
- Maven / Installing Maven
- invocationCount attribute / Time for action – running independent test in threads, What just happened?
J
- Java project
- about / The Java project
- creating / Time for action – creating a Java project
- Jmock
- about / Jmock
- using, with TestNG / Time for action – using JMock with TestNG, What just happened?
- URL / What just happened?
- JUnit
- about / TestNG
- JUnit and TestNG tests
- JUnit HTML report
- about / Generating a JUnit HTML report, What just happened?
- generating / Time for action – generating a JUnit report
- JUnit migration
- to TestNG / Migrating from JUnit to TestNG
- JUnit test
- converting, to TestNG test / Time for action – converting a JUnit test to a TestNG test, What just happened?
- JUnit tests
- running, through TestNG / Running your JUnit tests through TestNG
- writing / Time for action – writing a JUnit test, What just happened?
- running, with TestNG / Running JUnit tests along with TestNG through Ant, Time for action – running JUnit and TestNG tests through Ant, What just happened?
L
- Listeners / Logging and reporting
- listeners option, Ant / Different configurations to be used with TestNG task
- listeners option, Maven / Different configurations to be used with Maven
- logger
- custom logger / Time for action – writing a custom logger
- logging
- about / Logging and reporting
M
- main method / Time for action – configuring a dependency test
- Maven
- about / Maven
- installing / Installing Maven
- URL / Installing Maven, Using Maven
- using / Using Maven
- used, for running TestNG tests / Time for action – using Maven to run TestNG tests, What just happened?, Different configurations to be used with Maven
- configurations / Different configurations to be used with Maven, Have a go hero
- Maven, configurations
- groups option / Different configurations to be used with Maven
- excludedgroups option / Different configurations to be used with Maven
- listeners option / Different configurations to be used with Maven
- outputdir option / Different configurations to be used with Maven
- parallel option / Different configurations to be used with Maven
- threadCount option / Different configurations to be used with Maven
- testname option / Different configurations to be used with Maven
- timeOut option / Different configurations to be used with Maven
- Maven, features
- project / Using Maven
- Plugins / Using Maven
- Dependencies / Using Maven
- maven-surefire-plugin / What just happened?
- mocking
- about / Mocking
- with TestNG / Mocking with TestNG
- mocking strategies
- about / Different mocking strategies
- mocking utilities
- EasyMock / Different mocking strategies
- PowerMock / Different mocking strategies
- Jmockit / Different mocking strategies
- Jmock / Jmock
- Mockito / Mockito
- Mockito
- about / Mockito
- using / Time for action – using Mockito, What just happened?
- URL / What just happened?
- multigroup dependency
- about / Multigroup dependency
- using, in XML / Time for action – defining multigroup dependency in XML, What just happened?
- multiple dependency test
- multithreaded execution
- advantages / Advantages and uses
- multithreaded mode
- about / Parallelism
- multithreaded program
- writing / A simple multithreaded test
- parallel test, writing / Time for action – writing first parallel test, What just happened?
- mvn command / Installing Maven
- mvn test command / Time for action – using Maven to run TestNG tests
N
- NUnit
- about / TestNG
O
- outputdir option, Ant / Different configurations to be used with TestNG task
- outputdir option, Maven / Different configurations to be used with Maven
P
- @Parameters / Annotations in TestNG
- parallel
- test methods, running / Running test methods in parallel, Time for action – running test methods in parallel, What just happened?
- test classes, running / Running test classes in parallel, Time for action – running test classes in parallel, What just happened?
- tests, running inside suite / Running tests inside a suite in parallel, Time for action – running tests inside a suite in parallel, What just happened?
- parallel attribute / What just happened?, What just happened?
- Parallelism
- about / Parallelism
- advantages / Advantages and uses
- parallel option, Ant / Different configurations to be used with TestNG task
- parallel option, Maven / Different configurations to be used with Maven
- parallel test
- parameterization
- about / Parameterization of test
- through testng.xml / Parameterization through testng.xml, Time for action – parameterization through testng.xml, What just happened?
- optional values, providing / Time for action – providing optional values, What just happened?
- Plugins, Maven / Using Maven
- pom.xml file / Time for action – using Maven to run TestNG tests
- project, Ant / Using Ant
- project, Maven / Using Maven
R
- regular expression
- using, for dependency / Time for action – using regular expressions for dependency
- regular expressions
- about / Using regular expressions to include/exclude
- using / Using regular expressions to include/exclude, Time for action – using regular expressions for test
- using, in testng XML / Time for action – using regular expressions in the testng XML, What just happened?
- using, in dependency test / Time for action – using regular expressions, What just happened?
- Reporters / Logging and reporting
- ReportNG report
- about / Generating a ReportNG report
- generating / Time for action – generating a ReportNG report, What just happened?
- configuration options / ReportNG configuration options
- Reporty-ng report
- about / Generating a Reporty-ng (former TestNG-xslt) report
- generating / Time for action – generating a Reporty-ng report, What just happened?
- configuration options / Configuration options for Reporty-ng report
S
- SampleBuildTest class / Time for action – using Ant to run TestNG tests
- sample project, test suite
- creating / Sample project
- test, creating with classes / Creating a test with classes, Time for action – creating a test with classes
- test, creating with packages / Creating a test using packages, Time for action – creating a test with packages, What just happened?
- test, creating with methods / Creating a test with methods, Time for action – creating a test with methods
- test, creating with package, class, and test method / Time for action – creating a test suite with package, class, and test method, What just happened?
- SampleTestClassOne class / Time for action – running test classes in parallel
- SampleTestClassTwo class / Time for action – running test classes in parallel
- Sample Test link / Time for action – generating a ReportNG report
- SampleTestMethod class / Time for action – running test methods in parallel
- SampleTestSuite class / Time for action – running tests inside a suite in parallel
- Selenium
- about / TestNG with Selenium
- features / TestNG with Selenium
- using, with TestNG / Time for action – using Selenium with TestNG, What just happened?
- setExcludedMethod / What just happened?
- SimpleClass class / Time for action – writing first parallel test
- simple group dependency
- about / Simple group dependency
- using, in XML / Time for action – using simple dependency in XML
- single test method dependency
- software development life cycle (SDLC) / Testing and test automation
T
- @Test / Annotations in TestNG
- target, Ant / Using Ant
- tasks, Ant / Using Ant
- test
- disabling / Disabling a test
- test, dependent on group
- test, dependent on methods from different class
- test-method
- disabling / Time for action – disabling a test method
- test.parallelism package / Time for action – writing first parallel test, Time for action – running test classes in parallel, Time for action – running tests inside a suite in parallel, Time for action – running independent test in threads
- Test annotation
- about / Test annotation
- attributes / Test annotation
- using, on class / Time for action – using test annotation on class
- test automation
- about / Testing and test automation
- test classes
- running, in parallel / Running test classes in parallel, Time for action – running test classes in parallel, What just happened?
- testing.xml file / Time for action – using Ant to run TestNG tests
- test methods
- running, in parallel / Running test methods in parallel, Time for action – running test methods in parallel, What just happened?
- including / Time for action – including test methods
- testname option, Ant / Different configurations to be used with TestNG task
- testname option, Maven / Different configurations to be used with Maven
- TestNG
- about / TestNG, Logging and reporting, Unit testing with TestNG
- features / Features of TestNG
- downloading / Downloading TestNG
- prerequisite / Prerequisites
- installing, onto Eclipse / Time for action – installing TestNG onto Eclipse
- multiple tests, creating / Creating multiple tests
- include/exclude packages / Include/exclude packages
- include/exclude methods / Include/exclude methods
- exception test / Exception test
- time test / Time test
- parameterization / Parameterization of test
- DataProvider / DataProvider
- including/excluding groups / Including and excluding groups
- regular expressions / Using regular expressions
- default group / Default group
- dependency test / Dependency test, Dependency with the @Factory annotation
- XML-based dependency configuration / XML-based dependency configuration
- report, generating, ways / Logging and reporting
- Listeners / Logging and reporting
- Reporters / Logging and reporting
- HTML / TestNG HTML and XML report
- XML report / TestNG HTML and XML report
- running programmatically / Time for action – running TestNG programmatically, What just happened?, Have a go hero
- JUnit tests, running through / Running your JUnit tests through TestNG
- JUnit tests, running with / Running JUnit tests along with TestNG through Ant, Time for action – running JUnit and TestNG tests through Ant, What just happened?
- JUnit, migrating to / Migrating from JUnit to TestNG
- used, for unit testing / Time for action – unit testing with TestNG, What just happened?
- assertions / Assertion with TestNG
- mocking implementation / Mocking with TestNG
- JMock, using with / Time for action – using JMock with TestNG, What just happened?
- Selenium, using with / Time for action – using Selenium with TestNG, What just happened?
- testng-execution option / Time for action – using Ant to run TestNG tests
- testng.xml
- about / About testng.xml
- used, for creating test suite / Time for action – creating a test suite
- running, through command prompt / Using command prompt, Time for action – running testng.xml through the command prompt, What just happened?
- running, Eclipse used / Time for action – executing testng.xml using Eclipse
- creating, with multiple tests / Time for action – testng XML with multiple tests, What just happened?
- used, for running TestNG group / Using the testng XML
- regular expressions, using / Time for action – using regular expressions in the testng XML, What just happened?
- testng.xml file / Time for action – using Ant to run TestNG tests
- TestNG annotations
- about / Annotations in TestNG
- @BeforeSuite / Annotations in TestNG
- @AfterSuite / Annotations in TestNG
- @BeforeTest / Annotations in TestNG
- @AfterTest / Annotations in TestNG
- @BeforeGroups / Annotations in TestNG
- @AfterGroups / Annotations in TestNG
- @BeforeClass / Annotations in TestNG
- @AfterClass / Annotations in TestNG
- @BeforeMethod / Annotations in TestNG
- @AfterMethod / Annotations in TestNG
- @DataProvider / Annotations in TestNG
- @Factory / Annotations in TestNG
- @Listeners / Annotations in TestNG
- @Parameters / Annotations in TestNG
- @Test / Annotations in TestNG
- Before and After annotation, running / Time for action – running the Before and After annotations
- Test annotation / Test annotation
- TestNG class
- TestNG group
- running / Running a TestNG group
- running, Eclipse used / Time for action – running a TestNG group through Eclipse, What just happened?
- running, testng XML used / Using the testng XML, Time for action – running a TestNG group using the testng XML, What just happened?
- about / Group of groups
- running, testng.xml used / Time for action – running a TestNG group using the testng XML
- TestNG HTML
- TestNG plugin options
- TestNG task
- configurations / Different configurations to be used with TestNG task, Have a go hero
- TestNG task, configurations
- groups option / Different configurations to be used with TestNG task
- excludedgroups option / Different configurations to be used with TestNG task
- listeners option / Different configurations to be used with TestNG task
- outputdir option / Different configurations to be used with TestNG task
- parallel option / Different configurations to be used with TestNG task
- threadCount option / Different configurations to be used with TestNG task
- testname option / Different configurations to be used with TestNG task
- timeOut option / Different configurations to be used with TestNG task
- TestNG test
- writing / Writing your first TestNG test
- Java project, creating / Time for action – creating a Java project, What just happened?
- TestNG class, creating / Time for action – creating your first TestNG class
- running / Running your first test program
- running, through Eclipse / Time for action – running tests through Eclipse
- JUnit test, converting to / Time for action – converting a JUnit test to a TestNG test, What just happened?
- TestNG tests
- running, Ant used / Time for action – using Ant to run TestNG tests, What just happened?
- testng XML
- JUnit Tests, running through TestNG / Time for action – running JUnit tests through TestNG, What just happened
- TestNG XML
- JUnit and TestNG tests, running simultaneously / Running JUnit and TestNG tests together with TestNG XML, Time for action – running JUnit and TestNG tests together, What just happened?
- TestNG XML report
- testNgXslt.chartScaleFactor / Configuration options for Reporty-ng report
- testNgXslt.cssFile / Configuration options for Reporty-ng report
- testNgXslt.outputDir / Configuration options for Reporty-ng report
- testNgXslt.reportTitle / Configuration options for Reporty-ng report
- testNgXslt.showRuntimeTotals / Configuration options for Reporty-ng report
- testNgXslt.sortTestCaseLinks / Configuration options for Reporty-ng report
- testNgXslt.testDetailsFilter / Configuration options for Reporty-ng report
- test package / Time for action – using Ant to run TestNG tests
- tests
- grouping / Grouping tests
- running, inside suite in parallel / Running tests inside a suite in parallel, Time for action – running tests inside a suite in parallel, What just happened?
- running, independent in threads / Time for action – running independent test in threads, What just happened?
- tests, belonging to group
- tests, having multiple groups
- tests parameteriaztion
- parameter values, passing / Time for action – passing parameter values, What just happened?
- test suite
- creating, testng.xml used / Time for action – creating a test suite
- running / Running testng.xml
- creating, by including test package / Time for action – test suite to include a particular package
- creating, by excluding test package / Time for action – test suite to exclude a particular package
- creating, by excluding test method / Time for action – test suite to exclude a particular method
- creating, with regular expression / Prerequisite – creating a sample project
- thread-count attribute / Time for action – writing first parallel test, What just happened?, What just happened?
- Thread.currentThread.getId() method / Time for action – writing first parallel test, Time for action – running test methods in parallel, Time for action – running test classes in parallel
- threadCount option, Ant / Different configurations to be used with TestNG task
- threadCount option, Maven / Different configurations to be used with Maven
- threadPoolSize attribute / Time for action – running independent test in threads
- threads
- independent tests, running / Time for action – running independent test in threads, What just happened?
- timeOut attribute / Test annotation, Time for action – running independent test in threads
- timeOut option, Ant / Different configurations to be used with TestNG task
- timeOut option, Maven / Different configurations to be used with Maven
- time test
- about / Time test
- writing, at suite level / Time for action – time test at suite level, What just happened?
- writing, at test-method level / Time for action – time test at test method level, What just happened?
U
- unit testing
- about / Unit testing with TestNG
- with TestNG / Time for action – unit testing with TestNG, What just happened?
X
- XML-based dependency configuration
- about / XML-based dependency configuration
- simple group dependency / Simple group dependency
- multigroup dependency / Multigroup dependency
- regular expression, using / Time for action – using regular expressions for dependency
- XmlClass class / What just happened?
- XmlDefine class / What just happened?
- XmlDependencies class / What just happened?
- XmlGroups class / What just happened?
- XmlInclude class / What just happened?
- XmlPackage class / What just happened?
- XmlSuite class / What just happened?
- XmlTest class / What just happened?