java -cp "C:\dsl\lib\groovy-all-1.6.0.jar;C:\dsl\lib\json_simple-
r1.jar;C:\dsl\lib\junit-4.4.jar;C:\dsl\lib\selenium-grid-
tools-1.0.2.jar;C:\dsl\lib\selenium-java-client-driver-1.0.1.jar;C:\dsl
\lib\selenium-server-1.0.1-te.jar;C:\dsl\lib\stringtree-
json-2.0.10.jar;C:\dsl\lib\tellurium-
core-0.7.0-20090930.144130-28.jar;C:\dsl\lib\testng-5.8-jdk15.jar"
org.tellurium.dsl.DslScriptExecutor Test1605.dsl

Thanks for help.

On Nov 3, 11:01 am, Jian Fang <[email protected]> wrote:
> Yes, it still in 0.7.0 core. Should be class path problem. Could you show
> the content of the file test1605.bat?
>
> Thanks,
>
> Jian
>
>
>
> On Tue, Nov 3, 2009 at 10:55 AM, Gary Shao <[email protected]> wrote:
>
> > I try to avoid the 30 sec. timeout issue by using 0.7.0 snap shot but
> > got the error below, dose this 0.7.0 contains the DslScriptExecutor
> > class?
>
> > Thanks
>
> > C:\dsl>test1605.bat > out.txt
> > Exception in thread "main" java.lang.NoClassDefFoundError: org/
> > tellurium/dsl/Dsl
> > ScriptExecutor
> > Caused by: java.lang.ClassNotFoundException:
> > org.tellurium.dsl.DslScriptExecutor
>
> >        at java.net.URLClassLoader$1.run(Unknown Source)
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at java.net.URLClassLoader.findClass(Unknown Source)
> >        at java.lang.ClassLoader.loadClass(Unknown Source)
> >        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> >        at java.lang.ClassLoader.loadClass(Unknown Source)
> >        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> > Could not find the main class: org.tellurium.dsl.DslScriptExecutor.
> > Program wil
> > l exit.
>
> > On Oct 12, 8:25 am, Jian Fang <[email protected]> wrote:
> > > If you use connectUrl(), please make sure to call openUrl() or
> > > connectSeleniumServer() first.
>
> > > Thanks,
>
> > > Jian
>
> > > On Mon, Oct 12, 2009 at 8:23 AM, Liang HE <[email protected]> wrote:
> > > > Hi Jian,
>
> > > > Thanks for your reply.
>
> > > > I tried build 28 and 31, and got the exception using either build:
>
> > > > java.lang.NullPointerException: Cannot invoke method open() on null
> > object
> > > >    at
> > org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
> > > >    at
> > org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.ja­­va:750)
> > > >    at
> > org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:7­­27)
> > > >    at
> > org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:17­­)
> > > >    at
> > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArra­­y.java:40)
> > > >    at
> > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite­­.java:117)
> > > >    at
> > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite­­.java:125)
> > > >    at
> > org.tellurium.connector.SeleniumConnector.connectUrl(SeleniumConnector.groo­­vy:47)
> > > >    at
> > org.tellurium.test.java.BaseTelluriumJavaTestCase.connectUrl(BaseTelluriumJ­­avaTestCase.java:56)
> > > >    at
> > org.mybjc.art.test.AbstractMyBJCTestCase.connectPatientLogin(AbstractMyBJCT­­estCase.java:98)
> > > >    at
> > org.mybjc.art.test.MT96_PasswordLogin_BlankSpaces.setUpForMethod(MT96_Passw­­ordLogin_BlankSpaces.java:57)
> > > >    at
> > org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)
> > > >    at
> > org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDir­­ectoryTestSuite.java:141)
> > > >    at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
> > > >    at
> > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Surefire­­Booter.java:345)
> > > >    at
> > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:10­­09)
> > > > ... Removed 26 stack frames
>
> > > > The browser can't lauched. Do you have any hint for that?
>
> > > > Thanks,
> > > > Liang
>
> > > > On Wed, Sep 30, 2009 at 10:46 PM, Jian Fang <[email protected]
> > >wrote:
>
> > > >> I made the changes to TelluriumConfig.groovy and add couple more
> > server
> > > >> options there.
> > > >> Now the embedded server options are as follows.
>
> > > >> tellurium{
> > > >>     //embedded selenium server configuration
> > > >>     embeddedserver {
> > > >>         //port number
> > > >>         port = "4444"
> > > >>         //whether to use multiple windows
> > > >>         useMultiWindows = false
> > > >>         //whether to trust all SSL certs, i.e., option
> > > >> "-trustAllSSLCertificates"
> > > >>         trustAllSSLCertificates = true
> > > >>         //whether to run the embedded selenium server. If false, you
> > need
> > > >> to manually set up a selenium server
> > > >>         runInternally = true
> > > >>         //By default, Selenium proxies every browser request; set this
> > > >> flag to make the browser use proxy only for URLs containing
> > > >> '/selenium-server'
> > > >>         avoidProxy = false
> > > >>         //stops re-initialization and spawning of the browser between
> > > >> tests
> > > >>         browserSessionReuse = false
> > > >>         //enabling this option will cause all user cookies to be
> > archived
> > > >> before launching IE, and restored after IE is closed.
> > > >>         ensureCleanSession = false
> > > >>         //debug mode, with more trace information and diagnostics on
> > the
> > > >> console
> > > >>         debugMode = false
> > > >>         //interactive mode
> > > >>         interactive = false
> > > >>         //an integer number of seconds before we should give up
> > > >>         timeoutInSeconds = 30
> > > >>         //profile location
> > > >>         profile = ""
> > > >>         //user-extension.js file
> > > >>         userExtension =
> > "target/test-classes/extension/user-extensions.js"
> > > >>     }
> > > >> ...
> > > >> }
>
> > > >> The latest TelluriumConfig.groovy sample is available here.
>
> > > >>http://code.google.com/p/aost/source/browse/trunk/core/TelluriumConfi.
> > ..
>
> > > >> Please use the core 0.7.0 snapshot from our Maven repo or download it
> > > >> directly from
> > > >> the following URL.
>
> > > >>http://kungfuters.org/nexus/content/repositories/snapshots/tellurium/.
> > ..
>
> > > >> Thanks,
>
> > > >> Jian
>
> > > >> On Wed, Sep 30, 2009 at 9:19 AM, Jian Fang <[email protected]
> > >wrote:
>
> > > >>> If it is a selenium server option, we may have not included yet. We
> > can
> > > >>> add it to TelluriumConfig.groovy very quickly. What other server
> > options do
> > > >>> we need to add?
>
> > > >>> Thanks,
>
> > > >>> Jian
>
> > > >>> On Wed, Sep 30, 2009 at 4:27 AM, Liang HE <[email protected]>
> > wrote:
>
> > > >>>> I just saw in an old email, Jian says setTimout is included in
> > > >>>> DslContext. But I can't find this method in tellurium core 0.6.0. I
> > am not
> > > >>>> sure if there is any updated version released. Further more, I need
> > to use
> > > >>>> it in the testcases inherited from BaseTelluriumJavaTestCase instead
> > of
> > > >>>> DslContext. How should I handle this problem?
>
> > > >>>> Thanks a lot!
> > > >>>> Liang
>
> > > >>>>   On Wed, Sep 30, 2009 at 4:10 PM, Liang HE <[email protected]>
> > wrote:
>
> > > >>>>> Hi guys,
>
> > > >>>>> I am using Tellurium to automate the testing of a slow website. The
> > > >>>>> default timeout is 30 seconds and the response time oftern exceeds
> > it. In
> > > >>>>> traditional Selenium, I can use setTimeout to override the value,
> > but I
> > > >>>>> don't know how to deal with this problem in Selenium. Is there any
> > way to
> > > >>>>> set up it in TelluriumConfig.groovy? If yes, what is the context?
>
> > > >>>>> I also tried started Selenium sever like:
>
> > > >>>>> java -jar seleniumXXX.te.jar -timeout 60
>
> > > >>>>> but it doesn't work and the test case still timeout in 30 seconds?
>
> > > >>>>> Anyone can give me some hints?
>
> > > >>>>> Thanks,
> > > >>>>> Liang- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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