Run TestCase test step
The test Case “PUT /api/v1/cases/case” has a test step “Run Delete CaseFile” and it passes in a value for caseFileId.
The target test Case “Delete CaseFile” has a custom property called “caseFileId” and the test step “CaseFile_DeleteCase-Request 1” and accepts ${#TestCase#caseFileId} from the calling TC (in this instance it’s the PUT TC”.
The above process works fine.
So my question is can this be structured so that a value for CaseFileId can be passed in (like above) OR if no value is passed the called/target TC “Delete CaseFile” simply use a default value for that field?
We want to be able to optionally pass in a value or have the TC use a default if no value is passed.
if this can't be done via the Run TestCase test step is there another way in SOAPUI to accomplish this?
This is how it can be achieved: Have the default value set in the setup script of the template test case. For eg: ROLE is the custom property in template test case. And it is disabled as we dont want it to be executed as test case any time, just needs to invoked with different data as shown here with different values.