Terminal Emulator approach

Hi all,

This is my first time automating activities for a terminal emulator, my first though is doing it using hot keys. This is of course not the best approach and wanted to know what is the best approach since I now know that there are terminal activities. I am afraid that the terminal that I want to automate will not fall into the predefined terminals in studio since it is a very old legacy terminal called MOCAS.
1 What is the second best approach to automate terminals ?
2. how do I know if MOCAS is a candidate for predefined terminal activities?

Thank you in advance

Hey

Just add this package and see if you can use activities from this with your terminal: Activities - About the Terminal activity package

1 Like

Hi!

Take a look on this page of the documentation of the Terminal Activity:
Activities - Terminal Session

In the end you’ll just have to just try.

You can absolutely automate a terminal emulator without using the Terminal Activities.
Use Type Into to send keys, and Get Full Text to read the entire “page”.
If you do go that way, ensure that you have verification for every step you take in your automation, if you input something, read the result and verify that you’ve affected your application.

Here’s also some best practices regarding using Terminal Activities, some of those apply if you decide to use another method.
Activities - Best practices

1 Like

When using the terminal package, seems like I would need to provide information about the emulator for the connection string, is this correct? I am asking because I don’t have it, need to investigate it.

Is computer vision another good approach?

Thanks.

Computer Vision is quite taxing, I would probably use some combination of Get Text, Click Text approach.

1 Like

Hi!

As pointed out by @mateuszmacheta CV is quite taxing, and furthermore is not as reliable as the more traditional approaches (Computer Vision relies on visually extracting the text).

Here’s a screenshot of the “Configure Connection” you will have to do with the Terminal Session activity:

Just install the Terminal Activities package in your Studio and take a look.

Using the Direct Connection you could “bypass” the emulater and connect directly to the “source”.
Read up on it here Activities - Terminal Session


The terminal emulator will surely have som sort of information regarding what kind of connection, type, protocol etc somewhere.

2 Likes

Thanks alot ! By any chance, do you know of any testing emulator, to simulate apply this steps on my own?

No problem!

I’m not sure what you mean with testing emulator?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.