Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions web_selenium/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "We Selenium",
"name": "Web Selenium",
"summary": "Record your testcases with Selenium",
"version": "9.0.1.0.0",
"version": "9.0.1.0.2",
"category": "Hidden",
"website": "http://www.brain-tec.ch",
"author": "Andreas Stauder <[email protected]>",
Expand Down
56 changes: 24 additions & 32 deletions web_selenium/static/src/xml/base_ext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,30 @@
<!-- vim:fdl=1: -->
<templates id="template" xml:space="preserve">


<!--<t t-extend="Login">-->
<!--<t t-jquery="input[name='name']" t-operation="append">-->
<!--<t t-att-value="widget.selected_login || ''" />-->
<!--</t>-->

<!--<t t-jquery="input[name='name']" t-operation="append">-->
<!--<t t-att-value="widget.selected_password || ''" />-->
<!--</t>-->

<!--</t>-->

<!-- tested: ok 9.0 EE -->
<t t-extend="AppSwitcher">
<t t-jquery="div a">
this.attr('t-att-data-bt-testing-menu', 'primary_menu.name');
</t>
</t>

<t t-extend="Menu.sections">
<t t-jquery="li a.dropdown-toggle">
this.attr('t-att-data-bt-testing-sub-menu_id', 'second_level_menu.id');
this.attr('t-att-data-bt-testing-sub-menu', 'second_level_menu.name');
</t>
</t>

<!--
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.getParent and widget.getParent().view and widget.getParent().view.fields_view.model');
this.attr('t-att-data-bt-testing-name', 'this.widget and widget.getParent and widget.getParent().name');
-->
<t t-extend="Menu.link">
<t t-jquery="li a">
this.attr('t-att-data-bt-testing-sub-sub-menu', 'menu.name');
</t>
</t>

<!-- tested: ok -->
<t t-extend="ViewManager">
<t t-jquery="div.oe-view-manager-content">
this.attr('data-batomo', 'my');
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.getParent and widget.getParent().view and widget.getParent().view.fields_view.model');
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.getParent and widget.getParent().view and widget.getParent().view.model');
this.attr('t-att-data-bt-testing-name', 'widget and widget.getParent and widget.getParent().name');
this.attr('t-att-data-bt-testing-submodel_name', 'widget.model');
</t>
Expand All @@ -45,7 +40,6 @@
</t>
</t>


<t t-extend="ListView.buttons">
<!-- tested: ok 9.0 EE -->
<t t-jquery="button.o_list_button_add">
Expand Down Expand Up @@ -100,15 +94,15 @@
<t t-extend="FieldChar">
<t t-jquery="input">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'widget.view.fields_view.model');
this.attr('t-att-data-bt-testing-model_name', 'widget.view.model');
</t>
</t>

<!-- tested: no -->
<t t-extend="FieldMonetary">
<t t-jquery="input">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'widget.view.fields_view.model');
this.attr('t-att-data-bt-testing-model_name', 'widget.view.model');
</t>
</t>

Expand All @@ -117,15 +111,15 @@
<t t-extend="FieldEmail">
<t t-jquery="input">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'widget.view.fields_view.model');
this.attr('t-att-data-bt-testing-model_name', 'widget.view.model');
</t>
</t>

<!-- ok: 9.0 EE -->
<t t-extend="FieldText">
<t t-jquery="textarea">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'widget.view.fields_view.model');
this.attr('t-att-data-bt-testing-model_name', 'widget.view.model');
</t>
</t>

Expand All @@ -141,47 +135,47 @@
<t t-extend="FieldSelection">
<t t-jquery="select">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.view and widget.view.fields_view and widget.view.fields_view.model');
this.attr('t-att-data-bt-testing-model_name', 'widget and widget.view and widget.view.fields_view.model');
</t>

<t t-jquery="select option">
this.attr('t-att-data-type', 'widget.field and widget.field.type');
<!-- When the field is selection take the tecnical value to be language independend.
If it is a many2one field, take the name of the field instead of the id. It's better to be database independend than language independend
-->
this.attr('t-att-data-bt-testing-value', "widget.field.type === 'many2one' ? option[1] : option[0]");
this.attr('t-att-data-bt-testing-value', "widget.field.type === 'many2one' ? option[1] : option[0]");
</t>
</t>

<!-- ok: 9.0 EE -->
<t t-extend="FieldMany2One">
<t t-jquery="input[type='text']">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'widget.view and widget.view.fields_view and widget.view.fields_view.model');
this.attr('t-att-data-bt-testing-model_name', 'widget.view.model');
</t>
</t>

<!-- adapted, but not tested: 9.0 EE -->
<t t-extend="FieldMany2ManyTags">
<t t-jquery="div.o_form_field_many2manytags">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'widget.view.fields_view.model');
this.attr('t-att-data-bt-testing-model_name', 'widget.view.model');
</t>
</t>

<!-- adapted, but not tested: 9.0 EE -->
<t t-extend="FieldBoolean">
<t t-jquery="div.o_form_field_boolean input[type='checkbox']">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'widget.view.fields_view.model');
this.attr('t-att-data-bt-testing-model_name', 'widget.view.model');
</t>
</t>

<!-- adapted, but not tested: 9.0 EE -->
<t t-extend="FieldBinaryFile">
<t t-jquery="input.field_binary">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'widget.view.fields_view.model');
this.attr('t-att-data-bt-testing-model_name', 'widget.view.model');
</t>
</t>

Expand All @@ -194,13 +188,11 @@
</t>
</t>



<!-- adapted, but not tested: 9.0 EE -->
<t t-extend="FieldRadio">
<t t-jquery="input.o_form_radio">
this.attr('t-att-data-bt-testing-name', 'widget.name');
this.attr('t-att-data-bt-testing-model_name', 'widget.view.fields_view.model');
this.attr('t-att-data-bt-testing-model_name', 'widget.view.model');
</t>
</t>
-->
Expand Down