Does Ranorex Support Terminal Emulator(talking about XTERM)

Ask general questions here.
neerajnegi119911
Posts: 1
Joined: Tue Jun 18, 2019 3:49 am

Does Ranorex Support Terminal Emulator(talking about XTERM)

Post by neerajnegi119911 » Tue Mar 17, 2020 5:11 am

I have a web application on cloud, that has a terminal emulator in it. I need to write and fetch the values inside the terminal emulator.
When I try to spy it, it gives me this Xterm class for that emulator. Does Ranorex support this technology?

User avatar
N612
Posts: 135
Joined: Mon Jul 11, 2016 4:01 pm

Re: Does Ranorex Support Terminal Emulator(talking about XTERM)

Post by N612 » Tue Mar 17, 2020 9:01 pm

Terminals usually do not have objects for Ranorex to recognize, just text. Try using the GDI plugin as this can usually capture rawtext elements. Otherwise, you may need to use a workaround such as image-based automation, pixel-based clicks, or if just validating the data, you can copy the text to your clipboard and validate the clipboard's text (via code).

GDI: https://www.ranorex.com/help/latest/ran ... e-feature/
Image-based automation: https://www.ranorex.com/help/latest/ran ... troduction

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6163
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Does Ranorex Support Terminal Emulator(talking about XTERM)

Post by odklizec » Tue Mar 17, 2020 9:41 pm

Hi,

N612 is completely right. UI test automation tools are not capable of reading content of terminal windows and do any actions in them (except sending simple keystrokes). Your best hope (aside GDI Capture), is to (somehow) redirect the content of terminal window to file and process such file via string parser methods. But this may help you only to get and validate the content of terminal window, but not actually control it.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration