Automating Terminal emulators using test complete tags: mainframes, automation, console
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Automating Terminal emulators using test complete tags: mainframes, automation, console
Is it possible to test mainframe applications or terminal emulators using test complete
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are two ways you can do this. You can just send keystrokes to the terminal screen object. This will basically just do the task of sending the necessary commands. However, it's a pretty "dumb" way of doing things in that there is no response validation. There's no way, in this method, to verify you are on the correct screen or if the commands were successful.
The other way to do it is a bit smarter.
Add the terminal emulation object to the Text Recognition object list. You can then map and utilize the different text objects on screen to interact with them separately. Using NameMapping and such, you can even do detection and some verification.
It's still not quite to the level of a full GUI application, but this has worked well for me in the recent past.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Robert, thanks for quick reply. So you are saying that we can't test mainframe applications completely using TestComplete. Please correct me if I am wrong.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Depends upon what you mean by "test completely". Can you have TestComplete send keystrokes to a terminal emulator to simulate user actions? Yes... two methods described to do so. Can you validate what's on screen based upon those actions against expected results? Using Text Recognition, yes with some limitations in that it's only going to be able to check that a text object with the particular text string exists... pretty much what a user would do. All a console and terminal emulator are is text on screen and TestComplete will operate against that text on screen.
Now, if you want to run SQL queries against the back end database, you can do that in a variety of ways using ADO objects or a DDT connection or something like that. If you want to run a data driven test sending different keystroke combinations to the screen and checking the back end results, yes, you can do that.
What you cannot do is verify GUI object methods and properties and detailed application state because those are not "open" to TestComplete. As mentioned, I've used Text Recognition to some success with a terminal emulator. It's not as "clean" as testing a GUI application but it's doable. Again, it all comes down to what you want to achieve using TestComplete. Give us a specific list of requirements, actions, etc., that you want to use TestComplete to test against your mainframe and we can give you more specific answers.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for above details!!!!
When we are trying to identify Mainframe CICS terminal object with Test Complete object spy the it is identifying terminal as co-ordinates. But could you pls suggest if there is any reliable (except co-ordinate based) way to identify Mainframe object with test complete tool except this co-ordinate based recognition.
Note: Enabled Test Complete Text Recognition object and added mainframe terminal object.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
See my reply in this thread:
https://community.smartbear.com/t5/TestComplete-General-Discussions/Does-TestComplete-support-Mainfr...
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
