mb-emulator

0.0.4 • Public • Published

mb-emulator

Node.js module to emulate the Message Broker PC/NonStop host protocol.

Will allow testing of CUI/sm & CUI/sxc in on-line mode without access to a customer NonStop system. On-line mode here means that no special code in CUI/sm or CUI/sxc is being invoked to support use without a NonStop server.

CUI/sm

  1. Support testing of versions of CUI/sm using the sample test SCOBOL - SCOBINFO - provided as prt of a CUI release.
  2. Support testing/replay of sessions recorded by a customer.
  3. Support testing of versions of CUI/sm using SCOBOL programs and simulated NonStop servers writtem by Circa specificilly for testing purposes.

Maybe add at a leter stage: CUI/sxc

  1. Support the use/testing of CUI/sxc v4 in on-line mode by emulating the CUI Work Server

Usage

To emulate MB messages using tcp run: node lib\run-tcp-mb.js

e.g. node lib\run-tcp-mb.js F:\ns-emulator\config.json \INGI59

  • CUI/mb parameters can be set in config.json in (project root directory else default of 127.0.0.1:3000 is used.
  • config.json parameter 'outRoot' specifies where the three trace files and the CUI licence & session files are created.

Until licence upload msgs are supported in a coming version create a default licence by running:

  node lib\non-stop\apps\cui\make-licence.js <path to config.json>

e.g. node F:\ns-emulator\lib\non-stop\apps\cui\make-licence.js F:\ns-emulator\config.json

============================================================================= Trace Files

  1. trace-mb-msgs.log
  2. trace-mb-msgs.json
  3. trace-mb-msgs.bin

Format of 'trace.mb-msgs.bin' file:

#map trace_msg msg_len u16 seqno u16
type u16 name ascii 30
buflen u16
buf byte 0:32000

Readme

Keywords

none

Package Sidebar

Install

npm i mb-emulator

Weekly Downloads

1

Version

0.0.4

License

ISC

Unpacked Size

50.1 kB

Total Files

17

Last publish

Collaborators

  • franco-clr