Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
f526e359
Commit
f526e359
authored
May 14, 2015
by
arpitgupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes to the output format
parent
55e893d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
TestNGListener.java
...java/org/apache/atlas/regression/util/TestNGListener.java
+6
-3
No files found.
regression/src/test/java/org/apache/atlas/regression/util/TestNGListener.java
View file @
f526e359
...
...
@@ -29,13 +29,15 @@ import java.util.Arrays;
public
class
TestNGListener
implements
ITestListener
{
private
static
final
Logger
LOGGER
=
Logger
.
getLogger
(
TestNGListener
.
class
);
private
final
String
header
=
StringUtils
.
repeat
(
"-"
,
80
);
private
final
String
sep
=
StringUtils
.
repeat
(
"-"
,
5
);
private
final
String
footer
=
StringUtils
.
repeat
(
"#"
,
80
);
private
enum
resultStatus
{
SUCCESS
,
FAILED
,
SKIPPED
,
TestFailedButWithinSuccessPercentage
}
public
void
onTestStart
(
ITestResult
iTestResult
)
{
LOGGER
.
info
(
header
);
LOGGER
.
info
(
String
.
format
(
"Testing going to start for: %s.%s(%s)"
,
iTestResult
.
getTestClass
().
getName
(),
String
.
format
(
"Testing going to start for: %s.%s(%s)"
,
iTestResult
.
getTestClass
().
getName
(),
iTestResult
.
getName
(),
Arrays
.
toString
(
iTestResult
.
getParameters
())));
NDC
.
push
(
iTestResult
.
getName
());
}
...
...
@@ -69,8 +71,9 @@ public class TestNGListener implements ITestListener {
private
void
endOfTestHook
(
ITestResult
result
,
resultStatus
outcome
)
{
LOGGER
.
info
(
String
.
format
(
"Testing going to end for: %s.%s(%s) %s"
,
result
.
getTestClass
().
getName
(),
result
.
getName
(),
Arrays
.
toString
(
result
.
getParameters
()),
outcome
));
String
.
format
(
"Testing going to end for: %s.%s(%s) %s Status: %s"
,
result
.
getTestClass
().
getName
(),
result
.
getName
(),
Arrays
.
toString
(
result
.
getParameters
()),
sep
,
outcome
));
LOGGER
.
info
(
footer
);
NDC
.
pop
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment