Skip to content

Commit

Permalink
Fixed #19
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay Sharma committed Oct 26, 2023
1 parent 4e6087c commit 2fc67ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
21 changes: 12 additions & 9 deletions Listener-XML/soapuiextentter-listeners.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<tns:soapui-listeners xmlns:tns="http://eviware.com/soapui/config">
<!--This will initialize TestStep level reporting-->
<tns:listener id="TestStepListener" listenerClass="com.soapuiextentter.listener.ExtenterTestRunListener"
listenerInterface="com.eviware.soapui.model.testsuite.TestRunListener" />
<!--This will initialize TestCase level reporting-->
<tns:listener id="TestCaseListener" listenerClass="com.soapuiextentter.listener.ExtenterTestSuiteRunListener"
listenerInterface="com.eviware.soapui.model.testsuite.TestSuiteRunListener" />
<!--This will initialize TestSuite level reporting-->
<tns:listener id="TestSuiteListener" listenerClass="com.soapuiextentter.listener.ExtenterProjectRunListener"
listenerInterface="com.eviware.soapui.model.testsuite.ProjectRunListener" />
<!--This will initialize TestStep level reporting-->
<tns:listener id="TestStepListener"
listenerClass="com.soapuiextentter.listener.ExtenterTestRunListener"
listenerInterface="com.eviware.soapui.model.testsuite.TestRunListener" />
<!--This will initialize TestCase level reporting-->
<tns:listener id="TestCaseListener"
listenerClass="com.soapuiextentter.listener.ExtenterTestSuiteRunListener"
listenerInterface="com.eviware.soapui.model.testsuite.TestSuiteRunListener" />
<!--This will initialize TestSuite level reporting-->
<tns:listener id="TestSuiteListener"
listenerClass="com.soapuiextentter.listener.ExtenterProjectRunListener"
listenerInterface="com.eviware.soapui.model.testsuite.ProjectRunListener" />
</tns:soapui-listeners>
3 changes: 2 additions & 1 deletion src/com/soapuiextentter/reporter/Report.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
public class Report {

private ExtentReports reports;
private Object object;
private static Map extentNodeMap;
private static Map extentTestMap;
private String finalReportPath;
Expand Down Expand Up @@ -448,6 +447,8 @@ private boolean envLogCheck(List<TestProperty> properties) {
"Invalid value specified for 'AddDataToReport' in project properties. Please check and correct.");
return propValue;
}
} else {
propValue = true;
}
}
}
Expand Down

0 comments on commit 2fc67ed

Please sign in to comment.