Thursday, December 25, 2014

How to record coded UI

1. Create coded UI project.

2. Let’s select the option “Record actions, edit UI map or add assertions”, and click “Ok”.




3. A small little toolbar will appear on the bottom right hand side of the screen.
(From left: )
Record,
Show recoding steps,
Add new control,
Generate code.

4. Use the record button to record all the actions needed. You can view the recorded steps by clicking the “show recording steps”.


5. You can delete the steps when you click on the show record steps by right click and select “delete selected actions”

6. After finished recording, click on the generate code. Add some meaningful description and click generate.

7. Close the coded UI test builder (the one shown on steps 3).


8. You can take a look at the recorded steps.

References:
msdn.microsoft.com/en-us/magazine/cc188784.aspx




No comments:

Post a Comment