Hi all,
Finally, get back from TrUMP to Core again. I added the following
supports to Tellurium core,
1) Add profile to TelluriumConfig.groovy file and you can specify your
own profile there if you want to.
embeddedserver {
//port number
port = "4444"
//whether to use multiple windows
useMultiWindows = false
//whether to run the embedded selenium server. If false, you
need to manually set up a selenium server
runInternally = true
//profile location
profile = ""
}
2) Add Custom Configuration for Tellurium for an individual test
class. I know a lot of people may long for this for quite some time.
Yes, it is in Core now.
TelluriumConfig.groovy acts like a global setting file if you do not
want to manually change it. Now, the BaseTelluriumJavaTestCase
provides two methods for you to overwrite the default settings,
public static void setCustomConfig(boolean runInternally, int
port, String browser,
boolean useMultiWindows, String
profileLocation)
public static void setCustomConfig(boolean runInternally, int
port, String browser,
boolean useMultiWindows, String
profileLocation, String serverHost)
As you result, if you want to use your custom settings for your
specific test class, you can use the following way taking the Google
test case as an example,
public class GoogleStartPageJavaTestCase extends TelluriumJavaTestCase
{
static{
setCustomConfig(true, 5555, "*chrome", true, null);
}
...
}
I know it is not very elegant to use a static block, but the
@BeforeClass always calls the superclass one first, you cannot really
use the above code in your @BeforeClass method in the test class.
The code is checked in trunk and I will upload the new
TelluriumConfig.groovy and tellurium core jar file to our user group.
Please download them from there.
Thanks,
Jian
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---