2.1.2 • Published 7 years ago

testx-postgres-keywords v2.1.2

Weekly downloads
18
License
ISC
Repository
github
Last release
7 years ago

testx-postgres-keywords

A library that extends testx with keywords for testing Postgres databases.

How does it work

From the directory of the art code install the package as follows:

npm install testx-postgres-keywords --save

After installing the package you add these keywords to testx by adding the following line to your protractor config file:

testx.keywords.add(require 'testx-postgres-keywords')

Keywords

KeywordArgument nameArgument valueDescriptionSupports repeating arguments
execute sqlConnect to the database, execute the SQL query/statement and optionally check the expected result and/or save it in the test context.
connection stringConnection string in the format of postgres://user:password@host:port/database.Optional. If not set, the postgresConnectionString command line (or config file) parameter will be used.No
sqlSQL query/statement to execute.Required.No
expected resultExpected result of the query.Optional. It will be compared to the result of the query. The keyword will fail if they are different. Rows (records) in the result are separated by newline character, values in a row are separated by a semicolon (;).No
save result tovarnameOptional. The name of a context variable, that will be used to save the result of the query.No
2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.0.0

8 years ago

0.1.0

9 years ago