1.0.0 • Published 5 years ago

valence-test v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

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