Skip to content

[Bug?] Scriptlets required fields are not validated upon upload #151

@olw-medcom

Description

@olw-medcom

Hey there,

I'm experiencing some strange behaviour with Scriptlets as of late.

This issue currently is that I have this scriptlet with these parameters:

<?xml version="1.0" encoding="UTF-8"?>
<scriptlet id="CommonEDSSBDHAsserts" xmlns="http://www.gitb.com/tdl/v1/">
    <params>
        <var name="providedEDSAuditEvent" type="string" />
        <var name="subtypeCode" type="string"/>
        <var name="matchingSBDH" type="string"/>
        <var name="deviceType" type="string"/>
        <var name="skipStepsRelatedToPatientDeliveryStatus" type="boolean"/>
        <var name="skipStepsRelatedToSBDHAckOrSBDHFhirAck" type="boolean"/>
    </params>

And here I call it:

        <call path="Scriptlets/Common-EDS-SBDH-Asserts.xml" from="ehmi-shared-suite">
            <input name="providedEDSAuditEvent">$userData{providedEDSAuditEvent}</input>
            <input name="deviceType">"AP"</input>
            <input name="subtypeCode">"msg-received"</input>
            <input name="matchingSBDH">$userData{userProvidedSBDH}</input>
            <input name="isPatientDeliveryStatus">"false"</input>
            <input name="isSBDHAckOrSBDHFhirAck">"false"</input>
        </call>

As you can see my required params skipStepsRelatedToPatientDeliveryStatus and skipStepsRelatedToSBDHAckOrSBDHFhirAck is not set, however when I upload the testcase in a testsuite everything works?

On another note, I experienced an issue where I had a shared suite that had previously been working, and then suddenly could not be linked to other specifications anymore. I was looking through logs etc and I could not figure out why. I even try deleting everything from the suite and a bunch of other things as well, but the only that that solved it was changing it's id so that it became a new specification.. Nothing else changed and it just worked again?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions