[Question] change field feature name
Ripki-Dev opened this issue · comments
hello, I new using karate and cluecumber.
i use this report because this report is very cool & have much detail information.
when i run karate test, I got json that have value like this.
![Jepretan Layar 2023-08-01 pukul 13 31 46](https://private-user-images.githubusercontent.com/92913498/257425313-25ae4473-9135-4b73-9eb8-1e9d79256adf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2NjUzODEsIm5iZiI6MTcyMDY2NTA4MSwicGF0aCI6Ii85MjkxMzQ5OC8yNTc0MjUzMTMtMjVhZTQ0NzMtOTEzNS00YjczLTllYjgtMWU5ZDc5MjU2YWRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzExVDAyMzEyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRkNGE4M2FkYTlmZTljNmVhYTVlMzQ1MjVlY2I0YjczZTcxNDdmOTRkZDFiM2QyNTRlNmMyYTE0ZWM1ZjQ4MWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tt8ftNpOG6dOXBaDEylf1pjfFwx3FwjIAEUYoR8--x4)
in cluecumber table report will show like this (i think this data is parse from relativePath in json file), CMIIW
![Jepretan Layar 2023-08-01 pukul 13 32 28](https://private-user-images.githubusercontent.com/92913498/257425455-2d8b9cf5-e13a-461a-8f6a-53f1e542044b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2NjUzODEsIm5iZiI6MTcyMDY2NTA4MSwicGF0aCI6Ii85MjkxMzQ5OC8yNTc0MjU0NTUtMmQ4YjljZjUtZTEzYS00NjFhLThmNmEtNTNmMWU1NDIwNDRiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzExVDAyMzEyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNiMzVjYjFiNzkyZmU5ZDJlNTlmODhmZmRkYzRiNWZlODU2YzIyNTU1N2FmOWZmZGU0Yzg2OWE5YTRjZGUzNWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.k-Vw-zSEUX87qEn0aertzr5zRc1FGvP-CSD0ajfJEsw)
my question is, can i change from relativePath to name for fill the data tables report?
Thank you for this, I will look at a way to do this.
I checked this. This information is not contained in the Cucumber JSON file (there the feature name is set as the feature file name) but in an additional file called karate-summary-json
. Since Cluecumber only uses the Cucumber JSON format, this would be an additional step that is Karate exclusive.
To have the feature name here, the way that Karate writes these JSON files has to be modified so that the feature name is written there. So this is an issue that should rather be reported in the Karate repo.