如果您将空手道混入了具有许多其他依赖项的项目中,则可能会发生这种情况.我建议您尝试使用Maven快速入门,它可以直接使用: https://github.com /intuit/karate#quickstart然后是将设置与您的项目进行比较的问题.如果仍然遇到问题,请执行以下过程: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue I have scenario which tests an Micro service. Scenario Outline: Run Object QueriesScenario Outline: Run Object Queries Given url homeLinks.queryUrl And header Content-Type = 'application/x-www-form-urlencoded' When method post Then status 200 Then print responsePrint statement is not logging anything to console in InteliJ editor. I tried to run in debug mode as well.I referred KARATE : can not see print statements on console in karate which didn't help.Any config changes required to print the logs? 解决方案 Normally people don't run into issues. Refer the docs here: https://github.com/intuit/karate#loggingIf you have mixed Karate into a project with a lot of other dependencies this may happen. I suggest you try the Maven quickstart and that will work correctly out of the box: https://github.com/intuit/karate#quickstartThen it is a matter of comparing the setup with your project. If you still get stuck, follow this process: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue 这篇关于打印到控制台在空手道中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-04 14:14