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

No user context for invocations #845

Open
tanoshko opened this issue Dec 21, 2017 · 2 comments
Open

No user context for invocations #845

tanoshko opened this issue Dec 21, 2017 · 2 comments

Comments

@tanoshko
Copy link

tanoshko commented Dec 21, 2017

Issue

There is no way to pass some context between different invocations.
This forces to use ugly cycles of requests in scope of one invocation. And this also fails due to #844.

Please provide API to pass some context from one invocation to another.

Use case example:

paging resource, every response contains link to next page which should be used for next invocation.

@Amacuse
Copy link

Amacuse commented Dec 26, 2017

In order to use mechanism of the Jagger http scenario we have to configure com.griddynamics.jagger.invoker.scenario.JHttpUserScenario objects which will represent future test plan. JHttpUserScenario contains a list of com.griddynamics.jagger.invoker.scenario.JHttpUserScenarioStep objects which will be invoked inside invocation phase. The main issue in our case that we don't know the number of these steps in advance. So we can't use this approach for our 'pagination scenario' case.

There is a need to have such mechanism that allow us to trigger 'invocation' phase based on a previous invocation result. Now we get only one invocation and a loop inside com.griddynamics.jagger.invoker.scenario.JHttpUserScenarioInvoker.

Also for 'pagination scenario' we need to have summary metrics based on each step but not for every step as we have now.

@dlatnikov
Copy link
Contributor

Hi @Amacuse . I've already proposed to configure large number of steps (more than possible in your scenario) and configure stop condition that will interrupt loop over your steps. Have you got any success with this approach?

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

No branches or pull requests

3 participants