Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Any possibility to have topic as a dynamic value from feeder? #11

Open
ianomad opened this issue Mar 31, 2017 · 3 comments
Open

Any possibility to have topic as a dynamic value from feeder? #11

ianomad opened this issue Mar 31, 2017 · 3 comments

Comments

@ianomad
Copy link

ianomad commented Mar 31, 2017

No description provided.

@Bekreth
Copy link

Bekreth commented Apr 4, 2018

You can accomplish this using a feeder.

def msg: String = {//some method}
val messageGenerator = Iterator.continually(Map("message" -> msg))

val loadScenario: ScenarioBuilder = scenario(" Scenario")
    .feed(messageGenerator)
    .exec(kafka("request")
      .send[String]("${message}"))

Its a bit round-about, but it works.

@reftel
Copy link

reftel commented Apr 24, 2018

Sent a PR that adds a more direct approach: #17

@gustavomonarin
Copy link

This feature would be great to have in the mainstream.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants