Test automation for RAP-based application using HP/Microfocus UFT [message #1806296] |
Tue, 07 May 2019 13:03 |
Gunnar Adams Messages: 49 Registered: May 2016 |
Member |
|
|
Hi,
we are attempting to implement automated regression testing for our application.
I am part of the team who developed the RAP application, some other people in our company are implementing the test scripts.
I added special attributes to the DOM which the UFT-tool can use to identify the different elements of the application.
Clicking on elements (buttons, input fields) seems to work fine.
But just by setting the text to some DOM input field, this field's value isn't reported to the Java servlet and it may not even be recognized as being changed. The developers of the test script do not want to rely on keypress events, because of focus issues.
I think that the only way to reliably simulate user input needs to involve some Javascript functions which (after a value has been changed within the DOM) trigger the synchronization of that value to the Java servlet.
Provided that the test tool is able to call Javascript functions directly, I am prepared to add a global Javascript function, which identifies the widget, sets or updates it's value.
Does anybody have an idea where in the RWT code I should start looking?
Best regards,
Gunnar
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02390 seconds