Author: lfryc(a)redhat.com
Date: 2009-12-15 05:27:28 -0500 (Tue, 15 Dec 2009)
New Revision: 16134
Modified:
branches/sandbox/rf-demo-ftest-iexplore/src/test/java/org/jboss/richfaces/integrationTest/AbstractSeleniumRichfacesTestCase.java
Log:
* GENERAL
- referencing selenium for logginTestListener in @BeforeMethod phase
Modified:
branches/sandbox/rf-demo-ftest-iexplore/src/test/java/org/jboss/richfaces/integrationTest/AbstractSeleniumRichfacesTestCase.java
===================================================================
---
branches/sandbox/rf-demo-ftest-iexplore/src/test/java/org/jboss/richfaces/integrationTest/AbstractSeleniumRichfacesTestCase.java 2009-12-15
09:38:17 UTC (rev 16133)
+++
branches/sandbox/rf-demo-ftest-iexplore/src/test/java/org/jboss/richfaces/integrationTest/AbstractSeleniumRichfacesTestCase.java 2009-12-15
10:27:28 UTC (rev 16134)
@@ -95,10 +95,14 @@
protected void addTestListeners(ITestContext context) {
TestRunner runner = (TestRunner) context;
loggingTestListener = new SeleniumLoggingTestListener();
- loggingTestListener.setSelenium(selenium);
runner.addTestListener(loggingTestListener);
}
+ @BeforeMethod
+ protected void registerSeleniumInListeners() {
+ loggingTestListener.setSelenium(selenium);
+ }
+
/**
* Initializes context before each class run.
*