citrusframework / citrusframework/citrus
Json/Yaml schema for the Yaml test cases?
- Dominant language
- Java
- Stars
- 485
- Forks
- 155
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 7
Description
Hi,
I've started looking into how the Yaml DSL is implemented, and how Citrus Yaml test resources are loaded and parsed, so that I could create Json/Yaml schema for it.
I have the following questions:
- Do you have any schema for the Yaml DSL so far? (I looked but haven't found anything.)
- Based on the Citrus code base this is what I see, and I'd like to know if this is correct:
- `org.citrusframework.yaml.YamlTestLoader#doLoad` parses a Yaml file and loads it into a `YamlTestCase`, so that `YamlTestCase` is essentially the top-level model object for the yaml TC configuration.
- From this point downward in the hierarchy, e.g. `org.citrusframework.TestCaseMetaInfo.Status`, `org.citrusframework.yaml.YamlTestCase.Variable`, ˛`org.citrusframework.yaml.TestActions` and others act as further yaml TC model objects.
- How does `YamlTemplateLoader` and `org.citrusframework.yaml.container.Template` fit into this picture? What are their purposes?
Contributor guide
Assessment
This issue has not been assessed yet.