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

Compare the results of two api calls #320

Open
listba opened this issue Mar 20, 2024 · 1 comment
Open

Compare the results of two api calls #320

listba opened this issue Mar 20, 2024 · 1 comment

Comments

@listba
Copy link

listba commented Mar 20, 2024

I would like to call two different api routes and then make an assertion that relies on values from the results of both calls, however I don't see any way to nest or call two separate routes and retain the results for both unless I'm missing something.

ie something like this

test(GET(uri"routeA")).and(GET(uri"routeB")) { (responseA,responseB) =>
   ......
  assertEquals(resultA.field, resultB.field)
}
@alejandrohdezma
Copy link
Owner

Hey @listba, sorry, but that is something the library doesn't allow doing at the moment 😞. I'll be happy to review a PR that adds that functionality though 😊

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

2 participants