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

Json/Yaml schema for the Yaml test cases? #1119

Open
picimako opened this issue Feb 6, 2024 · 1 comment
Open

Json/Yaml schema for the Yaml test cases? #1119

picimako opened this issue Feb 6, 2024 · 1 comment
Assignees
Labels
Prio: High State: To discuss In case there are open questions concerning the issue Type: Question

Comments

@picimako
Copy link
Contributor

picimako commented Feb 6, 2024

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?
@picimako picimako changed the title Json/Yaml schema for the Yaml runtime? Json/Yaml schema for the Yaml test cases? Feb 6, 2024
@picimako
Copy link
Contributor Author

picimako commented Feb 8, 2024

Meanwhile I managed to figure out that the yaml related Java classes are indeed what I have found previosly.

I also see now that YamlTemplateLoader is for loading templates from yaml files. I was not aware of Citrus's template feature before.

@bbortt bbortt added State: To discuss In case there are open questions concerning the issue Type: Question Prio: High labels Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Prio: High State: To discuss In case there are open questions concerning the issue Type: Question
Projects
None yet
Development

No branches or pull requests

3 participants