Mainframe Automation in OpenBots Studio
Seeing a terminal instance, we have to start by receiving our credentials that we have stored within our server.
We do this by creating a login to the terminal which is called Herc01 and the password which is currently not visible. These credentials then get stored into two variables. The username being a string and the password being a secure string.
Upon creating our terminal session we provide information such as host, port, terminal type and we have a terminal emulator helper which you can use to test this information. If you go to settings you can use this to test the connections as you can see I was able to connect to this terminal and that demonstrates that it is working.
We have various terminal commands including a stored credential command as well as things like prompt for username, prompt for password. Which supplies you with a text box that requests that you give a username or password which is then inputted into the terminal. Here we are storing the credentials we received from the server into the terminal session and then setting that username and password when necessary.
I am going to put a breakpoint right here debug this, go create the terminal session. It has already inputted the username, sets the password and then closes the session. I put it here and then run again.
Here it is, inputted the username and the password. hit enter.
Currently it is not able to log into the session because it is already logged in. Then well just close the session.
I mentioned that in place of commands such as set username, you can use a prompt for username instead. Which will then ask you to provide a username, in this case herc01. and it will type it in for you and this is for various kinds of automation.
In addition to these native terminal commands we also have very similar blue zone terminal commands that utilize the rocket BlueZone API for automation. Many of these commands function the same way with the exception being the create BlueZone terminal session command. Which asks for a BlueZone session file path containing all of the metadata and information required to connect to the terminal.
If you would like to be trained by our developers CLICK HERE and select one of our Citizen Developers Jumpstart programs. If you want individual training select the SOLO Jumpstart and if you want to train your team select the Team Jumpstart.