Skip to content

Calling a scriptlet within a scriptlet in same suite. #190

@olw-medcom

Description

@olw-medcom

Hey there!

I have a shared suite called 'ekg-shared-suite' containing scriptlets.

I have a scriptlet called EKG-FHIR-Validation.xml inside the shared suite and I aim to have another scriptlet in the same suite called "Case-1" call the other scriptlet like this:

<?xml version="1.0" encoding="UTF-8"?>
<scriptlet id="Case-1" xmlns="http://www.gitb.com/tdl/v1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
           xsi:schemaLocation="http://www.gitb.com/tdl/v1/ ../../../../../testbedSchemas/gitb_tdl.xsd">
    <params>
        <var name="input" type="string" />
    </params>
    <steps>
        <!-- <call path="Scriptlets/EKG-FHIR-Validation.xml"> I've tried with and without the from -->

        <call path="Scriptlets/EKG-FHIR-Validation.xml" from="ekg-shared-suite">
            <input name="input">$input</input>
        </call>

        [...]

    </steps>
</scriptlet>

This is my directory structure:
.
├── Scriptlets
│   ├── EKG-FHIR-Validation.xml
│   ├── FHIRPath-S1-1.xml
│   └── FHIRPath-S1-6
│   ├── Case1.xml
└── shared-ekg-suite.xml

But gitb-srv is unable to lookup the ressource:
24/03/2026 10:23:46 ERROR c.g.e.r.RemoteTestCaseRepository - [] Failed to look up resource path [Scriptlets/EKG-FHIR-Validation.xml] for test case [334] from test suite [ekg-shared-suite]

Can you spot what I am doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions