cerberustesting / cerberus-core

The Open Source Test Automation Platform.
https://cerberus-testing.com
GNU General Public License v3.0
329 stars 100 forks source link

[BUG] Cannot create Datalibrary with CSV #2543

Closed cencio91 closed 3 weeks ago

cencio91 commented 1 month ago

Hi,

I'm trying to create a CSV data library, but CSV is not readden

Step to reproduce:

  1. I've uploaded a CSV contains the following :

    ADMIN_USER,ADMIN_PASSWORD
    myuser,mypass
  2. Then i've checked the flag "Generate Subdata list from First line of csv after saving (only when checked and with file uploaded)" ,selected type=FILE-CSV, a country and a System (blank environment).

  3. when I click on "SAVE", the page infinite loads with this image: immagine

  4. If i force reload, I can see the newly created datalibrary, but the SubData are not filled, and the download button shows "Object not found !!"

immagine

  1. Also if I add the SUBDATA manually, I get an error (cerberus key subdata has no csv column position mapped...) during execution. This is a minimal test configuration: immagine immagine immagine

Consideration:

Cerberus Version : 4.19-SNAPSHOT-1858, inside a docker container and MySQL v8

P.S: I've tryed both setting the delimiter to ',' than leaving it blank. I've tryed also with older version of snapshot (about 2 month ago)

thank you very much, Francesco

vertigo17 commented 3 weeks ago

Fixed with https://github.com/cerberustesting/cerberus-core/commit/75b90cee2b5b19497ac1a69ec42501c8a387c257