1 / 17

Sofia Event Center 14-15 May 2014

Sofia Event Center 14-15 May 2014. Test Automation with Visual Studio. Martin Kulov. Coded UI Features. Functional Testing Code generation Intent aware recording and resilient playback Test Automation Local and Remote Data collectors Rich Extensibility. Recording.

media
Download Presentation

Sofia Event Center 14-15 May 2014

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. 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!

More Related