空手道加特林-用户定义的模拟类功能.EmployeeSimulation无法加载

时间:2019-07-26 03:21:37

标签: java gradle performance-testing karate gatling

我创建了一个简单的功能文件,我试图在加特林执行相同的功能, 我在这里加点空手道,可以减少功能测试和性能测试的重复。 我创建了一个简单的Gatling模拟

class EmployeeSimulation extends Simulation {

val employee = scenario("employee").exec(karateFeature("classpath:features/Employee.feature"))

setUp(
    employee.inject(rampUsers(10) during (5 seconds))
  )

}

功能文件

Scenario: Get employees details

Given url 'http://dummy.restapiexample.com/api/v1/employees'
When method GET
Then status 200
* print '**************'
* print 'headers:'
* print responseTime
Then assert responseTime < 500

构建工具:Gradle 摇篮版本:5.5.1 Java版本:12.0.1 空手道版本:0.9.3 加特林版本:3.0.2

gradle命令,用于执行: gradle clean gatlingRun 回购示例: https://github.com/reachbharathan/Karate-Sample-Test-Framework

0 个答案:

没有答案