for an exercise task I should write two integration tests for my PHP website. I have to verifiy whether the returned statuscode and returned content is correct.
Are somewhere examples about this topic available? I can not imagine what I have to do.
If you are looking for inspiration, take a look at the sample script on https://test-api.k6.io/. This test creates a new account, authenticates to the service, retrieves, modifies, and deletes some objects.
We plan to add documentation about integration testing to the official docs by the end of next week. I’ll update this reply once we have documented it.
Let me know if you have any specific questions. Welcome to the community