Hi Jian,

I have upgraded to tellurium 0.7.0

When I debug, it works fine but when I run, it gives error

I have following UI:

 public void defineUi() {

    // left menu -> Organization Management
    ui.Container(uid: "mainmenu") {
      UrlLink(uid: "organization_menu", clocator: [tag: "a", href:
"organizationManagement.jsp"])
    }
    // create Organization
    ui.Container(uid: "org_management") {
      InputBox(uid: "type_org", clocator: [tag: "input", type: "text",
name: "organizationManagement:searchOrganization", id:
"*earchOrganization"])
      SubmitButton(uid: "search_org", clocator: [tag: "input", type:
"submit", name: "organizationManagement:submit1", id: "*ubmit1"])
      SubmitButton(uid: "create_org", clocator: [tag: "input", name:
"organizationManagement:submit", id: "*ubmit"])
    }

    //  General Organization Details
    ui.Container(uid: "organizationdata") {
      InputBox(uid: "org_name", clocator: [tag: "input", name:
"organizationForm:generalPanelTab:generalTab:organizationname", id:
"*rganizationname"])
      InputBox(uid: "org_desc", clocator: [tag: "input", name:
"organizationForm:generalPanelTab:generalTab:description", id:
"*escription"])
      CheckBox(uid: "sender_check", clocator: [tag: "input", value:
"true", id: "*sinvoice", name:
"organizationForm:generalPanelTab:generalTab:sinvoice"])
      CheckBox(uid: "reciever_check", clocator: [tag: "input", value:
"true", id: "*rinvoice", name:
"organizationForm:generalPanelTab:generalTab:rinvoice"])
      CheckBox(uid: "enable_report", clocator: [tag: "input", type:
"checkbox", id: "*reportActive", name:
"organizationForm:generalPanelTab:generalTab:reportActive"])
      SubmitButton(uid: "submit_general", clocator: [tag: "input",
name: "organizationForm:generalPanelTab:generalTab:submitGeneralNext",
id: "*ubmitGeneralNext"])

}
   ui.Container(uid: "sender_sub") {
      SubmitButton(uid: "submit_sender", clocator: [tag: "input",
name: "organizationForm:senderPanelTab:senderTab:submitSenderNext",
id: "*submitSenderNext"])
    }

        //select sending interface
    ui.Container(uid: "sendinginterface") {
      Selector(uid: "select_sender", clocator: [tag: "select", name:
"organizationForm:senderPanelTab:senderTab:sendingInterfaceName", id:
"*sendingInterfaceName"])
    }

    // Preveiw Organisation
    ui.Container(uid: "sender_preview") {
      SubmitButton(uid: "submit_save", clocator: [tag: "input", type:
"submit", value: "Save", name:
"organizationForm:previewPanelTab:previewTab:submitSave", id:
"*submitSave"], respond: ["click"])
    }

Methods:

 public void loginAdmin() {
    login '[email protected]', 'password'
  }

public void sending_general_details() {


    keyType "organizationdata.org_name", 'New Sending Organization'
    keyType "organizationdata.org_desc", 'Banking'
    check "organizationdata.sender_check"
    System.out.println("here");
    click "organizationdata.submit_general"
    System.out.println("here1");

  }

public void sender_details() {


    selectByLabel "sendinginterface.select_sender", 'BTS (BTC) sender'
    waitForPageToLoad 30000
  }

  public void clickElement(String elementName) {
    diagnose elementName
    click elementName
    waitForPageToLoad 30000
  }

Test Method:

  public static void initUi() {
        organizationModule = new OrganizationModule();
        loginModule = new LoginModule();
        loginModule.defineUi();
        organizationModule.defineUi();
        useCssSelector(true);
        //Engine state offline update
        useTelluriumApi(true);
        useCache(false);
        connectSeleniumServer();

    }

 @Test
    public void sending_organization() {
        loginModule.loginAdmin();
        organizationModule.clickElement("mainmenu.organization_menu");
        organizationModule.clickElement("org_management.create_org");
        organizationModule.sending_general_details();
        assertTrue(organizationModule.isTextPresent("*Invoice sending
S/W"));
        organizationModule.sender_details();
 
organizationModule.clickElement("sendinginterface.submit_sender");
        organizationModule.clickElement("sender_preview.submit_save");
        organizationModule.clickElement("mainmenu.organization_menu");
        organizationModule.clickElement("org_management.search_org");
        assertTrue(organizationModule.isTextPresent("New Sending
Organization"));
    }

Error:


com.thoughtworks.selenium.SeleniumException: ERROR: Element
uimcal={"rid":"sendinginterface.submit_sender","locator":"jquery=table
input.btn_hover[type=submit][value=Next]
[name=organizationForm:senderPanelTab:senderTab:submitSenderNext]"}
not found
        at
com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:
97)
        at
com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:
91)
        at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite
$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:
229)
        at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:
52)
        at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:
129)
        at
org.telluriumsource.component.connector.CustomSelenium.getBundleResponse(CustomSelenium.groovy:
257)
        at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
88)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
        at
groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:
149)
        at groovy.lang.MetaObjectProtocol$invokeMethod.call(Unknown Source)
        at
org.telluriumsource.component.dispatch.Dispatcher.methodMissing(Dispatcher.groovy:
56)
        at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
88)
        at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:
813)
        at
groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:
1107)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1060)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
        at
org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:
39)
        at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:
129)
        at
org.telluriumsource.component.bundle.BundleProcessor.passBundledCommand(BundleProcessor.groovy:
322)
        at org.telluriumsource.component.bundle.BundleProcessor
$passBundledCommand.callCurrent(Unknown Source)
        at
org.telluriumsource.component.bundle.BundleProcessor.process(BundleProcessor.groovy:
414)
        at org.telluriumsource.component.bundle.BundleProcessor
$process.callCurrent(Unknown Source)
        at
org.telluriumsource.component.bundle.BundleProcessor.methodMissing(BundleProcessor.groovy:
427)
        at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
88)
        at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:
813)
        at
groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:
1107)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1060)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
        at
org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:
39)
        at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:
40)
        at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:
117)
        at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:
129)
        at
org.telluriumsource.component.event.EventHandler.processingEvent(EventHandler.groovy:
63)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
88)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
        at
org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:
361)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
        at
org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:
66)
        at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:
44)
        at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:
143)
        at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:
159)
        at org.telluriumsource.component.event.EventHandler
$_processEvents_closure1.doCall(EventHandler.groovy:87)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
88)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
        at
org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:
272)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
        at groovy.lang.Closure.call(Closure.java:276)
        at groovy.lang.Closure.call(Closure.java:289)
        at
org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:
1167)
        at
org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:
1143)
        at org.codehaus.groovy.runtime.dgm$108.invoke(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite
$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:
270)
        at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:
52)
        at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.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.telluriumsource.component.event.EventHandler.processEvents(EventHandler.groovy:
83)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite
$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:
266)
        at
org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:
51)
        at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:
44)
        at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:
143)
        at
org.telluriumsource.component.event.EventHandler.click(EventHandler.groovy:
144)
        at org.telluriumsource.component.event.EventHandler
$click.call(Unknown Source)
        at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:
40)
        at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:
117)
        at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:
133)
        at org.telluriumsource.dsl.BaseDslContext
$_click_closure4.doCall(BaseDslContext.groovy:168)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
88)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
        at
org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:
272)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
        at
org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:
39)
        at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:
40)
        at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:
117)
        at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:
129)
        at org.telluriumsource.ui.object.Button.click(Button.groovy:17)
        at org.telluriumsource.ui.object.Button$click.call(Unknown Source)
        at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callSafe(AbstractCallSite.java:
90)
        at org.telluriumsource.dsl.BaseDslContext.click(BaseDslContext.groovy:
166)
        at org.telluriumsource.dsl.BaseDslContext$click.callCurrent(Unknown
Source)
        at
com.basware.bt.web.organizationmanagement.OrganizationModule.clickElement(OrganizationModule.groovy:
191)
        at
com.basware.bt.web.organizationmanagement.TestOrganizationManagement.sending_organization(TestOrganizationManagement.java:
47)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at org.junit.runners.model.FrameworkMethod
$1.runReflectiveCall(FrameworkMethod.java:44)
        at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:
15)
        at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:
41)
        at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:
20)
        at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:
28)
        at
org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:
74)
        at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:
31)
        at
org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:
82)
        at
org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:
72)
        at
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:
240)
        at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:
50)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:
28)
        at
org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:
61)
        at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:
31)
        at
org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:
70)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:
180)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
        at
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:
60)


On May 7, 1:22 am, Jian Fang <[email protected]> wrote:
> Could you upgrade to 0.7.0, which should be out tomorrow? Matt is working on
> the Maven release for 0.7.0.
>
> It is really difficult for me to tell what was the cause of the problem
> without the web app and test code.
> But I guess the cause might be either the DOM was changed when you run
> multiple
> tests or the page was not fully loaded when your test hit the line that
> caused the problem. So, my question
> is how about other elements in the same UI module? Were they found?
>
> 0.7.0 comes with couple utility tools such as the diagnose(String uid)
> commnad.
>
> http://code.google.com/p/aost/wiki/UserGuide070TelluriumAdvancedTopic...
>
> Furthermore, you can even validate the whole UI module if you use new
> Tellurium Engine.
>
> http://code.google.com/p/aost/wiki/UserGuide070TelluriumAdvancedTopic...
>
> Thanks,
>
> Jian
>
> On Thu, May 6, 2010 at 1:41 AM, Inderpreet Kang 
> <[email protected]>wrote:
>
> > Tellurium version = 0.6.0
>
> > selenium.core.versi...@version@
> > selenium.rc.version=1.0.1
> > selenium.rc.revision=2697
> > selenium.core.revisi...@revision@
>
> > Tellurium config :
>
> > /**
> >  * For configuring Tellurium
> >  */
>
> > tellurium {
> >  //embedded selenium server configuration
> >  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 = ""
> >    //user-extension.js file
> >    userExtension = "target/classes/extension/user-extensions.js"
> >  }
> >  //event handler
> >  eventhandler {
> >    //whether we should check if the UI element is presented
> >    checkElement = false
> >    //wether we add additional events like "mouse over"
> >    extraEvent = true
> >  }
> >  //data accessor
> >  accessor {
> >    //whether we should check if the UI element is presented
> >    checkElement = true
> >  }
> >  //the configuration for the connector that connects the selenium
> > client to the selenium server
> >  connector {
> >    //selenium server host
> >    //please change the host if you run the Selenium server remotely
> >    serverHost = "localhost"
> >    //server port number the client needs to connect
> >    port = "4444"
> >    //base URL
> >    baseUrl = "http://localhost:8082";
> >    //Browser setting, valid options are
> >    //  *firefox [absolute path]
> >    //  *iexplore [absolute path]
> >    //  *chrome
> >    //  *iehta
> >    browser = "*chrome"
> >    //user's class to hold custom selenium methods associated with
> > user-extensions.js
> >    //should in full class name, for instance,
> > "com.mycom.CustomSelenium"
> >    customClass = ""
> >  }
> >  datadriven {
> >    dataprovider {
> >      //specify which data reader you like the data provider to use
> >      //the valid options include "PipeFileReader", "CVSFileReader" at
> > this point
> >      reader = "PipeFileReader"
> >    }
> >  }
> >  test {
> >    //at current stage, the result report is only for tellurium data
> > driven testing
> >    //we may add the result report for regular tellurium test case
> >    result {
> >      //specify what result reporter used for the test result
> >      //valid options include "SimpleResultReporter",
> > "XMLResultReporter", and "StreamXMLResultReporter"
> >      reporter = "XMLResultReporter"
> >      //the output of the result
> >      //valid options include "Console", "File" at this point
> >      //if the option is "File", you need to specify the file name,
> > other wise it will use the default
> >      //file name "TestResults.output"
> >      output = "Console"
> >      //test result output file name
> >      filename = "TestResult.output"
> >    }
> >    exception {
> >      //whether Tellurium captures the screenshot when exception
> > occurs.
> >      //Note that the exception is the one thrown by Selenium Server
> >      //we do not care the test logic errors here
> >      captureScreenshot = true
> >      //we may have a series of screenshots, specify the file name
> > pattern here
> >      //Here the ? will be replaced by the timestamp and you might
> > also want to put
> >      //file path in the file name pattern
> >      filenamePattern = "Screenshot?.png"
> >    }
> >  }
> >  uiobject {
> >    builder {
> >      //user can specify custom UI objects here by define the builder
> > for each UI object
> >      //the custom UI object builder must extend UiObjectBuilder class
> >      //and implement the following method:
> >      //
> >      // public build(Map map, Closure c)
> >      //
> >      //For container type UI object, the builder is a bit more
> > complicated, please
> >      //take the TableBuilder or ListBuilder as an example
>
> >      //example:
> > //           Icon="org.tellurium.builder.IconBuilder"
>
> >    }
> >  }
> >  widget {
> >    module {
> >      //define your widget modules here, for example Dojo or ExtJs
> > //            included="dojo, extjs"
> >      included = ""
> >     }
> >  }
> > }
>
> > On May 5, 9:31 pm, Jian Fang <[email protected]> wrote:
> > > This may be caused by some other problems. What versions of tellurium
> > core
> > > and custom selenium
> > > server are you using?
>
> > > Thanks,
>
> > > Jian
>
> > > On Wed, May 5, 2010 at 3:00 AM, Inderpreet Kang <
> > [email protected]>wrote:
>
> > > > Hi All,
>
> > > > I am getting strange problem while running the test method. I have
> > > > five test methods in the class. One of the test method individually
> > > > run successfully but when try to run with all test method, it failed
>
> > > > I have following ui definition
>
> > > >  ui.Form(uid: "userForm", clocator: [tag: "form", name: "userForm",
> > > > method: "post", action: "/btweb/faces/pages/userManagement/
> > > > createUser.jsp"]) {
> > > >      InputBox(uid: "email", clocator: [tag: "input", type: "text",
> > > > name: "userForm:username", id: "userForm:username"])
> > > >      InputBox(uid: "phone", clocator: [tag: "input", type: "text",
> > > > name: "userForm:telephone", id: "userForm:telephone"])
> > > >      InputBox(uid: "mobilephone", clocator: [tag: "input", type:
> > > > "text", name: "userForm:mobileTelephone", id:
> > > > "userForm:mobileTelephone"])
> > > >      InputBox(uid: "password", clocator: [tag: "input", type:
> > > > "password", name: "userForm:password", id: "userForm:password"])
> > > >      InputBox(uid: "passwordverification", clocator: [tag: "input",
> > > > type: "password", name: "userForm:passwordVerification", id:
> > > > "userForm:passwordVerification"])
> > > >      Selector(uid: "role", clocator: [tag: "select", name:
> > > > "userForm:group", id: "userForm:group"])
> > > >      Selector(uid: "businessunit", clocator: [tag: "select", name:
> > > > "userForm:businessUnit", id: "userForm:businessUnit"])
> > > >      TextBox(uid: "td0", clocator: [tag: "td", text:
> > > > "[email protected]"])
> > > >      SubmitButton(uid: "submitbtn", clocator: [tag: "input", type:
> > > > "submit", name: "userForm:submit", id: "userForm:submit"], respond:
> > > > ["click"])
> > > >    }
>
> > > > ui.Container(uid: "rec", clocator: [tag: "table", class: "formGrid"]){
> > > >       Image(uid: "img_search", clocator: [tag: "img", src: "/btweb/
> > > > ui_pics/search.gif"])
> > > >       }
> > > >    ui.Container(uid: "select_rec"){
> > > >    UrlLink(uid: "new_org", clocator: [tag: "a", text: "select",
> > > > class: "ref", type: "submit", id:
> > > > "receiverOrganizationSearch:selectedOrg:17:testRoutingSenderSelect",
> > > > href: "#"], respond: ["click"])
> > > >    }
>
> > > > Method :
>
> > > > public void addReceiverUser() {
> > > >     keyType "newRoleUserForm.email", '[email protected]'
> > > >    keyType "newRoleUserForm.phone", '0501234567'
> > > >    keyType "newRoleUserForm.mobilephone", '0451234567'
> > > >    selectByLabel "newRoleUserForm.role", 'RECEIVER'
> > > >    waitForElementPresent("rec.img_search", 50000)
> > > >   click  "rec.img_search"
> > > >   click "select_rec.new_org"
> > > >    keyType "newRoleUserForm.password", 'password'
> > > >    keyType "newRoleUserForm.passwordverification", 'password'
> > > >    click "newRoleUserForm.submitbtn"
> > > >    waitForPageToLoad 30000
>
> > > >  }
>
> > > > Test Method :
>
> > > > @Test
> > > >      public void addreceiver() {
> > > >        loginModule.loginAdmin();
> > > >        app.clickElement("menu.usermglink");
> > > >        app.clickElement("manageusers.submit");
> > > >        app.addReceiverUser();
> > > >        loginModule.logOut();
> > > >        loginModule.loginUser("[email protected]","password");
> > > >        assertTrue(app.getTitle().contains(WELCOME_TITLE));
> > > >    }
>
> > > > When I run it individually , it works fine but when I run with other
> > > > test method it gives following exception
>
> > > > com.thoughtworks.selenium.SeleniumException: ERROR: Element //
> > > > descendant-or-self::fo...@action="/btweb/faces/pages/userManagement/
> > > > createUser.jsp" and @method="post" and @name="userForm" and
> > > > @id="userForm"]/descendant-or-self::sele...@name="userForm:group" and
> > > > @id="userForm:group"] not found
> > > >        at
>
> > com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:
> > > > 97)
> > > >        at
>
> > com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:
> > > > 91)
> > > >        at
>
> > com.thoughtworks.selenium.DefaultSelenium.mouseOut(DefaultSelenium.java:
> > > > 247)
> > > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >        at
>
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> > > > 39)
> > > >        at
>
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> > > > 25)
> > > >        at
> > > > org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
> > > > 88)
>
> ...
>
> read more »

-- 
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