<s>
TestNG	B-Language
is	O
a	O
testing	O
framework	B-Architecture
for	O
the	O
Java	B-Language
programming	I-Language
language	I-Language
created	O
by	O
Cédric	O
Beust	O
and	O
inspired	O
by	O
JUnit	B-Language
and	O
NUnit	B-Application
.	O
</s>
<s>
The	O
design	O
goal	O
of	O
TestNG	B-Language
is	O
to	O
cover	O
a	O
wider	O
range	O
of	O
test	O
categories	O
:	O
unit	O
,	O
functional	O
,	O
end-to-end	O
,	O
integration	O
,	O
etc.	O
,	O
with	O
more	O
powerful	O
and	O
easy-to-use	O
functionalities	O
.	O
</s>
<s>
TestNG	B-Language
's	O
main	O
features	O
include	O
:	O
</s>
<s>
TestNG	B-Language
can	O
be	O
run	O
either	O
by	O
Ant	B-Application
via	O
build.xml	B-Application
(	O
with	O
or	O
without	O
a	O
test	O
suite	O
defined	O
)	O
,	O
or	O
by	O
an	O
IDE	O
plugin	O
with	O
visual	O
results	O
.	O
</s>
<s>
Embeds	O
BeanShell	B-Language
for	O
further	O
flexibility	O
.	O
</s>
<s>
Default	O
JDK	B-Language
functions	O
for	O
runtime	O
and	O
logging	O
(	O
no	O
dependencies	O
)	O
.	O
</s>
<s>
A	O
data	O
provider	O
in	O
TestNG	B-Language
is	O
a	O
method	O
in	O
a	O
test	O
class	O
,	O
which	O
provides	O
an	O
array	O
of	O
varied	O
actual	O
values	O
to	O
dependent	O
test	O
methods	O
.	O
</s>
<s>
TestNG	B-Language
will	O
invoke	O
the	O
iterator	O
and	O
then	O
the	O
test	O
method	O
with	O
the	O
parameters	O
returned	O
by	O
this	O
iterator	O
one	O
by	O
one	O
.	O
</s>
<s>
TestNG	B-Language
is	O
supported	O
,	O
out-of-the-box	O
or	O
via	O
plug-ins	O
,	O
by	O
each	O
of	O
the	O
three	O
major	O
Java	B-Language
IDEs	O
-	O
Eclipse	B-Application
,	O
IntelliJ	B-Language
IDEA	I-Language
,	O
and	O
NetBeans	B-Application
.	O
</s>
<s>
It	O
also	O
comes	O
with	O
a	O
custom	O
task	O
for	O
Apache	B-Application
Ant	I-Application
and	O
is	O
supported	O
by	O
the	O
Maven	B-Language
build	O
system	O
.	O
</s>
<s>
The	O
Hudson	B-Language
continuous	O
integration	O
server	O
has	O
built-in	O
support	O
for	O
TestNG	B-Language
and	O
is	O
able	O
to	O
track	O
and	O
chart	O
test	O
results	O
over	O
time	O
.	O
</s>
<s>
Most	O
Java	B-Language
code	I-Language
coverage	I-Language
tools	I-Language
,	O
such	O
as	O
Cobertura	B-Language
,	O
work	O
seamlessly	O
with	O
TestNG	B-Language
.	O
</s>
<s>
Note	O
:	O
TestNG	B-Language
support	O
for	O
Eclipse	B-Application
is	O
only	O
embedded	O
in	O
the	O
Eclipse	B-Application
Marketplace	O
for	O
Eclipse	B-Application
versions	O
up	O
to	O
2018-09	O
(	O
4.9	O
)	O
.	O
</s>
<s>
For	O
later	O
versions	O
of	O
Eclipse	B-Application
,	O
TestNG	B-Language
must	O
be	O
manually	O
installed	O
as	O
per	O
instructions	O
in	O
the	O
TestNG	B-Language
site	O
.	O
</s>
<s>
TestNG	B-Language
generates	O
test	O
reports	O
in	O
HTML	O
and	O
XML	O
formats	O
.	O
</s>
<s>
The	O
XML	O
output	O
can	O
be	O
transformed	O
by	O
the	O
Ant	B-Application
JUnitReport	O
task	O
to	O
generate	O
reports	O
similar	O
to	O
those	O
obtained	O
when	O
using	O
JUnit	B-Language
.	O
</s>
<s>
Since	O
version	O
4.6	O
,	O
TestNG	B-Language
also	O
provides	O
a	O
reporter	O
API	O
that	O
permits	O
third-party	O
report	O
generators	O
,	O
such	O
as	O
ReportNG	O
,	O
</s>
<s>
PDFngreport	O
and	O
TestNG-XSLT	O
,	O
to	O
be	O
used	O
.	O
</s>
<s>
TestNG	B-Language
has	O
a	O
longstanding	O
rivalry	O
with	O
another	O
testing	O
tool	O
JUnit	B-Language
.	O
</s>
<s>
Each	O
framework	B-Architecture
has	O
differences	O
and	O
respective	O
advantages	O
.	O
</s>
<s>
Stack	B-Error_Name
Overflow	I-Error_Name
discussions	O
reflect	O
this	O
controversy	O
.	O
</s>
<s>
In	O
JUnit	B-Language
5	O
,	O
the	O
@BeforeAll	O
and	O
@AfterAll	O
methods	O
have	O
to	O
be	O
declared	O
as	O
static	O
in	O
most	O
circumstances	O
.	O
</s>
<s>
TestNG	B-Language
does	O
not	O
have	O
this	O
constraint	O
.	O
</s>
<s>
TestNG	B-Language
includes	O
four	O
additional	O
setup/teardown	O
annotation	O
pairs	O
for	O
the	O
test	O
suite	O
and	O
groups	O
:	O
@BeforeSuite	O
,	O
@AfterSuite	O
,	O
@BeforeTest	O
,	O
@AfterTest	O
,	O
@BeforeGroup	O
and	O
@AfterGroup	O
,	O
@BeforeMethod	O
and	O
@AfterMethod	O
.	O
</s>
<s>
TestNG	B-Language
also	O
provides	O
support	O
to	O
automate	O
testing	O
an	O
application	O
using	O
selenium	O
.	O
</s>
<s>
TestNG	B-Language
has	O
two	O
ways	O
for	O
providing	O
varying	O
parameter	O
values	O
to	O
a	O
test	O
method	O
:	O
by	O
setting	O
the	O
testng.xml	O
,	O
and	O
by	O
defining	O
a	O
@DataProvider	O
method	O
.	O
</s>
<s>
In	O
JUnit	B-Language
5	O
,	O
the	O
@ParameterizedTest	O
annotation	O
allows	O
parameterized	O
testing	O
.	O
</s>
<s>
In	O
JUnit	B-Language
4	O
,	O
@RunWith	O
and	O
@Parameters	O
are	O
used	O
to	O
facilitate	O
parameterized	O
tests	O
,	O
where	O
the	O
@Parameters	O
method	O
has	O
to	O
return	O
a	O
List[]	O
with	O
the	O
parameterized	O
values	O
,	O
which	O
will	O
be	O
fed	O
into	O
the	O
test	O
class	O
constructor	O
.	O
</s>
<s>
Different	O
users	O
often	O
prefer	O
certain	O
features	O
of	O
one	O
framework	B-Architecture
or	O
another	O
.	O
</s>
<s>
JUnit	B-Language
is	O
more	O
widely	O
popular	O
and	O
often	O
shipped	O
with	O
mainstream	O
IDEs	O
by	O
default	O
.	O
</s>
<s>
TestNG	B-Language
is	O
noted	O
for	O
extra	O
configuration	O
options	O
and	O
capability	O
for	O
different	O
kinds	O
of	O
testing	O
.	O
</s>
