1 / 16

Your Creativity Unleashed

Your Creativity Unleashed. Save time, focus on high value tasks Fast Forward for Manual Testing High quality bugs with single click Create, manage, and execute test cases. Rich Modern Experience Standalone testing suite Elegant Task focused UI

heinz
Télécharger la présentation

Your Creativity Unleashed

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Your Creativity Unleashed • Save time, focus on high value tasks • Fast Forward for Manual Testing • High quality bugs with single click • Create, manage, and execute test cases • Rich Modern Experience • Standalone testing suite • Elegant Task focused UI • Combined manual & fast forward for manual testing • Capture still images, video, and system information • Plan, Test, Track flow • Web Performance & Load Testing • Know your code is ready for the big time • Measure performance under real time load conditions and ensure that your applications are ready for release

  2. Quality code ensured • No more “no repro” with Test Manager • Integrated, Extensible Diagnostics • Actionable Rich Bugs, fix first time, every time • Intellitrace for historical debugging • Eliminate wasted cycles with Lab Management • Test in “production like environments” • Automation of predictable build-deploy-test cycles • Optimized test hardware utilization • Simplified environment setup & deployment • Checkpoints and reverting to baseline configuration • Test across multiple configurations easily • Rapid Setup/Teardown of Environments • Test Automation with Coded UI Tests • Reduce regressions during a team build • Familiar language & toolset support • Add assertions on properties • Convert test cases to code

  3. Activity: Creation of Regression Tests • Create a test case for a regression • Automate functional tests • Record actions or import action recording from test • Easily repeatable • Maintain it through the product cycle • Run the test as port of the build-workflow

  4. What You’ll need • Visual Studio 2010 Premium or Ultimate • Feature Pack 2 • C# or VB skills • (optionally) Microsoft Test Manager • Testable application

  5. Code UI Testing Best Practices • Use the Coded UI Test Builder whenever possible. • Do not modify the RecordedMethods.csfile directly. • Do not modify the UIMap.designer.cs file directly. • Create your test as a sequence of recorded methods. • Create a new test method for each new page, form, or dialog box. • When you create a method, use a meaningful method name instead of the default name. • When possible, limit each recorded method to fewer than 10 actions. • Create each assertion using the Coded UI Test Builder. • If the user interface (UI) changes, re-record the test methods, or the assertion methods.

  6. Code UI - PlayBack.PlayBackSettings • ContinueOnError • DelayBetweenActions • MatchExactHierarchy • SearchTimeOut • SmartMatchOptions • TopLevelWindow • Control • None • ThinkTimeMultiplier • WaitForReadyTimeout

  7. Code UI - UITestControl.WaitForControl • WaitForControlReady() • WaitForControlEnabled() • WaitForControlExist() • WaitForControlNotExist() • WaitForControlPropertyEqual() • WaitForControlPropertyNotEqual() • WaitForControlCondition()

  8. Automation Platform Support

  9. Get Used to Using Using. It’s Useful! using (ApplicationUnderTest.Launch(this.UIMap.LaunchAppParams.UIMyWindowsFormsAppWindowExePath, this.UIMap.LaunchAppParams.UIMyWindowsFormsAppWindowAlternateExePath)) { this.UIMap.SimpleTest(); … }

  10. Searching & Filtering (http://tinyurl.com/SearchAndFilter) Searching is used to look for all POSSIBLE controls. Filtering is used to narrow that list to exactly one match. X, Y is only used to guide where the clicks happen within a control. Mouse.Click(uIGOButton, new Point(19, 18));

  11. Databinding Test -> Windows -> Test View -> Properties -> Select CSV, XML, or Database. this.UIMap.SimpleTestParams.UIMyTextboxEditText= TestContext.DataRow[“col_name"].ToString(); • Databinding to test parameters happens automatically when converting from manual test cases.

  12. Friendlier Assertions Makes it easier to analyze test run data. Assert.AreEqual(foo, bar, "Sales tax total is wrong.");

  13. Capturing Images Image pic = this.<top_level_window>.CaptureImage(); //Or for entire desktop: Image pic = UITestControl.Desktop.CaptureImage(); pic.Save(@"c:\file.bmp"); TestContext.AddResultFile(@"c:\file.bmp");

  14. Microsoft Test Manager -> CUIT Workflow • Mark each step as pass/fail when recording manual tests. • Carefully consider which test cases make sense for automation, and when. • Use the Automation Status field of Test Cases to identify candidates for automation.

  15. Continue on Error For actions that may not happen every time. Playback.PlaybackSettings.ContinueOnError = true; or:

  16. Testing with Firefox • Firefox 3.5 or 3.6 • Requires Visual Studio 2010 Feature Pack 2 //call this at the beginning of your test BrowserWindow.CurrentBrowser = “Firefox”; //instead of clicking the close button This.UIMap.<browser_TLW>.Close();

More Related