-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for systems with different database schemas #806
Comments
Hi @victorhugofr , For example, how many different schemas you have and their name? are they all accessed with the same JDBC connection? How is the database structured / initialized? is is the API you working on open-source, or closed-source? thanks |
Thanks for the reply, They are automatically generated when the system is started with Hibernate/JDBC. The API is closed-source (but I have access to the code). Some important notes:
"CREATE SCHEMA" is because if I don't run this, the system doesn't create the tables correctly
|
In parallel, I attempted to run the blackbox, and the following error was returned:
Command used: java -jar evomaster.jar --blackBox true --bbSwaggerUrl http://localhost:8080/project/v2/api-docs --outputFormat JAVA_JUNIT_4 --maxTime 30s --ratePerMinute 60 |
Hi,
thanks! |
also, if you are testing your own API on localhost, you do not need |
for the time being, you can also try to disable SQL support, e.g. with |
Thank you very much for the support, it seems that we've made progress: I will be opening a bug right now. #813 |
Hi @arcuri82,
I'm facing this error when trying to generate whitebox test cases with EvoMaster:
"ERROR - Failed to extract the SQL Database Schema: null java.lang.NullPointerException"
In my analysis, this happens because EvoMaster is only prepared to read tables from the database that are located in the "public" schema. In the system I'm trying to run, the entities are in various schemas, causing it to attempt to find a table in another schema within the "public" schema.
Is there any support for different schemas? Is it already on the radar? Or could it be some kind of misconfiguration?
Version of EM: 1.5.0
Running from JAR
Command-line options: java -jar evomaster.jar --outputFolder src/test/java
Database: PostgreSQL 14
The text was updated successfully, but these errors were encountered: