-
Notifications
You must be signed in to change notification settings - Fork 29
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
Test definitions - implementations guidelines and artifacts #94
Comments
Hello @rartych and team, Looking in details of the Test Case already contributed and seems we are not far from one WG to another - need few alignements.
We need to agree on:
Definitely looking for consumer of these file to get their perspective. The less they have to do to use these files the better it will be. |
@bigludo7
probably good for consistency to use all same pronoun (I or impersonal)
Scenario identifier. To trigger the discussion I propose '@'<(mandatory)name of the resource>
Do we agree to have several when/then in one scenario ?
Providing either API literal request value (with example) or payload 'ready to use' (as in home device QoD) is fine?
|
Thanks @mdomale for your comments and the url sources which are very helpful To sump-up:
Expecting also comments from others companies involved in day to day CAMARA APIs crafting :) |
Thanks @mdomale and @bigludo7 for your inputs and feedback. While we wait for few more days to get more feedback on the inputs, I would also propose to create a short Camara-API-Testing-Guidelines.md doc with the below content:
With this doc in place, we would not need to search for old issues regarding these discussed points when needed later, and would also allow the new Camara members to get an overview on the topic. |
Answering also to @bigludo7's questions. I think we are quite aligned with previous responses:
We also prefer one feature file per operationId.
Yes, we should agree on a common wording. The simpler the better. As a example, to be refined:
We think it's good to include the operationId of the endpoint, along with some number to allow unique identification, and some description may also help, so a proposal could be: @.[.<optional_short_description>]
It is preferable to have simple scenarios with just 1 when. While testing APIs, the structure is usually: Given: request setup If some complex scenario requires that filling a request depends on the response from a previous one, we may allow several
For the |
Problem description
Delivery of API test cases and documentation is one of criteria in API Readiness Checklist.
Each subproject needs to develop a Gherkin feature file for specified API.
If subprojects also intend to add test implementations, an aligned single implementation that is agreed amongst all provider implementors could be added to the main subproject repo.
Possible evolution
Definition of common guidelines and artifacts that would simplify development of test definition, documentation and implementation based on current experience in subprojects and within participating organizations.
Additional context
As listed in camaraproject/SimSwap#63 following projects already provide Gherkin feature files:
The text was updated successfully, but these errors were encountered: