Bas Dijkstra

Results 34 comments of Bas Dijkstra

Hey @CyborTronik, have you tried changing the order of the calls you make to `response.then().log().ifValidationFails().assertThat().body(field, hasToString(equalTo(value)))`. since the `body()` method throws an exception, it won't reach the `log()` statement. At...

Hi @ViktorVoin, can you please log the request details of your REST Assured call as well as the request details in Postman so we can compare them?

@ViktorVoin OK, I understand that you can’t paste all the details here. Can you log the request details for yourself in Postman and REST Assured and see if you see...

If the GET requests made by Postman, your browser and REST Assured are the same (i.e., the URLs are the same) and it works with Postman and your browser but...

Thanks, @adamrodger. Matt pointed me to this, though: https://github.com/pact-foundation/pact-compatibility-suite/blob/d22d4667c0bda76d408676044cb33db834e7167e/features/V1/http_consumer.feature#L5C1-L16 There’s some scenarios around XML in there. I’m not 100% that means XML is a first class citizen in the Pact...

Idea: Create an `IEnumerable` of objects storing request, response and verifications per test, allow users to inject that into a test through an overload to `Given()` or through a `RequestSpecification`...

This is an interesting option: https://swharden.com/blog/2023-03-05-dotnet-code-analysis/ But how to read / parse / use the results? What are the thresholds I want to use?

I'm not going to add mutation tests to the overall pipeline, at least not yet, but I might create a separate one at some point. For now, I added Stryker...

Some initial thoughts and results [here](https://www.ontestautomation.com/improving-the-tests-for-rest-assured-net-with-mutation-testing-and-stryker-net/), I’ll keep working on improving the code and the mutation test results in the weeks / months to come.

So far so good! Installed .NET 9 preview 6, ran the tests and they all pass without problems.