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

Add support for asynchronous services in HttpTest #98

Merged
merged 17 commits into from
Nov 13, 2016
Merged

Conversation

fhoeben
Copy link
Owner

@fhoeben fhoeben commented Nov 13, 2016

Adds commands to HttpTest so that it can be used to verify the behaviour of asynchronous services.
With asynchronous services it is not known exactly when they are completed, their work is started and will be completed some time in the future.

One way of testing these would be to wait for the maximum time allowed for completion and only check the results then. But that leads to very slow test.
The methods in this pull requests allow for repeated calls to check a service outcome. As soon as the desired result is reached the test can continue. This allows the tests to proceed quicker than waiting for the maximum allowed time.

The new methods allow checking based on:

  • response status code
  • response content
  • response header value
  • json path expression value, only for JsonHttpTest
  • xPath expression value, only for XmlHttpTest

@fhoeben fhoeben merged commit 6feaf81 into master Nov 13, 2016
@fhoeben fhoeben deleted the pollInHttpTest branch November 13, 2016 10:28
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

Successfully merging this pull request may close these issues.

1 participant