Getting Incremental Cucumber error while adding PostgresSQL JDBC driver

Hi Team,

Downloaded PostgresSQL JDBC driver postgresql-42.7.5, while adding driver I am getting error as “Incremental Cucumber loading…”

1 Like

To resolve the PostgreSQL JDBC driver installation error in Katalon Studio when encountering the “Incremental Cucumber loading…” issue:

Step-by-Step Solution

1. Verify JDBC Driver Compatibility

  • Ensure the PostgreSQL JDBC driver version (postgresql-42.7.5.jar) matches your PostgreSQL database version and Java runtime:
    • PostgreSQL 15+ → Use JDBC 42.x.
    • Java 8+ → Use JDBC 42.x (older Java versions require JDBC 4.1 or earlier).
    • Download the correct driver from the official site.

2. Place the Driver in the Correct Folder

Move the .jar file to Katalon’s Drivers or Libs directory:

your-project/
├── Drivers/
│   └── postgresql-42.7.5.jar
└── ...

3. Add the Driver to Katalon’s Classpath

  • In Katalon Studio, go to Project > Settings > Build Tool > Library Management.
  • Click Add, select the .jar file, and apply changes.

4. Disable Cucumber Plugins (Temporarily)

The “Incremental Cucumber loading…” error often occurs due to plugin conflicts:

  1. Go to Help > Marketplace.
  2. Uninstall or disable Cucumber Plugins (if installed).
  3. Restart Katalon Studio.

5. Clean the Project and Rebuild

  1. Navigate to Project > Clean.
  2. Restart Katalon Studio to refresh dependencies.

6. Test the Connection

Use this sample code to verify the driver works:

import java.sql.DriverManager

// Load the driver
Class.forName("org.postgresql.Driver")

// Connect to PostgreSQL
String url = "jdbc:postgresql://localhost:5432/your_database"
String user = "your_user"
String password = "your_password"

Connection connection = DriverManager.getConnection(url, user, password)
println "Connection successful: " + connection.toString()
connection.close()

Common Fixes for Specific Errors

Error/Cause Solution
ClassNotFoundException: org.postgresql.Driver Driver not added to classpath. Repeat Step 2–3.
No suitable driver found Invalid JDBC URL format. Use jdbc:postgresql://host:port/db.
Cucumber plugin conflict Disable plugins in Help > Marketplace and retry.
Corrupted JAR file Re-download the driver and replace the existing file.

Alternative: Use Maven/Gradle (Recommended for Advanced Users)

Add the PostgreSQL JDBC dependency to your pom.xml (Maven) or build.gradle (Gradle):

Maven:

xml

<dependency>
  <groupId>org.postgresql</groupId>
  <artifactId>postgresql</artifactId>
  <version>42.7.5</version>
</dependency>

Gradle:

implementation 'org.postgresql:postgresql:42.7.5'

Final Checks

  • Ensure no duplicate .jar files exist in the project.
  • Update Katalon Studio to the latest version (Help > Check Updates).
  • If using Docker/Remote DB, verify network/firewall settings.

This should resolve the PostgreSQL JDBC driver installation error and Cucumber conflicts. Let me know if you need further troubleshooting

Hi @sravanthi.dosapati,

Welcome to our community. Thank you for sharing your issue.

I will ask my team about this and back to you soon

Thank You Dinesh and Elly, Now the issue is resolved.

1 Like

It’s great to hear that you have solved your issue. Can you please help provide the solution so that others can refer to that? Thank you

kindly share your resolution