Erwan,

For SeleniumRC commands that aren't mapped to a valid SeleniumXml element we
added a method called SeleniumXml.callByReflection().  If the element name
matches exactly the SeleniumRC API call then it should be able to call the
SeleniumRC API for assertConfirmation.

You could try using that first.  If you need the parameters for the API to
be in a specific order than you need to implement the assertConfirmation as
another command in the Selenium XML.

Logging is a problem.  I create a simple log4j implementation originally but
it just uses the defaults and doesn't read any configuration files for
log4j.  Ideally it would be nice to call the ofbiz logging features (as well
as other features) but this then requires that your test runs inside the
ofbiz/tomcat container.  I wanted to avoid that because of the slow load
times to run tests.

I think using one of those logging report solutions that you mentioned would
be a good idea.  We just need to be careful that it doesn't violate any of
the Apache license issues.  It would also be nice if the seleniumXml logging
reports worked with whatever we decide to use with the OFBiz junit
reporting.

Let me know what you think.


Brett



On Wed, Dec 2, 2009 at 11:31 AM, Erwan de FERRIERES <
erwan.de-ferrie...@nereide.biz> wrote:

> Brett,
>
> I've been working on seleniums and tests, as you may have seen, all the
> day.
> I corrected one of the tests you gave to make it work, an element has got
> his name changed.
>
> Index: testdef/seleniumxml/example/example_new.xml
> ===================================================================
> --- testdef/seleniumxml/example/example_new.xml (révision 886173)
> +++ testdef/seleniumxml/example/example_new.xml (copie de travail)
> @@ -20,11 +20,11 @@
>   <waitForPageToLoad value="10000" />
>   <click locator="link=Items" />
>   <waitForPageToLoad value="10000" />
> -  <type name="description" value="Item 1" />
> +  <type name="AddExampleItem_description" value="Item 1" />
>   <type name="amount" value="100" />
>   <select locator="amountUomId" option="label=Weight: Stone (st)" />
>
> But there is another point : in rev. 815734 (september 2009), a new feature
> was added to OFBiz, and to the AddExampleItem form. It's a confirmation
> pop-up which appears when you click on the "add" button.
>
> With Selenium IDE, it's possible to manage a confirmation pop-up with the
> assertConfirmation command, which is not yet implemented in seleniumXml.
>
> Last thing for today : there is no logs created by seleniumXml. Could we
> think of something together, which could produce nice reports, like logging
> selenium <http://loggingselenium.sourceforge.net/>, or more basic like
> JUnitReport.
>
> I'm waiting for your comments.
>
> Cheers,
>
> Le 01/12/2009 20:32, Brett Palmer a écrit :
>
>  Erwan,
>>
>> The latest update to the seleniumXml code was added to JIRA Sept. 23, 2009
>>
>> https://issues.apache.org/jira/browse/OFBIZ-2964
>>
>> Hans Bakker committed it to the trunk in revision 819863 (Sept. 29).
>>
>> The duplicate libraries are probably a hold over from when the code was
>> hosted on sourceforge as an independent project.  We should remove the
>> duplicate libraries and update the appropriate build files.
>>
>> You could raise a JIRA ticket and Hans can probably remove the duplicate
>> libraries.
>>
>> Any improvements to the seleniumXml framework are encouraged.  I think
>> what
>> we need now are more example test cases for existing OFBiz applications.
>>  Many of the utilities in the framework were created because of a specific
>> testing need and I'm sure there are a lot more to add.
>>
>> Let me know how I can help.
>>
>> Thanks,
>>
>>
>> Brett
>>
>> On Tue, Dec 1, 2009 at 10:36 AM, Erwan de FERRIERES<
>> erwan.de-ferrie...@nereide.biz>  wrote:
>>
>>  Hi all,
>>>
>>> while looking a bit deeper to the testtools component, I found that there
>>> was a library duplicated and another one which is not used, and both of
>>> them
>>> are not declared in the .classpath file.
>>>
>>> json-lib-2.2.3-jdk15.jar is already present in webapp/lib
>>> httpmime-4.0-beta1.jar os not called anywhere
>>>
>>> What are the steps to follow ?
>>>
>>> Brett,
>>>
>>> we (some colleagues and myself) would like to improve the seleniumXML
>>> component. Have you made some code updates since last august ?
>>> Have you advices to give us ?
>>>
>>> Cheers,
>>>
>>> --
>>> Erwan
>>>
>>>
>>
> --
> Erwan
>

Reply via email to