Registry / testing / testx-postgres-keywords

testx-postgres-keywords

JSON →
library2.1.2jsnpmunverified

testx-postgres-keywords v2.1.2 extends the testx testing framework with Postgres database keywords. It allows executing SQL statements, comparing results, and saving results to test context. Requires testx ^2.5.0. Designed for end-to-end testing with Protractor. Differentiators: simple keyword-driven interface, connection string configuration, and support for expected results. Stable release with low update frequency.

npm install testx-postgres-keywords
INSTALL
IMPORT
SIG · TESTX-POSTGRES-KEY
T
testx-postgres-keywords
testingjavascriptv2.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

testx-postgres-keywords
require('testx-postgres-keywords')
import ... from 'testx-postgres-keywords'
Library uses CommonJS require; ESM import not supported.
keywords
testx.keywords.add(require('testx-postgres-keywords'))
No default export; use require() to load the module directly.

Shows installation, keyword registration, and usage of execute sql keyword with connection string and expected result.

// Install: npm install testx-postgres-keywords --save // In Protractor config file: const testx = require('testx'); testx.keywords.add(require('testx-postgres-keywords')); // Then in test scripts: // | execute sql | connection string | postgres://user:pass@localhost:5432/mydb | // | | sql | SELECT * FROM users WHERE id = 1 | // | | expected result | 1;John;john@example.com |
Debug
Known issues
deprecatedDeprecated: testx-postgres-keywords relies on testx framework which may not be actively maintained.
fix
Consider migrating to modern testing frameworks like Playwright or Cypress.
affects: >=2.0.0
gotchaConnection string parameter supports repeating arguments: false. Only one connection string per keyword call.
fix
Use multiple execute sql calls if different databases are needed.
affects: >=1.0.0
gotchaExpected result rows use newline delimiter, values separated by semicolon. Leading/trailing whitespace may cause mismatches.
fix
Trim whitespace in expected result strings.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'testx-postgres-keywords'
Package not installed or not in node_modules.
fix
Run `npm install testx-postgres-keywords --save` from the project root.
Error: postgresConnectionString is not defined
No connection string provided and default parameter missing.
fix
Set postgresConnectionString in config file or as command-line argument, or provide connection string in keyword step.
Upgrade
Version history
2.1.2latest on npm
Audit
Dependencies
testxrequiredpeer dependency required to integrate keywords into testx framework
Agent activity
10 hits · last 30 days
node
10
Resources
testx-postgres-keywords — npm install testx-postgres-keywords · libregistry