valence-test

1.0.0 • Public • Published

Valence Logo

CNX Corporation

Available for Valence ^5.2+

Use valence-test to test your applications running within the Valence Portal and 5250 screens with Fusion5250. This package supports Linux and Windows.

Tests are performed using CodeceptJS and Puppeteer.

Clean Install

mkdir acme
cd acme
npm init --yes
npm install valence-test --save
npm install

Starting the Node Server

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

{
  "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
    }
}

Back To Top

Community

Forums

Versions

1.0.0 - 2019-10-05

  • General Availability

Package Sidebar

Install

npm i valence-test

Weekly Downloads

4

Version

1.0.0

License

ISC

Unpacked Size

32.2 kB

Total Files

18

Last publish

Collaborators

  • johnny-major