Produced by Araxis Merge on 10/4/2017 8:04:36 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | rdk.zip\rdk\product\production\rdk\src\write\orders\common | orders-common-edit-vista-writer-itest-spec.js | Mon Aug 21 12:51:00 2017 UTC |
| 2 | rdk.zip\rdk\product\production\rdk\src\write\orders\common | orders-common-edit-vista-writer-itest-spec.js | Tue Oct 3 19:00:20 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 6 | 196 |
| Changed | 5 | 26 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | 'use stric t'; | |
| 2 | ||
| 3 | var saveVi staWriter = require( '../lab/or ders-lab-v ista-write r'); | |
| 4 | var editVi staWriter = require( './orders- common-edi t-vista-wr iter'); | |
| 5 | var rpcCli entFactory = require ('./../../ core/rpc-c lient-fact ory'); | |
| 6 | ||
| 7 | var editWr itebackCon text = { | |
| 8 | pid: ' R E D A CTED ;100615', | |
| 9 | vistaC onfig: { | |
| 10 | host: ' IP ', | |
| 11 | port: PORT , | |
| 12 | accessCode : ' PL ', | |
| 13 | verifyCode : ' PL !!', | |
| 14 | localIP: ' IP ', | |
| 15 | lo calAddress : 'localho st', | |
| 16 | no Reconnect: true | |
| 17 | }, | |
| 18 | logger : sinon.st ub(require ('bunyan') .createLog ger({name: 'edit-vis ta-writer' })) | |
| 19 | }; | |
| 20 | ||
| 21 | var saveWr itebackCon text = { | |
| 22 | pid: ' R E D A CTED ;100615', | |
| 23 | vistaC onfig: { | |
| 24 | host: ' IP ', | |
| 25 | port: PORT , | |
| 26 | accessCode : ' PL ', | |
| 27 | verifyCode : ' PL !!', | |
| 28 | localIP: ' IP ', | |
| 29 | lo calAddress : 'localho st' | |
| 30 | }, | |
| 31 | model: { | |
| 32 | 'd fn': '1006 15', | |
| 33 | 'p rovider': '100000002 38', | |
| 34 | 'l ocation': '285', | |
| 35 | 'o rderDialog ': 'LR OTH ER LAB TES TS', | |
| 36 | 'd isplayGrou p': '5', | |
| 37 | 'q uickOrderD ialog': '2 ', | |
| 38 | 'i nputList': [ | |
| 39 | { | |
| 40 | 'inp utKey': '4 ', | |
| 41 | 'inp utValue': '350' | |
| 42 | }, | |
| 43 | { | |
| 44 | 'inp utKey': '1 26', | |
| 45 | 'inp utValue': '1' | |
| 46 | }, | |
| 47 | { | |
| 48 | 'inp utKey': '1 27', | |
| 49 | 'inp utValue': '72' | |
| 50 | }, | |
| 51 | { | |
| 52 | 'inp utKey': '1 80', | |
| 53 | 'inp utValue': '9' | |
| 54 | }, | |
| 55 | { | |
| 56 | 'inp utKey': '2 8', | |
| 57 | 'inp utValue': 'SP' | |
| 58 | }, | |
| 59 | { | |
| 60 | 'inp utKey': '6 ', | |
| 61 | 'inp utValue': 'TODAY' | |
| 62 | }, | |
| 63 | { | |
| 64 | 'inp utKey': '2 9', | |
| 65 | 'inp utValue': '28' | |
| 66 | } | |
| 67 | ], | |
| 68 | 'l ocalId': ' 12519', | |
| 69 | 'uid': 'ur n:va:order : R E D A CTED :100615:12 519', | |
| 70 | 'k ind': 'Lab oratory' | |
| 71 | }, | |
| 72 | logger : sinon.st ub(require ('bunyan') .createLog ger({name: 'edit-vis ta-writer' })) | |
| 73 | }; | |
| 74 | ||
| 75 | describe(' write-back orders co mmon edit vista writ er integra tion tests ', functio n() { | |
| 76 | afterE ach(functi on() { | |
| 77 | rp cClientFac tory.close RpcClient( editWriteb ackContext ); | |
| 78 | }); | |
| 79 | ||
| 80 | //Test w/o requi red resour ceId | |
| 81 | it('te sts that e dit order returns er ror with n o vprRespo nse', func tion(done) { | |
| 82 | th is.timeout (5000); | |
| 83 | ed itVistaWri ter(editWr itebackCon text, func tion(err, result) { | |
| 84 | expect(e rr).to.be. truthy(); | |
| 85 | expect(e ditWriteba ckContext. vprRespons e).to.be.u ndefined() ; | |
| 86 | expect(e ditWriteba ckContext. vprModel). to.be.unde fined(); | |
| 87 | done(); | |
| 88 | }) ; | |
| 89 | }); | |
| 90 | ||
| 91 | ||
| 92 | //This test will create a new lab or der in Vis ta. Uncom ment to te st locally | |
| 93 | it.ski p('tests t hat edit o rder retur ns success ful vprRes ponse', fu nction(don e) { | |
| 94 | th is.timeout (10000); | |
| 95 | sa veVistaWri ter.create (saveWrite backContex t, functio n(err, res ult) { | |
| 96 | expect(e rr).to.be. falsy(); | |
| 97 | expect(s aveWriteba ckContext. vprRespons e).to.be.t ruthy(); | |
| 98 | var resu ltArray = ('' + save WritebackC ontext.vpr Response). split('^') ; | |
| 99 | var orde rId = resu ltArray[0] .substring (1, result Array[0].l ength); | |
| 100 | console. log('===== order ID: '+ orderI d); | |
| 101 | editWrit ebackConte xt.resourc eId = orde rId; | |
| 102 | editVist aWriter(ed itWritebac kContext, function(e rr, result ) { | |
| 103 | expe ct(err).to .be.falsy( ); | |
| 104 | expe ct(editWri tebackCont ext.vprRes ponse).to. be.truthy( ); | |
| 105 | expe ct(editWri tebackCont ext.vprMod el).to.be. undefined( ); | |
| 106 | done (); | |
| 107 | }); | |
| 108 | }) ; | |
| 109 | }); | |
| 110 | ||
| 111 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.