Triaged Tester

February 3, 2009

UI Automation – Do’s & Don’ts

Filed under: Automation,Checklist,Guidelines,Tips — Triaged Tester @ 7:19 am
Tags: , ,

Do’s

  • Explicitly set focus to the window on which the test Case is expected to input data.
  • Capture screen shots for failures. Helps in debugging.
  • Point to dev resource files for localized strings in a UI app. This would help a lot in pseudo loc testing.
  • Leave the UI in a known state after a test Case is done executing. E.g.: Close the wizard even if the test Case is to test the first screen of a wizard by canceling out of the wizard after the first screen.
  • Validate that the object being created using the UI with the one being stored in the backend system
  • Log every valid UI operation being performed in the test Case.
  • Use resource files for all data required to be entered in the UI.
  • Try to localize the usage of the UI automation tool as much as possible in order to avoid deep dependencies with one tool. E.g. Encapsulate the usage of the UI automation tool into a small framework for your UI automation. Use this framework to write test cases rather than the tool directly. This would decouple the tool from the test cases to a large extent. If the team decides to use a new tool, only the framework would need to rewritten using the new tool but the bulk of test code remains unchanged.

 Don’ts:

 

  • Do not log multiple times.
  • Do not sleep after every UI operation.
  • Do not give unusually long timeouts for every major operation.
  • Fail immediately after an unexpected screen.
  • Do not re-launch the UI application for every test Case as it is a time consuming process
Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: