In the TelluriumConfig.groovy file, look at the following line,

       //user's class to hold custom selenium methods associated with
user-extensions.js
        //should in full class name, for instance,
"com.mycom.CustomSelenium"
        customClass = "org.tellurium.test.MyCommand"

and change it to

        customClass = ""

because you don't have the class "org.tellurium.test.MyCommand", which is a
sample mock class in core for testing purpose only.

You can find the sample 0.7.0 TelluriumConfig.groovy from the following
link,

http://code.google.com/p/aost/wiki/TelluriumConfig070

Thanks,

Jian

On Tue, Nov 3, 2009 at 1:00 PM, Gary Shao <[email protected]> wrote:

>
> other problem comes out, it's complaining "ClassNotFoundException:
> org.tellurium.test.
> MyCommand .....
>
>
> C:\dsl>java -Xmx512m -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.j
> ar;C:\dsl\lib\stringtree-json-2.0.10.jar;C:\dsl\lib\tellurium-
> core-0.7.0-2009101
> 9.164526-34.jar;C:\dsl\lib\testng-5.8-jdk15.jar"
> org.tellurium.dsl.DslScriptExec
> utor Test7339.dsl
> Parse configuration file: TelluriumConfig.groovy from project root
> directory...
> Configure UI Object Builders using configuration file
> Configure widget modules using configuration file
> Configure event handler using configuration file
> Configure data accessor using configuration file
> Configure dispatcher using configuration file
> Configure Embedded Selenium Server using configuration file
> Use user extension file org.tellurium.server.SeleniumServerDaemon
> $_run_closure1@
> 5e8d7d
> 12:42:38.859 INFO - Java: Sun Microsystems Inc. 14.1-b02
> 12:42:38.859 INFO - OS: Windows XP 5.1 x86
> 12:42:38.875 INFO - v1.0.1 [2697], with Core v...@version@ [...@revision@]
> 12:42:38.953 INFO - Version Jetty/5.1.x
> 12:42:38.953 INFO - Started HttpContext[/selenium-server/driver,/
> selenium-server
> /driver]
> 12:42:38.953 INFO - Started HttpContext[/selenium-server,/selenium-
> server]
> 12:42:38.953 INFO - Started HttpContext[/,/]
> 12:42:38.968 INFO - Started SocketListener on 0.0.0.0:4444
> 12:42:38.968 INFO - Started org.mortbay.jetty.ser...@96ad7c
> Configure Selenium Client using configuration file
> Exception in thread "main" java.lang.ClassNotFoundException:
> org.tellurium.test.
> MyCommand
>         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
> org.codehaus.groovy.runtime.callsite.CallSiteClassLoader.loadClass(Ca
> llSiteClassLoader.java:51)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>        at
> org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts.loadClass
>
> On Nov 3, 12:19 pm, Jian Fang <[email protected]> wrote:
> > Seems your jar is corrupted. Please download a new jar from here,
> >
> > http://maven.kungfuters.org/content/repositories/snapshots/tellurium/...
> >
> > I verified that the DslScriptExecutor class is in the jar file.
> >
> >  inflated:
> > org/tellurium/dsl/DslContext$_selectParentFrameFrom_closure2.class
> >  inflated:
> > org/tellurium/dsl/BaseDslContext$_getSelectOptions_closure21.class
> >  inflated: org/tellurium/dsl/DslScriptExecutor.class
> >  inflated: org/tellurium/dsl/BaseDslContext$_mouseOver_closure45.class
> >  inflated: org/tellurium/dsl/DslContext$_closeWindow_closure8.class
> >
> >
> >
> > On Tue, Nov 3, 2009 at 11:41 AM, Gary Shao <[email protected]> wrote:
> >
> > > I think the class is missing(and a I/O error when running the jar
> > > xvf), I use winRAR to view the jar file and don't see the class
> > > DslScriptExecutor either.
> >
> > > C:\dsl\lib\tmp>jar xvf tellurium-core-0.7.0-20090930.144130-28.jar
> > >  created: META-INF/
> > >  inflated: META-INF/MANIFEST.MF
> > >  created: org/
> > >  created: org/tellurium/
> > >  created: org/tellurium/extend/
> > >  created: org/tellurium/object/
> > >  created: org/tellurium/framework/
> > >  created: org/tellurium/access/
> > >  created: org/tellurium/bootstrap/
> > >  created: org/tellurium/config/
> > >  created: org/tellurium/connector/
> > >  created: org/tellurium/widget/
> > >  created: org/tellurium/util/
> > >  created: org/tellurium/event/
> > >  created: org/tellurium/dsl/
> > >  created: org/tellurium/locator/
> > >  created: org/tellurium/exception/
> > >  created: org/tellurium/ddt/
> > >  created: org/tellurium/ddt/object/
> > >  created: org/tellurium/ddt/object/mapping/
> > >  created: org/tellurium/ddt/object/mapping/mapping/
> > >  created: org/tellurium/ddt/object/mapping/bind/
> > >  created: org/tellurium/ddt/object/mapping/io/
> > >  created: org/tellurium/ddt/object/mapping/type/
> > >  created: org/tellurium/ddt/object/mapping/validator/
> > >  created: org/tellurium/ddt/object/mapping/builder/
> > >  created: org/tellurium/server/
> > >  created: org/tellurium/client/
> > >  created: org/tellurium/grid/
> > >  created: org/tellurium/builder/
> > >  created: org/tellurium/dispatch/
> > >  created: org/tellurium/test/
> > >  created: org/tellurium/test/groovy/
> > >  created: org/tellurium/test/crosscut/
> > >  created: org/tellurium/test/java/
> > >  created: org/tellurium/test/mock/
> > >  created: org/tellurium/test/ddt/
> > >  created: org/tellurium/test/helper/
> > >  created: org/tellurium/tool/
> > >  inflated: org/tellurium/extend/ExtensionMetaClass.class
> > >  inflated: org/tellurium/extend/Extension.class
> > >  inflated: org/tellurium/object/Span.class
> > >  inflated: org/tellurium/object/RadioButton.class
> > >  inflated: org/tellurium/object/Button.class
> > >  inflated: org/tellurium/object/TextBox.class
> > >  inflated: org/tellurium/object/GenericTable
> > > $_internalId_closure1.class
> > >  inflated: org/tellurium/object/Table
> > > $_getMaxRowColumnIndices_closure2.class
> > >  inflated: org/tellurium/object/Option$_getComponents_closure1.class
> > >  inflated: org/tellurium/object/GTable.class
> > >  inflated: org/tellurium/object/Alias.class
> > >  inflated: org/tellurium/object/GenericTable.class
> > >  inflated: org/tellurium/object/InputBox.class
> > >  inflated: org/tellurium/object/Container$_traverse_closure1.class
> > >  inflated: org/tellurium/object/SubmitButton.class
> > >  inflated: org/tellurium/object/Form.class
> > >  inflated: org/tellurium/object/List$_traverse_closure3.class
> > >  inflated: org/tellurium/object/List
> > > $_getListSizeByJQuerySelector_closure1.class
> >
> > >  inflated: org/tellurium/object/Table
> > > $_getMaxHeaderIndex_closure1.class
> > >  inflated: org/tellurium/object/List$_generateHtml_closure2.class
> > >  inflated: org/tellurium/object/StandardTable
> > > $_internalId_closure1.class
> > >  inflated: org/tellurium/object/StandardTable
> > > $_traverseElement_closure6.class
> > >  inflated: org/tellurium/object/GenericTable
> > > $_traverseFoot_closure4.class
> > >  inflated: org/tellurium/object/ClickableUi.class
> > >  inflated: org/tellurium/object/Container$_generateHtml_closure2.class
> > >  inflated: org/tellurium/object/Container.class
> > >  inflated: org/tellurium/object/StandardTable
> > > $_traverseFoot_closure4.class
> > >  inflated: org/tellurium/object/UiObject.class
> > >  inflated: org/tellurium/object/GenericTable
> > > $_traverseHeader_closure3.class
> > >  inflated: org/tellurium/object/Table$_traverseHeader_closure3.class
> > >  inflated: org/tellurium/object/StandardTable.class
> > >  inflated: org/tellurium/object/SimpleMenu.class
> > >  inflated: org/tellurium/object/GenericTable
> > > $_traverseElement_closure6.class
> > >  inflated: org/tellurium/object/GenericTable$_validId_closure2.class
> > >  inflated: org/tellurium/object/UrlLink.class
> > >  inflated: org/tellurium/object/Grid.class
> > >  inflated: org/tellurium/object/Table.class
> > >  inflated: org/tellurium/object/Body.class
> > >  inflated: org/tellurium/object/List.class
> > >  inflated: org/tellurium/object/Selector.class
> > >  inflated: org/tellurium/object/Table$_traverseElement_closure4.class
> > >  inflated: org/tellurium/object/Icon.class
> > >  inflated: org/tellurium/object/Foot.class
> > >  inflated: org/tellurium/object/Header.class
> > >  inflated: org/tellurium/object/GenericTable
> > > $_traverseElement_closure5.class
> > >  inflated: org/tellurium/object/Table$_traverseElement_closure5.class
> > >  inflated: org/tellurium/object/StandardTable
> > > $_traverseHeader_closure3.class
> > >  inflated: org/tellurium/object/CheckBox.class
> > >  inflated: org/tellurium/object/StandardTable$_validId_closure2.class
> > >  inflated: org/tellurium/object/Image.class
> > >  inflated: org/tellurium/object/SimpleMenu
> > > $_addMenuItems_closure1.class
> > >  inflated: org/tellurium/object/Div.class
> > >  inflated: org/tellurium/object/StandardTable
> > > $_traverseElement_closure5.class
> > >  inflated: org/tellurium/object/Frame.class
> > >  inflated: org/tellurium/object/Window.class
> > >  inflated: org/tellurium/object/Option.class
> > >  inflated: org/tellurium/framework/TelluriumFramework.class
> > >  inflated: org/tellurium/framework/TelluriumFrameworkMetaClass.class
> > >  inflated: org/tellurium/access/AccessorMetaClass.class
> > >  inflated: org/tellurium/access/Accessor.class
> > >  inflated: org/tellurium/bootstrap/TelluriumSupport.class
> > >  inflated: org/tellurium/config/TelluriumConfiguratorMetaClass.class
> > >  inflated: org/tellurium/config/CustomConfig.class
> > >  inflated: org/tellurium/config/TelluriumConfigurator.class
> > >  inflated: org/tellurium/config/TelluriumConfigurator
> > > $_configUiObjectBuilder_clo
> > > sure1.class
> > >  inflated: org/tellurium/config/Configurable.class
> > >  inflated: org/tellurium/config/Configurator.class
> > >  inflated: org/tellurium/config/TelluriumConfigParser.class
> > >  inflated: org/tellurium/Const.class
> > >  inflated: org/tellurium/connector/SeleniumConnectorMetaClass.class
> > >  inflated: org/tellurium/connector/CustomSelenium.class
> > >  inflated: org/tellurium/connector/SeleniumConnector.class
> > >  inflated: org/tellurium/connector/CustomCommand.class
> > >  inflated: org/tellurium/widget/Widget$_mouseOut_closure44.class
> > >  inflated: org/tellurium/widget/Widget$_getImageTitle_closure40.class
> > >  inflated: org/tellurium/widget/Widget$_getSelectedId_closure27.class
> > >  inflated: org/tellurium/widget/Widget$_mouseDownRight_closure47.class
> > >  inflated: org/tellurium/widget/Widget$_waitForText_closure29.class
> > >  inflated: org/tellurium/widget/Widget$_getText_closure35.class
> > >  inflated: org/tellurium/widget/Widget$_customUiCall_closure2.class
> > >  inflated: org/tellurium/widget/Widget
> > > $_removeSelectionByLabel_closure16.class
> > >  inflated: org/tellurium/widget/Widget$_submit_closure41.class
> > >  inflated: org/tellurium/widget/Widget$_mouseDown_closure46.class
> > >  inflated: org/tellurium/widget/Widget
> > > $_getTableMaxRowNumBySelector_closure69.cl
> > > ass
> > >  inflated: org/tellurium/widget/Widget
> > > $_isDisabledBySelector_closure77.class
> > >  inflated: org/tellurium/widget/Widget.class
> > >  inflated: org/tellurium/widget/Widget
> > > $_getTableHeaderColumnNumByXPath_closure60
> > > .class
> > >  inflated: org/tellurium/widget/Widget
> > > $_getSelectedValues_closure22.class
> > >  inflated: org/tellurium/widget/Widget
> > > $_getTableMaxColumnNumForTbodyBySelector_c
> > > losure72.class
> > >  inflated: org/tellurium/widget/Widget
> > > $_waitForElementPresent_closure34.class
> > >  inflated: org/tellurium/widget/Widget
> > > $_getTableMaxRowNumForTbodyByXPath_closure
> > > 64.class
> > >  inflated: org/tellurium/widget/Widget
> > > $_addSelectionByLabel_closure14.class
> > >  inflated: org/tellurium/widget/Widget
> > > $_waitForElementPresent_closure33.class
> > >  inflated: org/tellurium/widget/Widget
> > > $_getSelectedIndexes_closure24.class
> > >  inflated: org/tellurium/widget/Widget$_isEditable_closure42.class
> > >  inflated: org/tellurium/widget/Widget
> > > $_getSelectedValue_closure23.class
> > >  inflated: org/tellurium/widget/Widget$_getImageAlt_closure39.class
> > >  inflated: org/tellurium/widget/Widget$_selectByValue_closure13.class
> > >  inflated: org/tellurium/widget/Widget
> > > $_getTableMaxColumnNumByXPath_closure63.cl
> > > ass
> > >  inflated: org/tellurium/widget/Widget
> > > $_getTableMaxRowNumByXPath_closure62.class
> >
> > >  inflated: org/tellurium/widget/Widget
> > > $_getSelectedIndex_closure25.class
> > >  inflated: org/tellurium/widget/Widget
> > > $_addSelectionByValue_closure15.class
> > >  inflated: org/tellurium/widget/Widget$_mouseUpRightAt_closure52.class
> > >  inflated: org/tellurium/widget/Widget
> > > $_getCacheUsage_closure1_closure81.class
> > >  inflated: org/tellurium/widget/Widget
> > > $_getAllTableCellText_closure58.class
> > >  inflated: org/tellurium/widget/Widget$_hasCssClass_closure79.class
> > >  inflated: org/tellurium/widget/Widget
> > > $_getTableMaxTbodyNumByXPath_closure66.cla
> > > ss
> > >  inflated: org/tellurium/widget/Widget$_clearText_closure11.class
> > >  inflated: org/tellurium/widget/Widget$_selectByLabel_closure12.class
> > >  inflated: org/tellurium/widget/Widget
> > > $_isElementPresent_closure30.class
> > >  inflated: org/tellurium/widget/Widget$_check_closure6.class
> > >  inflated: org/tellurium/widget/Widget
> > > $_getSelectedLabels_closure20.class
> > >  inflated:
> >
> > ...
> >
> > read more ยป- 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