Sorry, we don't support your browser.  Install a modern browser
This post is closed.

Improve testomat reporter to receive extensive outline table (CodeceptJS - Playwright)#128

A

I would like to see the report of tests with extensive outline table. We have a project with CodeceptJS based on Playwright and executing the same tests with two different outline tables produce two different run reports (one of them appears empty, as an error is thrown).

The original example table is the following:


            | userType    | availableAdminRoles                                                                                                                                                       | unavailableAdminRoles                                                                                                                     | adminRole                 | adminClient            | adminCountry        | adminTimezone                    | adminLanguage            |
            | Sales Chief | roleDropdown_Sales_User, roleDropdown_Creator, roleDropdown_Distributor, roleDropdown_Expert, roleDropdown_Client_Admin, roleDropdown_Admin_DACH, roleDropdown_Consultant | roleDropdown_CS_Admin, roleDropdown_CSM, roleDropdown_CSA, roleDropdown_Sales_Chief, roleDropdown_Channel_Manager                         | roleDropdown_Client_Admin | Cliente Créditos AT    | countryDropdown_UK  | timezoneDropdown_Europe_London   | languageDropdown_English |
            | Sales User  | roleDropdown_Creator, roleDropdown_Distributor, roleDropdown_Expert, roleDropdown_Client_Admin, roleDropdown_Admin_DACH, roleDropdown_Consultant                          | roleDropdown_CS_Admin,roleDropdown_CSM, roleDropdown_CSA, roleDropdown_Sales_Chief, roleDropdown_Sales_User, roleDropdown_Channel_Manager | roleDropdown_Consultant   | Cliente Suscripción AT | countryDropdown_USA | timezoneDropdown_America_NewYork | languageDropdown_German  |

This produces an error “Report couldn’t be processed: (400) Mysql2::Error: Data too long for column ‘test_title’ at row 1” as a response for calling the endpoint ${TESTOMAT_URL}/api/reporter/${this.runId}/testrun, even if the title variable is not responsible for this exception

It is really a 400 error produced due to the formatting done at line 169 in client.js by JsonCycle.stringify, which removes example parameter from the final stringified body (I’m using "@testomatio/reporter": "^0.3.15")

The very same test with a less extensive outline table is working and producing a run report as expected, the outline table used in this case is the following:


            | userType    |
            | Sales Chief |
            | Sales User  |

It would be very helpful to fix this, as Gherkin allows us to have very extensive outline tables, and many tests reduced in only one script for this reason.

5 years ago
Changed the status to
Completed
5 years ago