This is a migrated thread and some comments may be shown as answers.

KeyBoard events not working fine

1 Answer 135 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Veenu
Top achievements
Rank 1
Veenu asked on 27 Feb 2013, 09:07 PM
Hi

I am evaluating Test Studio trial version for functional testing of one of my application using Telerik's rad controls. Application also supports keyboard events like Tab, Arrow Keys and Enter events. But when I use Test studio for recording of application and uses keyboard events then test studio records some events which have not been actually fired from the keyboard e.g.

While recording user performs following actions after login:-

  1. Alt + 1 is pressed for focus over Left Menu
  2. Tab is pressed, focus is moved to Menu1
  3. Tab is pressed, focus is moved to Menu2
  4. Tab is pressed, focus is moved to Menu3
  5. Tab is pressed, focus is moved to Menu4
  6. Tab is pressed, focus is moved to Menu5
  7. Right Key is pressed on Menu5, Focus is moved to Child-Menu5.1 of Menu5
  8. Tab is pressed, focus is moved to Child-Menu5.2
  9. Right key is pressed on Child-Menu5.2, focus is moved to Child-Child-Menu5.1.1
  10. Tab is pressed, focus is moved to Child-Child-Menu5.1.2
  11. Enter is pressed on Child-Child-Menu5.1.2 and page is displayed

Test Studio Records the same in the following manner:-

  1. Key Press - 1 times on "Accesskey1Text" and focus is set to Left Menu
  2. Tab - 1 times on Menu1
  3. Tab - 1 times on Menu2
  4. Tab - 1 times on Menu3
  5. Tab - 1 times on Menu4
  6. Tab - 1 times on Menu5
  7. Right - 1 times on Child-Menu5.1
..................

Thus, when user playback the same script
Test studio presses tab on Menu5 and bypasses the same menu and moved to Menu6, while it should press "Right key" on Menu5 instead of "Tab Key".
So, test studio should record the script with following action, as I also have to change all the scripts manually for such action.

  1. Key Press - 1 times on "Accesskey1Text" and focus is set to Left Menu
  2. Tab - 1 times on Menu1
  3. Tab - 1 times on Menu2
  4. Tab - 1 times on Menu3
  5. Tab - 1 times on Menu4
  6. Right - 1 times on Menu5
  7. Tab - 1 times on Child-Menu5.1

Please let me know if I am doing anything wrong or this is an issue with test studio.

Thanks & Regards,
Arvind Dhiman

1 Answer, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 05 Mar 2013, 04:57 PM
Hello Veenu,
could you send me the actual test you're working on so that I may examine it and propose improvements.

Also a video (jing is great for this) and/or screenshot of the problem might be helpful.

It seems to me that you're unable to simulate the following action correctly:
Right Key is pressed on Menu5, Focus is moved to Child-Menu5.1 of Menu5

You can try an alternative approach by using desktop-based clicks as seen here:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/test-execution-problems/invoke-blind-mouse-click.aspx

With this approach you can try implementing a mouse right-click on menu 5 - that should be indistinguishable from a real user doing the same thing.

I hope this helps.

All the best,
Stoich
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Veenu
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Share this question
or