Batch validation with associated validation scenarios

Are you missing a feature? Request its implementation here.
BBoxy
Posts: 3
Joined: Mon Sep 02, 2024 3:09 pm

Batch validation with associated validation scenarios

Post by BBoxy »

Hey there,
I would like to request a feature similar to the batch transformation option "Transform with" for batch validation: https://www.oxygenxml.com/doc/versions/ ... ation.html
In analogy I would call this option "Validate with" and you would be able to choose between all associated validation scenarios of [s]all selected files[/s] the first select file, just like in the "Transform with" dialog.

Kind regards
Björn
teo
Posts: 81
Joined: Wed Aug 30, 2017 3:56 pm

Re: Batch validation with associated validation scenarios

Post by teo »

Hi Björn,

In the file selection context menu, if you select Validation, the Configure Validation Scenarios option appears available among others.
There you should find the previously created validation scenarios associated with various files you've already worked with (scenarios stored in either Project Options or Global Options).
You can select the most appropriate validation scenario for your current selection of files and validate accordingly (via the Apply Associated button, for example).
Or you can simply create a new validation scenario and then validate the selected files against the schemas specified in that scenario.

Validation scenarios created in Oxygen and saved/stored at the "global" level can even be exported (and subsequently imported) via dedicated files with the file extension ".scenarios".
This mechanism can prove very useful in teamwork and is successfully used for validation in scripting mode as well, being able to specify through the command line arguments both the file in which various validation scenarios were saved/exported, and the name of the validation scenario to use.
Of course, care must be taken in the way the schemas used are indicated and the fact that they must be accessed from different computers.

Best regards,
Teo
Teodor Timplaru
<oXygen/> XML Editor
http://www.oxygenxml.com
BBoxy
Posts: 3
Joined: Mon Sep 02, 2024 3:09 pm

Re: Batch validation with associated validation scenarios

Post by BBoxy »

Hey Teo,

thank you for the quick reply.
In my business case the validation scenarios are all stored inside a framework. Neither do we have validation scenarios in global/project scope nor do we have validation scenarios directly associated within files.
The "Transform with" dialog is able to grab the transformation scenarios which are defined within the (main) framework of the first selected file. I would like to have a similar feature just for validation.

Best regards.
Björn
teo
Posts: 81
Joined: Wed Aug 30, 2017 3:56 pm

Re: Batch validation with associated validation scenarios

Post by teo »

Hi Björn,

I think you should also find the validation scenarios stored inside a framework listed in the Configure Validation Scenarios dialog.
Find the Settings button (at the top of the dialog, to the right of the filter text field) and make sure the Show All Scenarios option is selected.

On the other hand, I noticed the differences in behavior compared to the Transform With dialog that you mentioned.
I will register an improvement issue to try to standardize the behavior in both dialogs.

Kind regards,
Teo
Teodor Timplaru
<oXygen/> XML Editor
http://www.oxygenxml.com
BBoxy
Posts: 3
Joined: Mon Sep 02, 2024 3:09 pm

Re: Batch validation with associated validation scenarios

Post by BBoxy »

Thanks Teo, I did not notice until now that there is a filter option. That DOES help!
This thread can be closed then...
Post Reply