I noticed that TelluriumDataDrivenTest extends GroovyTestCase instead  
of BaseTelluriumGroovyTestCase. I would like to use setCustomConfig so  
I can change settings ( perhaps via system properties or profiles ).  
Something like the following

public class RunTest extends TelluriumDataDrivenTest {

   public void setUp() {
      setCustomConfig( true, 4444, System.getProperty('browser'),  
true, null, "localhost")
      init()
   }


   public void testDataDriven() {
                ...
   }
}


The following worked ok for me..

Index: core/src/main/groovy/org/tellurium/test/ddt/ 
TelluriumDataDrivenTest.groovy
===================================================================
--- core/src/main/groovy/org/tellurium/test/ddt/ 
TelluriumDataDrivenTest.groovy  (revision 1509)
+++ core/src/main/groovy/org/tellurium/test/ddt/ 
TelluriumDataDrivenTest.groovy  (working copy)
@@ -15,6 +15,7 @@
  import org.tellurium.dsl.UiDslParser
  import org.tellurium.framework.TelluriumFramework
  import org.tellurium.test.helper.*
+import org.tellurium.test.groovy.BaseTelluriumGroovyTestCase

  /**
   * Tellurium Data Driven test and it can include multiple data  
driven modules so that you do not have
@@ -25,7 +26,7 @@
   * Date: Jul 31, 2008
   *
   */
-abstract class TelluriumDataDrivenTest extends GroovyTestCase {
+abstract class TelluriumDataDrivenTest extends  
BaseTelluriumGroovyTestCase {
      protected static final String STEP = "step"
      protected static final String STEP_OVER = "stepOver"
      protected static final String STEP_TO_END = "stepToEnd"
@@ -94,7 +95,7 @@
          listener = new DefaultResultListener()
          dtddm = new DefaultTelluriumDataDrivenModule(thr, fsr, fs,  
testreg, dataProvider)
          ui = dtddm.getUiDslParser()
-        af.start()
+        af.start(customConfig)
          this.connector = af.getConnector()
     }

@@ -369,4 +370,4 @@
      protected def getCachedVariable(String name){
          return context.getCachedVariable(name)
      }
-}
\ No newline at end of file
+}

Rohan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to