Hi Stephane,
I switched the approach and used custom protocol instead. Now I am able to specifiy the keystore to be used for the scenario and it works fine.
But I have some other challenges now.
Context: I need to fire a request with 3 parameters where values for those parameters will be supplied from a csv file (data file).
Problem: Feeder is not working properly and I observed always the first value in the feeder is sent in every iteration. Could you guide me with this problem please. Here is my scenario.
val csvFeeder = csv("mycsv.csv").circular
val scenarioForVod = scenario("MyScenario with https").
repeat(myList.length) { // Count of mylist and rows in csv file are same
feed(csvFeeder).
exec(myProtocol("Encode VOD content").
// schema: String, userInfo:String, urlhost:String, port:Int, action:String, requestParams:String, keystore:String, pwd:String
getX("https", null, "hostnamehere", portNo, "/abc/getVal", "param1="+csvFeeder.next.apply("myID") +"¶m2=1001¶m3=2001", "KeyStore1", "KeystorePass")) // In csv, I have 2 values in each row given to param1 and param2
}
In the above code, I need to iterate the csv file and each iteration, it needs to replace a value of each row of csv in the request. But here, always for every request submitted, the value is the same and it is the first rows value only. (I need to pass different values (from different rows) for each request)
I guess, this works fine with default http protocol( and "${myId}"). But the same not working with userdefined protocol? Is there any other way?
Initially I tried with "${myID}", but same value instead of replacing with actual value, same value is being sent (${myID}.
Then I tried csvFeeder.next.apply("contentKeyId"). This time its replaced with value of CSV under the column contentKeyId, but not advancing to next row in futher iterations. Instead, only first row value is getting passed to the request.
Thanks,
Hanumesh