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

loading directory with .xml test files #999

Open
codinglightly opened this issue Sep 24, 2023 · 3 comments
Open

loading directory with .xml test files #999

codinglightly opened this issue Sep 24, 2023 · 3 comments

Comments

@codinglightly
Copy link

User story
As a tester, I want to be able load all xml tests from a directory, so no java code modification is needed when adding additional tests.

Additional context
I was trying something like

@CitrusTestSource(type=TestLoader.XML, packageScan="file:mytestdir" ....

with little success. I would like to see such a functionality built in (or best practice in documentation/samples to achieve this)

@christophd
Copy link
Member

packageScan is only for resources in classpath so it will not work with file: file system resources.
The sources property in the @CitrusTestSource annotation should be able to support file system resources.
But at the moment this is not loading files from a directory but only supports a list of fully qualified file paths.

I think what you are trying to do is not possible at the moment and would be an enhancement for the sources property in the @CitrusTestSource annotation to load all files from a given directory.

@bbortt
Copy link
Collaborator

bbortt commented Sep 25, 2023

cc: @tschlat would be worth contributing our code for this, if possible.

@codinglightly we "own" this functionality, company-internal. let's see if we can free it from code specific to our needs and contribute it for the world.

@codinglightly
Copy link
Author

@bbortt , that would be great. And it could make citrus more usable to people, who are not java native :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants