how can we invoke a sub-process and let it run in background?
In detail, i need my test case just trigger a sub-process and then go ahead without to wait the sub-process completion (a sort of async invocation).
I didn't find any solution using Lisa-Invoke; the http method returns after the test completation and this is not what i need. I just need to trigger the test execution.
I solved using "Execute External Command" step with "wait for completion" un-checked to run my test via TestExecutor.exe.
Just curious as to to why you have a have a sub-process and just not have it as a test case?
Because the test case used as sub-process is shared among different test-cases. It is just to avoid to replicate several times the same steps.
Since you want to execute the sub-process as a background activity, would it be possible to do this by using the Invoke 2.0 REST API call?
See if these links help generate ideas:
REST Invoke API - DevTest Solutions - 9.5 - CA Technologies Documentation
or on your DevTest installation, navigate to: http://<yourDevTestServer>:1505/api/swagger/#!/CoordinatorServers/startTestActions_post_9
Are you passing any values from the process to the sub-process? If so, I do not believe there is a way to pass those values on the REST API call. In that case, you will need to place the values somewhere (perhaps on the Persistent Model Map or in a DB table) so your "subprocess" test case can access and use them. Your subprocess would be responsible for cleaning up after itself with regard to these passed values.
Does this test process ever terminate? Why not just run the sub-process at machine startup, then it is always running.
Just a thought
Retrieving data ...