Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013308Openbravo ERP01. General setuppublic2010-05-13 09:082010-06-25 16:34
elopio 
iperdomo 
urgentmajorrandom
closedno change required 
5
 
pi 
Core
No
0013308: Can't schedule accounting process with selenium
While executing ACC0020_ScheduleAccountingProcess with selenium the process can't be scheduled.

This used to happen randomly. Now it's happening more often; you can see the history in hudson [1], it failed four times in a row. It is really weird as the smoke executes around 4 process scheduling/unscheduling and they all succeed.

The problem is only with this scenario. And the difference from the rest is that this one first creates the process (with a user that's not the system administrator) and then schedules it. The other tests schedule the AcctServerProcess with Openbravo user.

To make it even more weird, the application shows no error. The test creates the process and then clicks the schedule button. A green message is shown saying that the process was scheduled and everything seems fine. But when the popup with the message is closed, the schedule button is still visible. And the unschedule button is not.

I haven't been able to reproduce it manually, so it might be a conflict with selenium.

I know that I'm not giving you much information and this would be hard to fix. But please let me know what additional information would be useful and I'll try to provide it to you. And you might know the difference between a scheduling the process that already exists and a newly created process.

Setting priority as high because it breaks the automated smoke.

[1] http://builds.openbravo.com/job/erp_devel_main-pgsql-smoke-test/192/testReport/com.openbravo.test.integration.erp.testsuites.smoke.accountingprocess/ACC0010_ScheduleAccountingProcess/history/ [^]
Run masterdata suite up to test ADM0110_CreateUser
Run ACC0010_DeactivateBackgroundProcess test
Run ACC0020_ScheduleAccountingProcess test
after showing the message saying that the process was successfully scheduled, the schedule button should be hidden and the unschedule button unhidden.
No tags attached.
related to defect 00133862.50MP19 closed iperdomo Openbravo ERP It is possible to delete a Scheduled process 
blocks defect 0013307 closed elopio QA Smoke suite fails in schedule accounting process 
Issue History
2010-05-13 09:08elopioNew Issue
2010-05-13 09:08elopioAssigned To => adrianromero
2010-05-13 09:08elopioRelationship addedblocks 0013307
2010-05-13 10:52psarobePriorityhigh => urgent
2010-05-13 10:52psarobeSeverityminor => major
2010-05-13 10:52psarobeStatusnew => scheduled
2010-05-18 18:05adrianromeroAssigned Toadrianromero => iperdomo
2010-05-18 18:10adrianromeroNote Added: 0027447
2010-05-18 19:37iperdomoNote Added: 0027449
2010-05-18 19:37iperdomoAssigned Toiperdomo => elopio
2010-05-18 19:37iperdomoStatusscheduled => feedback
2010-05-19 10:13plujanAssigned Toelopio => iperdomo
2010-05-19 10:14plujanNote Added: 0027549
2010-05-19 16:23elopioNote Added: 0027559
2010-05-19 16:26plujanRelationship addedrelated to 0013386
2010-05-19 16:29plujanNote Added: 0027560
2010-05-19 16:29plujanStatusfeedback => closed
2010-05-19 16:30plujanResolutionopen => no change required
2010-05-20 00:00anonymoussf_bug_id0 => 3004340
2010-05-26 09:29hgbotCheckin
2010-05-26 09:29hgbotNote Added: 0027738
2010-05-26 09:29hgbotCheckin
2010-05-26 09:29hgbotNote Added: 0027739
2010-05-28 07:04hgbotCheckin
2010-05-28 07:04hgbotNote Added: 0027787
2010-05-28 07:04hgbotCheckin
2010-05-28 07:04hgbotNote Added: 0027788
2010-05-28 07:47hgbotCheckin
2010-05-28 07:47hgbotNote Added: 0027797
2010-05-28 07:47hgbotCheckin
2010-05-28 07:47hgbotNote Added: 0027798
2010-05-28 09:32hgbotCheckin
2010-05-28 09:32hgbotNote Added: 0027806
2010-05-28 09:32hgbotCheckin
2010-05-28 09:32hgbotNote Added: 0027807
2010-06-11 05:46hgbotCheckin
2010-06-11 05:46hgbotNote Added: 0028283
2010-06-11 05:46hgbotCheckin
2010-06-11 05:46hgbotNote Added: 0028284
2010-06-25 16:34hgbotCheckin
2010-06-25 16:34hgbotNote Added: 0028785
2010-06-25 16:34hgbotCheckin
2010-06-25 16:34hgbotNote Added: 0028786

Notes
(0027447)
adrianromero   
2010-05-18 18:10   
To try to reduce the area where this error is located, It would be good to enable the log configuration to the finest level and enable the log of SQL sentences and parameters Hibernate executes in the log4j.lcf configuration file. Then compare the logs produced by a sequence where the error is reproduced and by a sequence where the error is not reproduced.
(0027449)
iperdomo   
2010-05-18 19:37   
Make sure that you unschedule the process with the System Administrator role _before_ trying to schedule it for an specific client.

Please check with PSA about, how to enable the AcctSever for an specific client.

Cheers,

Iván
(0027549)
plujan   
2010-05-19 10:14   
Please do not change assigned user when asking for feedback. You (Ivan) are still the developer assigned no matter current issue status.
(0027559)
elopio   
2010-05-19 16:23   
The test before this one unschedules the original AcctServerProcess with user Openbravo.
I'll ask PSA about the enabling, however I think that this process is correctly enabled, as sometimes the schedule succeeds.
(0027560)
plujan   
2010-05-19 16:29   
Raised issue 0013387 and modified the related test case to put proper dates.
(0027738)
hgbot   
2010-05-26 09:29   
Repository: tools/automation/main
Changeset: 7435a62e7aef9ac5bd03ca0b826aa6adde48a435
Author: Pablo Lujan <pablo.lujan <at> openbravo.com>
Date: Wed May 19 17:04:24 2010 +0200
URL: http://code.openbravo.com/tools/automation/main/rev/7435a62e7aef9ac5bd03ca0b826aa6adde48a435 [^]

Prevents issue 13308 to appear

---
M src-test/com/openbravo/test/integration/erp/gui/general/processscheduling/ProcessRequest.java
---
(0027739)
hgbot   
2010-05-26 09:29   
Repository: tools/automation/main
Changeset: dd575b41dea049112697182be285d4da95898c7e
Author: Pablo Lujan <pablo.lujan <at> openbravo.com>
Date: Wed May 19 17:04:51 2010 +0200
URL: http://code.openbravo.com/tools/automation/main/rev/dd575b41dea049112697182be285d4da95898c7e [^]

Prevents issue 13308 to appear

---
M src-test/com/openbravo/test/integration/erp/testsuites/smoke/accountingprocess/ACC0020_ScheduleAccountingProcess.java
---
(0027787)
hgbot   
2010-05-28 07:04   
Repository: tools/automation/pi-exchange
Changeset: 7435a62e7aef9ac5bd03ca0b826aa6adde48a435
Author: Pablo Lujan <pablo.lujan <at> openbravo.com>
Date: Wed May 19 17:04:24 2010 +0200
URL: http://code.openbravo.com/tools/automation/pi-exchange/rev/7435a62e7aef9ac5bd03ca0b826aa6adde48a435 [^]

Prevents issue 13308 to appear

---
M src-test/com/openbravo/test/integration/erp/gui/general/processscheduling/ProcessRequest.java
---
(0027788)
hgbot   
2010-05-28 07:04   
Repository: tools/automation/pi-exchange
Changeset: dd575b41dea049112697182be285d4da95898c7e
Author: Pablo Lujan <pablo.lujan <at> openbravo.com>
Date: Wed May 19 17:04:51 2010 +0200
URL: http://code.openbravo.com/tools/automation/pi-exchange/rev/dd575b41dea049112697182be285d4da95898c7e [^]

Prevents issue 13308 to appear

---
M src-test/com/openbravo/test/integration/erp/testsuites/smoke/accountingprocess/ACC0020_ScheduleAccountingProcess.java
---
(0027797)
hgbot   
2010-05-28 07:47   
Repository: tools/automation/2.50
Changeset: 7435a62e7aef9ac5bd03ca0b826aa6adde48a435
Author: Pablo Lujan <pablo.lujan <at> openbravo.com>
Date: Wed May 19 17:04:24 2010 +0200
URL: http://code.openbravo.com/tools/automation/2.50/rev/7435a62e7aef9ac5bd03ca0b826aa6adde48a435 [^]

Prevents issue 13308 to appear

---
M src-test/com/openbravo/test/integration/erp/gui/general/processscheduling/ProcessRequest.java
---
(0027798)
hgbot   
2010-05-28 07:47   
Repository: tools/automation/2.50
Changeset: dd575b41dea049112697182be285d4da95898c7e
Author: Pablo Lujan <pablo.lujan <at> openbravo.com>
Date: Wed May 19 17:04:51 2010 +0200
URL: http://code.openbravo.com/tools/automation/2.50/rev/dd575b41dea049112697182be285d4da95898c7e [^]

Prevents issue 13308 to appear

---
M src-test/com/openbravo/test/integration/erp/testsuites/smoke/accountingprocess/ACC0020_ScheduleAccountingProcess.java
---
(0027806)
hgbot   
2010-05-28 09:32   
Repository: tools/automation/pi-parallel
Changeset: 7435a62e7aef9ac5bd03ca0b826aa6adde48a435
Author: Pablo Lujan <pablo.lujan <at> openbravo.com>
Date: Wed May 19 17:04:24 2010 +0200
URL: http://code.openbravo.com/tools/automation/pi-parallel/rev/7435a62e7aef9ac5bd03ca0b826aa6adde48a435 [^]

Prevents issue 13308 to appear

---
M src-test/com/openbravo/test/integration/erp/gui/general/processscheduling/ProcessRequest.java
---
(0027807)
hgbot   
2010-05-28 09:32   
Repository: tools/automation/pi-parallel
Changeset: dd575b41dea049112697182be285d4da95898c7e
Author: Pablo Lujan <pablo.lujan <at> openbravo.com>
Date: Wed May 19 17:04:51 2010 +0200
URL: http://code.openbravo.com/tools/automation/pi-parallel/rev/dd575b41dea049112697182be285d4da95898c7e [^]

Prevents issue 13308 to appear

---
M src-test/com/openbravo/test/integration/erp/testsuites/smoke/accountingprocess/ACC0020_ScheduleAccountingProcess.java
---
(0028283)
hgbot   
2010-06-11 05:46   
Repository: tools/automation/pi-regression
Changeset: 7435a62e7aef9ac5bd03ca0b826aa6adde48a435
Author: Pablo Lujan <pablo.lujan <at> openbravo.com>
Date: Wed May 19 17:04:24 2010 +0200
URL: http://code.openbravo.com/tools/automation/pi-regression/rev/7435a62e7aef9ac5bd03ca0b826aa6adde48a435 [^]

Prevents issue 13308 to appear

---
M src-test/com/openbravo/test/integration/erp/gui/general/processscheduling/ProcessRequest.java
---
(0028284)
hgbot   
2010-06-11 05:46   
Repository: tools/automation/pi-regression
Changeset: dd575b41dea049112697182be285d4da95898c7e
Author: Pablo Lujan <pablo.lujan <at> openbravo.com>
Date: Wed May 19 17:04:51 2010 +0200
URL: http://code.openbravo.com/tools/automation/pi-regression/rev/dd575b41dea049112697182be285d4da95898c7e [^]

Prevents issue 13308 to appear

---
M src-test/com/openbravo/test/integration/erp/testsuites/smoke/accountingprocess/ACC0020_ScheduleAccountingProcess.java
---
(0028785)
hgbot   
2010-06-25 16:34   
Repository: tools/automation/pi-dbunit
Changeset: 7435a62e7aef9ac5bd03ca0b826aa6adde48a435
Author: Pablo Lujan <pablo.lujan <at> openbravo.com>
Date: Wed May 19 17:04:24 2010 +0200
URL: http://code.openbravo.com/tools/automation/pi-dbunit/rev/7435a62e7aef9ac5bd03ca0b826aa6adde48a435 [^]

Prevents issue 13308 to appear

---
M src-test/com/openbravo/test/integration/erp/gui/general/processscheduling/ProcessRequest.java
---
(0028786)
hgbot   
2010-06-25 16:34   
Repository: tools/automation/pi-dbunit
Changeset: dd575b41dea049112697182be285d4da95898c7e
Author: Pablo Lujan <pablo.lujan <at> openbravo.com>
Date: Wed May 19 17:04:51 2010 +0200
URL: http://code.openbravo.com/tools/automation/pi-dbunit/rev/dd575b41dea049112697182be285d4da95898c7e [^]

Prevents issue 13308 to appear

---
M src-test/com/openbravo/test/integration/erp/testsuites/smoke/accountingprocess/ACC0020_ScheduleAccountingProcess.java
---