Blazemeter / RTEPlugin

JMeter RTE (TN5250, TN3270 & VT420) plugin for testing Mainframe applications
Apache License 2.0
19 stars 11 forks source link

when using the vt420 terminal for a non Mainframe terminal emulation, the page up is not navigating to the previous screen #18

Open d-saravanan opened 3 years ago

d-saravanan commented 3 years ago

when using the vt420 terminal for a non Mainframe terminal emulation, the page up is not navigating to the previous screen. In the emulator, there is something happening that like refreshes the UI, but does not show the previous screen. Kindly suggest suitable check points or debug points. I am also looking in to the code to see how to get this working.

Any suggestion will be very helpful for progressing forward.

Baraujo25 commented 3 years ago

Hello @d-saravanan,

Thanks for reaching out. What we actually have to look for, is the key mapping that we are using to send the Page Up signal to the server. That mapping is done on the Vt420Client class. On the vt420 client class, we can find that the _AttentionKey.ROLLUP is mapped to "\033[5~". The value mapped is the string representation of Page Up. On class XI5250CrtBase we can see the mapping for the _AttentionKey.ROLLUP and it's the Page Down key. Therefore, you should try to use the Page Down key (on your keyboard) in order to trigger the Page Up on the server-side.

We should fix this incoherence. It's added to our backlog for future releases. However, if you want to contribute to the fix, we will make special consideration for you on the next release.

Please try this workaround and let us know if it works.

On the other hand, as we always ask in this kind of scenario, the TCP dump. We use the TCP dump in order to recreate the flow between you and the server. With a mock server almost exactly like the one you are trying to make, we can debug the plugin and find the fix for it.

Here is how to get the TCP dump.

I would be looking forward to your response.

Best regards, Joaquin.