UNPKG

valence-test

Version:

Test applications running in Valence and 5250 screens with Fusion5250

92 lines (84 loc) 2.02 kB
<a name="ValenceTop"></a> <img src="https://s3.amazonaws.com/cnx-valence-connect/Valence_logo_2018.png" alt="Valence Logo"/> ##### [CNX Corporation](https://www.cnxcorp.com) Available for [Valence ^5.2+](https://www.cnxcorp.com/valence/) Use valence-test to test your applications running within the Valence Portal and 5250 screens with [Fusion5250](https://www.cnxcorp.com/page/5250-terminal-emulator). This package supports Linux and Windows. Tests are performed using [CodeceptJS](https://codecept.io/) and [Puppeteer](https://github.com/GoogleChrome/puppeteer). ## Clean Install ```sh mkdir acme cd acme npm init --yes npm install valence-test --save npm install ``` ### Starting the Node Server ```sh npm start ``` ### Structure after a clean install ``` acme │ └───node_modules │ valence-test │ *other modules │ └───output │ // Test Reports │ └───tests │ │ │ └───fusion5250Scripts │ │ │ └───// Fusion5250 location │ fusion5250_test.js │ nitroFileEditor_test.js │ └───util │ email.js │ helper.js │ │ .gitignore │ app.js │ codecept.conf.js │ config.js │ events.js │ package.json │ Readme.md │ steps_file.js ``` ### config.json - example ```json { "purgeResultsDays": 5, "port": 9999, "valenceUrl": "http://myIBMiIP:7052", "valenceUserId": "myuser", "valenceUserPwd": "mypassword", "email": { "host": "smtpHost", "port": 465, "pwd": "smtpUserPassword", "rejectUnauthorized": false, "secure": true, "secureConnection": false, "subject": "Valence Test Results", "to": "john.doe@acme.com", "user": "smtpUser", "logger": false }, "schedule": { "hour": 2, "minute": 2 } } ``` <br> [Back To Top](#ValenceTop) ## Community [Forums](http://forums.cnxcorp.com/node/12178) <a name="Versions"></a> ## Versions ### 1.0.0 - 2019-10-05 - General Availability