Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0017493
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2011-06-03 13:282011-06-07 08:34
ReporterplujanView Statuspublic 
Assigned Tomtaal 
PriorityimmediateResolutionno change requiredFixed in Version
StatusclosedFix in branchpiFixed in SCM revision
ProjectionnoneETAnoneTarget Version3.0MP0
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0017493: Selenium tests are broken because of a change in the Date fields behaviour

DescriptionBecause of fix to issue 0017434, Selenium tests are not working properly. Reported issue 0017462 was rejected since it cannot be reproduced manually. However, since the fix Selenium tests are not filling the date fields. See steps.
Steps To ReproduceWhen executing a Unit test that fills a date field, the field is not filled with the desired date. See an output at http://goo.gl/lHQm1 [^]

The observed behaviour is:
1. Selenium opens a Sales Order in Form
2. Selenium clears current Order Date content (this is because of issue 0016730 )
3. Selenium writes desired value.
4. The ERP then, clears the value, changing it back to empty
5. Selenium tries to save. It shows an error because a mandatory field is empty.
Proposed SolutionI've spent several hours trying to workaround this issue, with no luck. So may be some change from the ERP side could help Selenium to behave as expected. Until this issue were fixed, no automated smoke tests could be executed.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
has duplicate defect 0017499 closedalostale It is not possible to enter text with selenium on date fields 
related to feature request 0017560 newTriage Platform Base Make date fields management Selenium friendly 

-  Notes
(0038016)
hgbot (developer)
2011-06-06 10:22

Repository: erp/devel/pi
Changeset: 6f28c4fd4d65de0a4d5f384f6f9357e94d70feb9
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Jun 06 10:21:18 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/6f28c4fd4d65de0a4d5f384f6f9357e94d70feb9 [^]

Related to issue 17493: Selenium tests are broken because of a change in the Date fields behaviour

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
---
(0038047)
plujan (manager)
2011-06-06 15:53

I've implemented a workaround from automation code. I'll push it to development branch and if it works, I'll promote it to the stable branch.
(0038067)
hgbot (developer)
2011-06-06 18:53

Repository: tools/automation/int
Changeset: b3d7087a0fb1a65622e33e5497e6cf4e109d41b4
Author: Pablo Lujan <pablo.lujan <at> openbravo.com>
Date: Mon Jun 06 15:54:59 2011 +0200
URL: http://code.openbravo.com/tools/automation/int/rev/b3d7087a0fb1a65622e33e5497e6cf4e109d41b4 [^]

Related to issue 17493: Works around issue with Date fields

---
M src-test/com/openbravo/test/integration/erp/modules/userinterface/smartclient/gui/DateItem.java
M src-test/com/openbravo/test/integration/erp/modules/userinterface/smartclient/gui/TextItem.java
---
(0038072)
hudsonbot (developer)
2011-06-07 03:56

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/aefaedafb236 [^]

Maturity status: Test
(0038081)
plujan (manager)
2011-06-07 08:34

A fix was made in the Selenium code, so no extra change in the ERP required.

- Issue History
Date Modified Username Field Change
2011-06-03 13:28 plujan New Issue
2011-06-03 13:28 plujan Assigned To => iperdomo
2011-06-03 13:28 plujan Modules => Core
2011-06-03 13:38 jpabloae Issue Monitored: jpabloae
2011-06-06 10:21 iperdomo Status new => scheduled
2011-06-06 10:21 iperdomo Assigned To iperdomo => mtaal
2011-06-06 10:21 iperdomo fix_in_branch => pi
2011-06-06 10:22 hgbot Checkin
2011-06-06 10:22 hgbot Note Added: 0038016
2011-06-06 15:53 plujan Note Added: 0038047
2011-06-06 17:13 elopio Relationship added has duplicate 0017499
2011-06-06 18:53 hgbot Checkin
2011-06-06 18:53 hgbot Note Added: 0038067
2011-06-07 03:56 hudsonbot Checkin
2011-06-07 03:56 hudsonbot Note Added: 0038072
2011-06-07 08:34 plujan Note Added: 0038081
2011-06-07 08:34 plujan Status scheduled => closed
2011-06-07 08:34 plujan Resolution open => no change required
2011-06-08 13:13 plujan Relationship added related to 0017560


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker