- \r
- public void execute(){\r
- TestResult testResult = (TestResult)getContext().getBean(result);\r
- testResult.close();\r
- \r
- if(report!=null){\r
- TestReport testReport = (TestReport)getContext().getBean(report);\r
- testReport.generateTestReport(testResult);\r
+\r
+ public void executeActions(String mode) {\r
+ if (!mode.equals(StructureRegistry.READ)) {\r
+ TestResult testResult = (TestResult) getContext().getBean(result);\r
+ testResult.close();\r
+\r
+ if (report != null) {\r
+ TestReport testReport = (TestReport) getContext().getBean(\r
+ report);\r
+ if (testReport instanceof StructureAware) {\r
+ ((StructureAware) testReport).notifyCurrentPath(\r
+ getRegistry(), null);\r
+ }\r
+ testReport.generateTestReport(testResult);\r
+ }\r