froth-webdriverio-framework 1.0.100 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,7 +26,7 @@ async function dbtype(jsondata) {
26
26
  connectionpool = mysqlconnect.connectToMySQL(jsondata.host, jsondata.username, jsondata.password, jsondata.schema_name, jsondata.port_number);
27
27
  break;
28
28
  case 'PostgreSQL':
29
- connectionpool = await postgreSqlConnect.connectToPostgreSQL(jsondata.database_type,jsondata.host, jsondata.username, jsondata.password, jsondata.schema_name, jsondata.port_number);
29
+ connectionpool = await postgreSqlConnect.connectToPostgreSQL(jsondata.host, jsondata.username, jsondata.password, jsondata.schema_name, jsondata.port_number);
30
30
  break;
31
31
  default:
32
32
  console.log('Unknown dbtype.');
@@ -10,7 +10,7 @@ async function connectToPostgreSQL(hostname, username, password1, dbname, portnu
10
10
  user: username,
11
11
  password: password1,
12
12
  database: dbname,
13
- port: 5432 // Increased connection timeout
13
+ port: portnumber // Increased connection timeout
14
14
  };
15
15
  // const poolConfig = new Pool({
16
16
  // user: "postgres",
@@ -22,7 +22,7 @@ async function connectToPostgreSQL(hostname, username, password1, dbname, portnu
22
22
 
23
23
  const pool = new Pool(poolConfig);
24
24
  // const client = await poolConfig.connect();
25
- console.log('PostgreSQL connection pool created.');
25
+ console.log('PostgreSQL connection pool created.'+JSON.stringify(pool));
26
26
  // Optionally, run a simple query to verify the connection
27
27
  // const res = await client.query('SELECT NOW()');
28
28
  // console.log("postgresresults "+res.rows[0]);
@@ -54,6 +54,7 @@ async function fetchDataFromPostgresDB(connectionpool, query) {
54
54
  console.log(JSON.stringify(finalResult, null, 2));
55
55
  } catch (error) {
56
56
  console.error('Error fetching data:', error);
57
+
57
58
  } finally {
58
59
  if (connection) {
59
60
  connection.release();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "1.0.100",
3
+ "version": "2.0.1",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",