среда, 11 июня 2014 г.

Recording Hover’s in CodedUITest

http://blogs.msdn.com/b/rituparna/archive/2009/11/23/recording-hover-s-in-codeduitest.aspx

For recordings on WEB Applications  CodedUITest intelligently identifies that an Hover action has been performed on the application and records a Hover-Action on the control on which the Mouse was hovered . This type of auto-generated Hover-Action is referred to as IMPLICIT HOVER. The action such generated was not explicitly performed by the User (however not recording the action would most certainly lead to a faulty recording) and as such is tagged with the ContinueOnError flag. This indicates that even if the action is not played back the Test wont fail and execution will pass on to the next Step. The code generated for Implicit Hovers will look like
// Set flag to allow play back to continue if non-essential actions fail. (For example, if a mouse hover action fails.) 
Playback.PlaybackSettings.ContinueOnError = true;
           // Mouse hover 'My Bay' link at (56, 3) 
           Mouse.Hover(uIMyBayHyperlink, new Point(56, 3));
// Reset flag to ensure that play back stops if there is an error. 
Playback.PlaybackSettings.ContinueOnError = false;

Комментариев нет:

Отправить комментарий