Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10.0 merge pos multi session sync #467

Merged
Merged
Changes from 1 commit
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
bf0ff62
[REF] pos_lonpolling: allow multiple polling server (#412)
KolushovAlexandr Sep 30, 2017
af2d9c4
[DEV] (#425)
KolushovAlexandr Oct 1, 2017
7b3c0fd
[DEV] features are moved to pos_multi_session_sync (#429)
KolushovAlexandr Oct 14, 2017
f6a270c
[LINT] (#442)
KolushovAlexandr Oct 17, 2017
a0fc4e6
Merge remote-tracking branch 'upstream/10.0' into 10.0-pos_multi_sess…
Oct 17, 2017
90c2c04
Merge pull request #447 from yelizariev/10.0-pos_multi_session_sync-m…
Oct 17, 2017
5a5c5dc
[LINT] (#449)
KolushovAlexandr Oct 17, 2017
a7b204a
[DEV] green PR! (#448)
KolushovAlexandr Oct 20, 2017
0c5a9a4
[DOC] index, readme
KolushovAlexandr Oct 20, 2017
cd52fa3
[DOC] fix format
Oct 23, 2017
3be11f9
[DOC] format
Oct 23, 2017
b506dd3
[DOC] refactoring
Oct 23, 2017
3d7bc29
[DOC] instruction for docker users
Oct 23, 2017
798b6ff
[DOC] test cannot be run inside external_tests
Oct 23, 2017
4514639
[DOC] folder external_tests must be specified to avoid run tests in …
Oct 23, 2017
d4f399e
[DOC] specify -t, because we need to import from there
Oct 23, 2017
883b592
[DOC] run withou test-enable, but require new System Parameter
Oct 23, 2017
ea8f599
[DOC] fix format
Oct 23, 2017
268de24
[CI] external tests
KolushovAlexandr Oct 23, 2017
bc5f8de
[CI] add ability to create screenshots
Jan 3, 2017
07b996c
[CI] use 3 sec timeout by default; tune switch_to_order
Jan 3, 2017
51fb338
[DOC][CI] how to run tests manually in normal browser
Jan 3, 2017
bbe5c8e
[CI] add test_31_queue; add more debug logs
Jan 3, 2017
c545716
[CI] * don't raise error "revision_error" in test_30 (#208)
Jan 4, 2017
b049e93
Merge remote-tracking branch 'upstream/10.0' into 10.0-pos_multi_sess…
KolushovAlexandr Oct 24, 2017
3e6b27b
Merge remote-tracking branch 'upstream/10.0' into 10.0-pos_multi_sess…
KolushovAlexandr Oct 24, 2017
fd43208
Merge pull request #454 from KolushovAlexandr/10.0-pos_multi_session_…
Oct 24, 2017
e692416
[IMP] save screenshots to /tmp/
Oct 24, 2017
9d97ce0
[DOC] fix format + add note
Oct 24, 2017
b8b57ec
Update README.rst
Oct 24, 2017
eae0a96
Update README.rst
Oct 24, 2017
d65789f
[DOC] make command multitline
Oct 24, 2017
93f2181
[FIX] external_tests: more logs + probably fix stranage issue with
Oct 24, 2017
6713adc
[DOC] don't use link as there is network
Oct 25, 2017
b8e9967
[FIX] name mess after fixing a lint
KolushovAlexandr Oct 25, 2017
8d6b24e
[FIX] multi_session_ID search, [CI] excessive check for demo where he…
KolushovAlexandr Oct 26, 2017
a071ee7
[FIX] slow connection remove order [CI] external test for removing an…
KolushovAlexandr Oct 26, 2017
b4d9913
[REM] logs, [TEXT]
KolushovAlexandr Oct 26, 2017
96ffaa8
[REM] remove obsolete code
Oct 26, 2017
8dba29c
[FIX] warning: write with unknown field
KolushovAlexandr Oct 27, 2017
d43b147
[CI] approach to standardizyed behaviour in launching phantom_js_multi
KolushovAlexandr Oct 27, 2017
d81e080
[DOC] external tests readme development
KolushovAlexandr Oct 27, 2017
7d06f6a
[IMP] prolongated timeout to catch poll request within it
KolushovAlexandr Oct 27, 2017
4545b41
[DOC] html description
Oct 30, 2017
7563628
[DOC] readme.rst for external tests
KolushovAlexandr Oct 30, 2017
51ea9ba
[REM] commented code in js, [DOC] longpollings changelog, fixes and u…
KolushovAlexandr Oct 30, 2017
8e5a538
Merge branch '10.0-pos_multi_session_sync' into 10.0-pos_multi_sessio…
KolushovAlexandr Oct 30, 2017
ba4a588
[DOC] fixing names
KolushovAlexandr Oct 30, 2017
7376eb1
Merge branch '10.0-pos_multi_session_sync' into 10.0-pos_multi_sessio…
KolushovAlexandr Oct 30, 2017
a1338d4
Merge branch '10.0-pos_multi_session_sync_21' of github.com:KolushovA…
KolushovAlexandr Oct 30, 2017
e91733f
[DOC] readme.rst for external tests, index.rst for ms_sync
KolushovAlexandr Oct 30, 2017
5759ef7
Merge pull request #463 from KolushovAlexandr/10.0-pos_multi_session_…
Oct 30, 2017
02dfd10
[DOC] updates in multi-session modules (#466)
KolushovAlexandr Oct 31, 2017
ff2d181
Merge remote-tracking branch 'upstream/10.0-pos_multi_session_sync' i…
Oct 31, 2017
8af4096
[DOC] bump 4.0.0
Oct 31, 2017
d89dd21
[DOC] bump 4.0.0 in changelog
Oct 31, 2017
68d2af6
[DOC] pos_longpolling: changelog.rst
ilmir-k Nov 3, 2017
9ae84de
[DOC] pos_multi_session: README.rst
ilmir-k Nov 3, 2017
828f361
[DOC] pos_multi_session: changelog.rst
ilmir-k Nov 3, 2017
8867531
[DOC] pos_multi_session: index.rst
ilmir-k Nov 3, 2017
2800e7b
[DOC] pos_multi_session_restaurant: index.rst
ilmir-k Nov 3, 2017
7165a87
[DOC] pos_multi_session_sync: README.rst
ilmir-k Nov 3, 2017
d85a819
[DOC] pos_multi_session_sync: index.rst
ilmir-k Nov 3, 2017
a864bf5
[FIX] unsinced new POS after loading
KolushovAlexandr Nov 7, 2017
95695ad
[REM] unused css, excessive checks [DOC] nginx example in index.rst
KolushovAlexandr Nov 7, 2017
6152cdd
[FIX] longpolling icons widgets
KolushovAlexandr Nov 7, 2017
a0baeea
[LINT] already defined/undefined variables
KolushovAlexandr Nov 7, 2017
79f8a70
[FIX] PING request has to have dbname (#3)
KolushovAlexandr Nov 14, 2017
5032ecd
[FIX] status icon (#4)
KolushovAlexandr Nov 20, 2017
77201d7
[ADD] conditions on empty object
KolushovAlexandr Nov 21, 2017
930da77
Merge branch '10.0' into 10.0-merge-pos_multi_session_sync
Nov 22, 2017
95796db
[REF] simplify code (#6)
KolushovAlexandr Nov 24, 2017
ac07c63
Merge branch '10.0' into 10.0-merge-pos_multi_session_sync
ilmir-k Nov 24, 2017
07e124d
[FIX] endless errors if sync server is defined incorrectly
KolushovAlexandr Nov 28, 2017
15b871a
issue #318 (#8)
KolushovAlexandr Nov 30, 2017
39b63b7
[FIX] double syncing (#9)
KolushovAlexandr Dec 1, 2017
899bd65
Merge branch '10.0' into 10.0-merge-pos_multi_session_sync
Dec 6, 2017
36f7dbd
[LINT]
Dec 6, 2017
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
Prev Previous commit
Next Next commit
[DOC] refactoring
  • Loading branch information
Ivan Yelizariev authored Oct 23, 2017
commit b506dd3b0af624f0814f1d6ae77231c163ef7fcc
65 changes: 37 additions & 28 deletions pos_multi_session/external_tests/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,40 @@
External tests
================

Install PhontomJS
-----------------
Prepare Odoo
============

* in file ``addons/point_of_sale/static/src/js/gui.js`` comment out following line ::

self.close_other_tabs();

* in file ``addons/bus/static/src/js/bus.js`` replace ::

if(typeof Storage !== "undefined"){
bus.bus = new CrossTabBus();
} else {
bus.bus = new bus.Bus();
}

with the following code: ::

bus.bus = new bus.Bus();

* use database with demo data
* configure nginx to handle ``/longpolling/poll`` requests

Run Odoo
========

* set ``-d`` (``--database``) parameter
* use default port
* use ``--test-enable``
* set ``--db-filter`` equal to database name
* set ``--workers=1``


Install Dependencies
====================

* Install phantomjs `2.0.0+ <https://github.com/ariya/phantomjs/commit/244cf251cd767db3ca72d1f2ba9432bda0b0ba7d>`__ ::

Expand All @@ -18,6 +50,9 @@ Update python library::
pip2 install -U requests
pip2 install 'requests[security]'

Run tests
=========

To run tests, you need to run odoo server and then execute::

cd pos_multi_session
Expand All @@ -26,29 +61,3 @@ To run tests, you need to run odoo server and then execute::
To run only one file::

DATABASE=test_database python -m unittest discover -p test_sync.py

Odoo server
-----------

* run it with ``-d`` (``--database--``) parameter
* run it with default port
* run it with ``--test-enable``
* use database with demo data
* use ``--db-filter`` it equal to database name
* use ``--workers=1``
* configure nginx to handle ``/longpolling/poll`` requests
* in file ``addons/point_of_sale/static/src/js/gui.js`` comment out following line ::

self.close_other_tabs();

* in file ``addons/bus/static/src/js/bus.js`` replace ::

if(typeof Storage !== "undefined"){
bus.bus = new CrossTabBus();
} else {
bus.bus = new bus.Bus();
}

with the following code: ::

bus.bus = new bus.Bus();