Service Virtualization

  • 1.  Calling a sub-process and setting its input properties dynamically

    Posted Oct 16, 2017 08:43 PM

    We need do the E2E automation using soap services. For that, it will be more easy if we can call a sub-process dynamically. Also while calling the sub-process dynamically we should be able to set the input parameters and get the output parameters dynamically too. Anyone has a ready made solution for this. Please let me know. Appreciate any help towards this.

    Thanks,

    Srinivas.



  • 2.  Re: Calling a sub-process and setting its input properties dynamically

    Posted Oct 17, 2017 04:30 PM

    Parts of this question may be linked to I have Multiple Subprocess files in test case, would like have Property Set in Subprocess Path so might be best to watch both threads.

     

    Current sub-process input and output parameters are statically defined inside the actual test case asset at rest on the file system. Perhaps best to raise this question as an Idea so the CA product team can determine the usefulness and impact. 

     

     

    I suppose you could construct a single value (let's say a String) and pass that value to each subprocess. I do not recall if DevTest allows passing an object between test cases and subprocesses or just a String.

     

    Let the main test case setup up a property. Add script to build your dynamic key/value pairs for a given subprocess. For example: 

    sub1    subProcessVals = "prop1=someVal&prop2=valA&propB=anotherValue"

     

    sub2    subProcessVals = "propX=someVal&prop2=valZ&propY=yetAnotherValue"

    sub3    subProcessVals = "prop1=someVal"

     

    Let the Subprocess accept the input request argument (subProcessVals), add a script step to split (&) and parse (=) the key/value pairs into TestExec properties. I would also add logic to ensure all the expected properties were contained in the respective test case.

     

     

    Although doable, I think you will find the above approach problematic when adding new sub-processes and testing / debugging due to the complexity.  



  • 3.  Re: Calling a sub-process and setting its input properties dynamically

    Posted Oct 31, 2017 09:54 AM

    Srinivas,

     

    Did Joel's recommendations help you out with this issue?