Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029719Openbravo ERPA. Platformpublic2015-04-28 16:302015-05-13 18:31
alostale 
alostale 
normalminorN/A
closedfixed 
5
 
3.0PR15Q3 
AugustoMauch
Core
No
0029719: Recover QUnit JavaScript test cases in CI
There is a framework to write JavaScript unit test cases based on QUnit already implemented in Openbravo and some test cases written using it. These test cases are not included in CI and therefore never executed.

They should be included in CI because it would make easier to write certain cases.

Some of them are currently failing.
Open test suite url [1] and check some cases are failing.

[1] http://localhost:8081/openbravo/web/org.openbravo.client.kernel/ui-test-suite/index.html?hidepassed [^]
-Fix failing cases
-Update QUnit to latest available version (1.1.18)
-Adapt CI to include their execution
No tags attached.
Issue History
2015-04-28 16:30alostaleNew Issue
2015-04-28 16:30alostaleAssigned To => platform
2015-04-28 16:30alostaleModules => Core
2015-04-28 16:30alostaleTriggers an Emergency Pack => No
2015-04-28 16:31alostaleStatusnew => scheduled
2015-04-28 16:31alostaleAssigned Toplatform => alostale
2015-04-28 16:32alostaleReview Assigned To => AugustoMauch
2015-04-28 16:38hgbotCheckin
2015-04-28 16:38hgbotNote Added: 0076833
2015-04-28 16:38hgbotStatusscheduled => resolved
2015-04-28 16:38hgbotResolutionopen => fixed
2015-04-28 16:38hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/fc47b4b70148415f5fe558f328f4631a55b06cf5 [^]
2015-04-29 08:45hgbotCheckin
2015-04-29 08:45hgbotNote Added: 0076844
2015-04-29 09:22alostaleSummaryRecover QUnit JavaSript test cases in CI => Recover QUnit JavaScript test cases in CI
2015-04-29 17:46hgbotCheckin
2015-04-29 17:46hgbotNote Added: 0076880
2015-05-07 22:17hudsonbotCheckin
2015-05-07 22:17hudsonbotNote Added: 0077174
2015-05-07 22:17hudsonbotCheckin
2015-05-07 22:17hudsonbotNote Added: 0077176
2015-05-07 22:17hudsonbotCheckin
2015-05-07 22:17hudsonbotNote Added: 0077185
2015-05-13 09:28dmitry_mezentsevNote Added: 0077364
2015-05-13 18:31AugustoMauchNote Added: 0077416
2015-05-13 18:31AugustoMauchStatusresolved => closed
2015-05-13 18:31AugustoMauchFixed in Version => 3.0PR15Q3

Notes
(0076833)
hgbot   
2015-04-28 16:38   
Repository: erp/devel/pi
Changeset: fc47b4b70148415f5fe558f328f4631a55b06cf5
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Apr 28 16:36:59 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/fc47b4b70148415f5fe558f328f4631a55b06cf5 [^]

fixed issue 29719: Recover QUnit JavaSript test cases

  QUnit test cases are now ready to be included in CI:
   -QUnit library has been updated to latest version (1.1.18)
   -JavaScript files are loaded in a proper order to guarantee dependencies
   -Test cases create an Openbravo session not requiring to use a 2nd tab
   -Results are kept in a js object so Selenium can easily access

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-navbar-test.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-property-store-test.js
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/TestComponent.java
M modules/org.openbravo.client.kernel/web/org.openbravo.client.kernel/ui-test-suite/index.html
M modules/org.openbravo.client.kernel/web/org.openbravo.client.kernel/ui-test-suite/qunit/qunit.css
M modules/org.openbravo.client.kernel/web/org.openbravo.client.kernel/ui-test-suite/qunit/qunit.js
M modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/test/ob-myopenbravo-test.js
---
(0076844)
hgbot   
2015-04-29 08:45   
Repository: erp/devel/pi
Changeset: b586f2fd789c51e93d3d47074dddf812d79341ca
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Apr 29 08:44:27 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b586f2fd789c51e93d3d47074dddf812d79341ca [^]

related to issue 29719: fixed jsLint

 - Do not use global functions exposed by QUnit but use the ones defined within
   the QUnit global object
 - Define QUnit as /*global*/ directive JSLint not to complain about it use

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-navbar-test.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-property-store-test.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-ui-test.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-utilities-date-test.js
M modules/org.openbravo.client.kernel/web/org.openbravo.client.kernel/ui-test-suite/index.html
M modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/test/ob-myopenbravo-test.js
---
(0076880)
hgbot   
2015-04-29 17:46   
Repository: erp/devel/pi
Changeset: 514824a645b5a265eab84d2881dce5981dc709be
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Apr 29 17:45:24 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/514824a645b5a265eab84d2881dce5981dc709be [^]

related to issue 29719: fixed property store test

  CCU property is expected to be present

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/test/ob-property-store-test.js
---
(0077174)
hudsonbot   
2015-05-07 22:17   
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/a1817f84bd8b [^]
Maturity status: Test
(0077176)
hudsonbot   
2015-05-07 22:17   
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/a1817f84bd8b [^]
Maturity status: Test
(0077185)
hudsonbot   
2015-05-07 22:17   
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/a1817f84bd8b [^]
Maturity status: Test
(0077364)
dmitry_mezentsev   
2015-05-13 09:28   
Ping. Not closed for 15 days!
(0077416)
AugustoMauch   
2015-05-13 18:31   
Code reviewed and verified in pi@bf874a971617