Posted: 29 Jun 2017 14:49 EDT Last activity: 16 Oct 2018 12:03 EDT
`Multiple Automation excution through runtime
How does multiple automation can be executed through openspan runtime? We can have two ways, 1) When each automation/deployment package is not related to each other and 2) When there is some kind of dependency between each automation, let us say Automation1 has to execute before Automation 2.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Runtime can only be executed once (i.e. it cannot be running while another instance of the application is started). If you'd like one deployment package to launch another deployment package, you would need to;
Call System.Diagnostics.Process.Start and run a bat file (an example is below) that has some command to sleep for enough time for Runtime 1 to terminate, terminates runtime if it is still running, and then starts a new instance of runtime and passes it the arguments for the deployment package to load (OpenSpan.Runtime.exe project="My Project Name.openspan").
timeout /t 40 /nobreak > NUL
taskkill /F /IM OpenSpan.Runtime.exe
CD "C:\Program Files (x86)\OpenSpan\OpenSpan Runtime Enterprise\"
START OpenSpan.Runtime.exe project="path to myProject.OpenSpan"
To pass data between projects you can either write that data to a file and have the other project load that file, write the data to a database and load it, or you can use the CredentialStore component to write/read the data (this works especially well if the data is small or in small chunks). I use the credential store component for this purpose as it i extremely simple to use (SetCredential and GetCredntial are the methods you need).
I have a doubt, how to use the two pages in parallel, it is like launching one application that will be redirected to another page in the same application, I were not able to handle the second page(I couldn't interrogate it),