how to call a sql script or query in background for a Karate feature?

前端 未结 1 1360
醉梦人生
醉梦人生 2021-01-22 08:12

I have Karate feature with a long list of operations. I need to manually have some test data setup before running these tests which is essentially one sql query. Is there a way

相关标签:
1条回答
  • 2021-01-22 08:50

    Please see if the callSingle API solves your need.

    https://github.com/intuit/karate#karate-callsingle

    var result = karate.callSingle('classpath:common.feature', { some: 'config' });
    

    Also see hooks: https://github.com/intuit/karate#hooks

    0 讨论(0)
提交回复
热议问题