oktetlabs / test-environment

OKTET Labs Test Environment
Other
5 stars 9 forks source link

Unexpected "objective" XML tag ordering requirement in Tester config #47

Open okt-galaktionov opened 1 month ago

okt-galaktionov commented 1 month ago

If a package.xml contains the following run definition

<run>
    <script name="helloworld">
        <req id="HELLOWORLD"/>
        <objective>Greet the world</objective>
    </script>
</run>

Tester fails with the following error:

Unexpected element 'objective' in script 'helloworld' call description

Switching the req and the objective tags around fixes the error and test logs show the correct objective.

Tester seems to expect objective to be the first child of script. It's unclear whether this is a hard requirement or an oversight in the code.