Can we loop feature files and execute using multiple login users in karate

前端 未结 1 1618
后悔当初
后悔当初 2020-12-20 02:41

For our project requirement we have to run the feature file using 50 users . For now I am able to run using one user which is configured in the karate.config file. I need to

相关标签:
1条回答
  • 2020-12-20 03:30

    Here's my suggestion.

    Don't overload your config file like this.

    Use a JSON file with an array of users.

    Now you can read this JSON file from any feature using the read syntax.

    And you can use Karate's built-in looping capability to do what you need: https://github.com/intuit/karate#data-driven-features

    * def users = read('users.json')
    * def result = call read('user-test.feature') users
    
    0 讨论(0)
提交回复
热议问题