I can see your problem.
Please don't put any testing method to the defineUi method. i.e., move
pause(500)
and
waitForPageToLoad(30000)
to your test code, i.e., the Java class in your case.
public void defineUi() {
pause(500)
ui.Container(uid: "Head", clocator: [tag: "head"]){
TextBox(uid: "PageTitle", clocator: [tag: "title"])
}
waitForPageToLoad(30000)
}
Your test code should extend TelluriumJUnitTestCase or
TelluriumTestNGTestCase.
Thanks,
Jian
On Mon, Feb 1, 2010 at 12:28 PM, Pascal Gandilhon <
[email protected]> wrote:
> Hi,
>
> *Which test code that caused the problem?*
> *
> *
> *all the testCases extending BaseTelluriumJavaTestCase or
> TelluriumJavaTestCase*
> *
> *
> *Does you html source have the body element?*
> *
> *
> *yes*
> *
> *
> *What UI module you used?*
> *
> *
> the problem occurs with any UI, by example. a very basic one like this :
>
> public void defineUi() {
> pause(500)
> ui.Container(uid: "Head", clocator: [tag: "head"]){
> TextBox(uid: "PageTitle", clocator: [tag: "title"])
> }
> waitForPageToLoad(30000)
> }
> *
> *
> *What running mode, i.e., use XPATH or CSS selector, use UI module cache
> or not, use New Tellurium API or Selenium API?*
> *
> *
> *all defaults settings: i.e. Xpath selector (tried also Jquery selector),
> not using UI cache, using Tellurium API.*
> *
> *
> *The trimmed html source is quite (with all javascript files) is quite
> long, so I'll work on isolate the lines causing problem.*
> *
> *
> *regards, Pascal*
> *
> *
> 2010/2/1 Jian Fang <[email protected]>
>
>> Could you provide us more details? Which test code that caused the
>> problem? Does you html source have the body element? What UI module you
>> used? What running mode, i.e., use XPATH or CSS selector, use UI module
>> cache or not, use New Tellurium API or Selenium API? It would be great if
>> you could provide us some trimmed html source so that we can repeat your
>> problem.
>>
>> Thanks,
>>
>> Jian
>>
>>
>> On Mon, Feb 1, 2010 at 11:43 AM, Pascal Gandilhon <
>> [email protected]> wrote:
>>
>>> Hi,
>>>
>>> thanks for your quick answer. Nothing particular in the logs.....the
>>> message is a popup alert on ie.... sorry if I wasn't clear about that. I
>>> joigned a screen capture. I tried with serveral Tellurium version, now I'm
>>> on the latest Snapshot.
>>>
>>> regards,
>>>
>>> Pascal
>>>
>>>
>>> 2010/2/1 Jian Fang <[email protected]>
>>>
>>> Hi Pascal,
>>>>
>>>> Are you using Tellurium 0.7.0 latest snapshot? If you are, please do me
>>>> a favor. First put a break point before where the problem happened in your
>>>> test code,
>>>> then turn on the Engine console logging by adding the following call to
>>>> your code,
>>>>
>>>> useEngineLog(true)
>>>>
>>>> or click on the Tellurium logging button on the testing page. More
>>>> details here:
>>>>
>>>> http://code.google.com/p/aost/wiki/Tellurium070Update#Engine_Logging
>>>>
>>>> Please also put a breakpoint at the @AfterClass method in the base test
>>>> class so that you can check the console logging before the browser is
>>>> killed.
>>>>
>>>> You should see some error messages there. If you click on the error
>>>> message, you should see some stack trace. Please post all the logging
>>>> messages and stack trace here.
>>>>
>>>> Thanks in advance,
>>>>
>>>> Jian
>>>>
>>>> On Mon, Feb 1, 2010 at 5:04 AM, Pascal Gandilhon <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi Jian,
>>>>>
>>>>> it seems there is a problem on ie 6 and 7 with some webPages based on
>>>>> Jquery :
>>>>>
>>>>> using single Window mode (i.e. useMultiWindow = false on
>>>>> TelluriumConfig.groovy) wich is default property, I have this warning :
>>>>>
>>>>> 'document.body' is null or not an object
>>>>>
>>>>> The only way I found to solve this problem was to use multi windows
>>>>> mode (useMultiWindow = true on TelluriumConfig.groovy) , wich is not a
>>>>> very
>>>>> big problem for me.
>>>>> I just passed several hours to find this issue and didn't find any help
>>>>> on the web about this, so I'm posting this message if it can save time to
>>>>> the next one..... or if someone knows another issue.
>>>>>
>>>>> regards,
>>>>>
>>>>> Pascal
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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]<tellurium-users%[email protected]>
>>>>> .
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/tellurium-users?hl=en.
>>>>>
>>>>
>>>> --
>>>> 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]<tellurium-users%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/tellurium-users?hl=en.
>>>>
>>>
>>> --
>>> 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]<tellurium-users%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/tellurium-users?hl=en.
>>>
>>
>> --
>> 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]<tellurium-users%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/tellurium-users?hl=en.
>>
>
> --
> 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]<tellurium-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/tellurium-users?hl=en.
>
--
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.