gatling-plugin

Gatling Scala:Unable to send auth token to the method using session variable

萝らか妹 提交于 2021-02-05 11:22:32
问题 It seems session variable used in below code is not able to pass the Token Type --> Bearer and access_token using session variable,here is the full code ,is it possible with you to have a look ,here is code provided ..no worries all tokens are dummy tokens as i haven changed before pasting code here.Test expects the login method to be executed first and then the CreatePrivateEvent method as the latter takes tokens from Login method hence i have written From Logs It looks Token Type --> Bearer

How to run Karate and Gatling with Gradle build system

99封情书 提交于 2020-01-13 18:05:21
问题 I'm trying to run a Karate test as a Gatling performance test. My entire setup works perfect when using Maven. I am being forced to use Gradle however. When trying to run under Gradle the below disaster unfolds. Appreciate any ideas what might be causing KarateAction to crash. MyAPI.scala class MyAPI extends Simulation { val protocol = karateProtocol( "/myendpoint" -> Nil ) val action = karateFeature("classpath:org/mycompany/karate/tests/myAPI.feature@test=myTag") setUp( scenario("my-api")

Jenkins job failure when running a freestyle maven-gatling project

半城伤御伤魂 提交于 2019-11-28 11:49:23
问题 I have created a gatling maven based application; wrote some actions, scenario and able to successfully run them locally in IDE using $mvn gatling:test to build project and view the gatling reports. Now I'm trying to have a jenkins job configured to automate this however using the same command in bash script is failing with : Build step 'Execute shell' marked build as failure Archiving Gatling reports... Could not find a Gatling report in results folder. My pom.xml is same as :https://github