@Test public void testGetRhinoScriptRunner() throws Exception { initMocks(); assertNotNull(BeanLoader.loadBaseActionLoader().getSahiReport()); }
@After("execution(* net.sf.sahi.rhino.RhinoScriptRunner.setReporter*(*))") public void getRhinoScriptRunner(JoinPoint joinPoint) { BaseActionLoader environmentLoader = BeanLoader.loadBaseActionLoader(); if (joinPoint.getTarget() instanceof RhinoScriptRunner) { logger.info("Add RhinoScriptRunner to the JavaBackEnd"); environmentLoader.setRhinoScriptRunner((RhinoScriptRunner) joinPoint.getTarget()); } else { logger.warn(joinPoint.getTarget().getClass().getName() + " could not added to the JavaBackEnd!"); } }
RhinoAspect extends BaseSakuliAspect { @After("execution(* net.sf.sahi.rhino.RhinoScriptRunner.setReporter*(*))") public void getRhinoScriptRunner(JoinPoint joinPoint) { BaseActionLoader environmentLoader = BeanLoader.loadBaseActionLoader(); if (joinPoint.getTarget() instanceof RhinoScriptRunner) { logger.info("Add RhinoScriptRunner to the JavaBackEnd"); environmentLoader.setRhinoScriptRunner((RhinoScriptRunner) joinPoint.getTarget()); } else { logger.warn(joinPoint.getTarget().getClass().getName() + " could not added to the JavaBackEnd!"); } } }
RhinoAspect extends BaseSakuliAspect { @After("execution(* net.sf.sahi.rhino.RhinoScriptRunner.setReporter*(*))") public void getRhinoScriptRunner(JoinPoint joinPoint) { BaseActionLoader environmentLoader = BeanLoader.loadBaseActionLoader(); if (joinPoint.getTarget() instanceof RhinoScriptRunner) { logger.info("Add RhinoScriptRunner to the JavaBackEnd"); environmentLoader.setRhinoScriptRunner((RhinoScriptRunner) joinPoint.getTarget()); } else { logger.warn(joinPoint.getTarget().getClass().getName() + " could not added to the JavaBackEnd!"); } }  }
RhinoAspect extends BaseSakuliAspect { @After("execution(* net.sf.sahi.rhino.RhinoScriptRunner.setReporter*(*))") public void getRhinoScriptRunner(JoinPoint joinPoint) { BaseActionLoader environmentLoader = BeanLoader.loadBaseActionLoader(); if (joinPoint.getTarget() instanceof RhinoScriptRunner) { logger.info("Add RhinoScriptRunner to the JavaBackEnd"); environmentLoader.setRhinoScriptRunner((RhinoScriptRunner) joinPoint.getTarget()); } else { logger.warn(joinPoint.getTarget().getClass().getName() + " could not added to the JavaBackEnd!"); } }  @After("execution(* net.sf.sahi.rhino.RhinoScriptRunner.setReporter*(*))") void getRhinoScriptRunner(JoinPoint joinPoint); @Before("execution(* org.sakuli.actions.*.*(..)) &&" + "@annotation(logToResult)") void doTestCaseActionLog(JoinPoint joinPoint, LogToResult logToResult); @Before("execution(* org.sakuli.actions.screenbased.*.*(..)) &&" + "@annotation(logToResult)") void doScreenBasedActionLog(JoinPoint joinPoint, LogToResult logToResult); @Before("execution(* org.sakuli.actions.environment.*.*(..)) &&" + "@annotation(logToResult)") void doEnvironmentLog(JoinPoint joinPoint, LogToResult logToResult); @Before("execution(* org.sakuli.actions.logging.*.*(..)) &&" + "@annotation(logToResult)") void doLoggingLog(JoinPoint joinPoint, LogToResult logToResult); @Before("execution(* net.sf.sahi.report.Report.addResult(..))") void doHandleRhinoException(JoinPoint joinPoint); }
RhinoAspect extends BaseSakuliAspect { @After("execution(* net.sf.sahi.rhino.RhinoScriptRunner.setReporter*(*))") public void getRhinoScriptRunner(JoinPoint joinPoint) { BaseActionLoader environmentLoader = BeanLoader.loadBaseActionLoader(); if (joinPoint.getTarget() instanceof RhinoScriptRunner) { logger.info("Add RhinoScriptRunner to the JavaBackEnd"); environmentLoader.setRhinoScriptRunner((RhinoScriptRunner) joinPoint.getTarget()); } else { logger.warn(joinPoint.getTarget().getClass().getName() + " could not added to the JavaBackEnd!"); } }  @After("execution(* net.sf.sahi.rhino.RhinoScriptRunner.setReporter*(*))") void getRhinoScriptRunner(JoinPoint joinPoint); @Before("execution(* org.sakuli.actions.*.*(..)) &&" + "@annotation(logToResult)") void doTestCaseActionLog(JoinPoint joinPoint, LogToResult logToResult); @Before("execution(* org.sakuli.actions.screenbased.*.*(..)) &&" + "@annotation(logToResult)") void doScreenBasedActionLog(JoinPoint joinPoint, LogToResult logToResult); @Before("execution(* org.sakuli.actions.environment.*.*(..)) &&" + "@annotation(logToResult)") void doEnvironmentLog(JoinPoint joinPoint, LogToResult logToResult); @Before("execution(* org.sakuli.actions.logging.*.*(..)) &&" + "@annotation(logToResult)") void doLoggingLog(JoinPoint joinPoint, LogToResult logToResult); @Before("execution(* net.sf.sahi.report.Report.addResult(..))") void doHandleRhinoException(JoinPoint joinPoint); static final String ALREADY_PROCESSED; }