Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core: revamp feed(???, Int) to produce arrays [BREAKING] #4226

Closed
slandelle opened this issue Mar 2, 2022 · 0 comments
Closed

Core: revamp feed(???, Int) to produce arrays [BREAKING] #4226

slandelle opened this issue Mar 2, 2022 · 0 comments

Comments

@slandelle
Copy link
Member

slandelle commented Mar 2, 2022

Since early days of Gatling, we've supported a way to fetch multiple records at once.
However, the behavior is very awkward: the key are translated and suffixed with the 1 based index.

Instead, now that Gatling EL supports 0-basec index access, let's generate arrays instead, eg:

feed(Array(Map("foo" -> "bar"), Map("foo" -> "baz")), 2)

will inject

"foo" -> Array[Any]("bar", "baz")

which can be accessed with Gatling EL, eg #{foo(0).bar}

@slandelle slandelle added this to the 3.8.0 milestone Mar 2, 2022
@slandelle slandelle self-assigned this Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant