slide1 n.
Skip this Video
Loading SlideShow in 5 Seconds..
Sofia Event Center 14-15 May 2014 PowerPoint Presentation
Download Presentation
Sofia Event Center 14-15 May 2014

play fullscreen
1 / 17
Download Presentation

Sofia Event Center 14-15 May 2014 - PowerPoint PPT Presentation

media
125 Views
Download Presentation

Sofia Event Center 14-15 May 2014

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Sofia Event Center 14-15 May 2014 Test Automation with Visual Studio Martin Kulov

  2. Coded UI Features • Functional Testing • Code generation • Intent aware recording and resilient playback • Test Automation • Local and Remote Data collectors • Rich Extensibility

  3. Recording • Goal oriented implementation • Typing text • Searching for result • Clicking a button • Launching an app

  4. Playback • Fail safe implementation • Search for control based on ID • Wait for control to get ready • Ensure control is visible and shown • Ensure action is executed

  5. Creating Coded UI Test • Microsoft Test Manager • From existing recoding • From scratch using Coded UI Test Builder • Writing Coded UI plugin

  6. Generated Coded UI Files

  7. Search Methods • SearchProperties – Must have properties • FilterProperties – limits results from Search to only one match

  8. Data Collectors • Event Log • IntelliTrace • System Information • Video Recorder • Custom Collectors

  9. Coded UI Test Editor • Clean up UI actions • Renaming of test methods and controls • Split action in multiple methods • Pause action • Find location of the control

  10. Asserts • AreEqual • AreNotEqual • AreSame • Fail • Inconclusive • IsFalse / IsTrue • IsInstanceOfType / IsNotInstanceOfType • IsNotNull / IsNull

  11. Data Sources • MTM Test Case • XML • CSV • XSL • SQL Express

  12. Multiple UIMaps • Applicable for larger apps • New UIMap for each page or module • Each UIMap can be assigned to different tester • Easier to maintain

  13. PlaybackSettings class • Playback.Wait • Continue on Error

  14. Playback.Wait • WaitForReadyControl() – Waits to get ready to accept mouse/keyboard input • WaitForControEnabled() – Waits the control to be enabled • WaitForControlExisted() – Waits the control to exist on the UI

  15. Demo: CodedUI Test

  16. Questions??? Share your feedback for this particular session and for the overall conference experience at http://aka.ms/intouch for a chance to win our prizes!