Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Sofia Event Center 14-15 May 2014 Martin Kulov Test Automation with Visual Studio."— Presentation transcript:

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

2

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

4 Recording Goal oriented implementation Typing text Searching for result Clicking a button Launching an app

5 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

6 Creating Coded UI Test Microsoft Test Manager From existing recoding From scratch using Coded UI Test Builder Writing Coded UI plugin 6

7 Generated Coded UI Files 7 CodedUITest1.csContains the coded UI test class, test methods and assertions. UIMap.uitestContains the XML model for the UIMap class, including all windows, controls, properties, methods, parameters, actions, and assertions.UIMap UIMap.Designer.csContains the code representation of the XML contained in the UIMap.uitest file. Do not edit this file. UIMap.csContains more of the code for the UIMap class. You can put any customizations for the UI map in this file.UIMap

8 Search Methods SearchProperties – Must have properties FilterProperties – limits results from Search to only one match 8

9 Data Collectors Event Log IntelliTrace System Information Video Recorder Custom Collectors 9

10 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

11 Asserts AreEqual AreNotEqual AreSame Fail Inconclusive IsFalse / IsTrue IsInstanceOfType / IsNotInstanceOfType IsNotNull / IsNull 11

12 Data Sources MTM Test Case XML CSV XSL SQL Express 12

13 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

14 PlaybackSettings class Playback.Wait Continue on Error 14

15 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

16 Demo: CodedUI Test

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


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

Similar presentations


Ads by Google