Your SlideShare is downloading. ×
0
test automation practices from the fieldCODED UI
Clemens Reijnenwww.clemensreijnen.nl@clemensreijnenclemens.reijnen@sogeti.nlwww.youtube.com/clemensreijnenwww.slideshare.n...
the fieldcomplex user interfaces big project structuresmultiple environments
complex user interfacechallenges:           many controls         changing controls           complex flow          multip...
complex user interfacepractices:            edit the UIMap           search and filter       reusable ’test’methods       ...
UIMap   multiple UIMap’s          a map per          - screen             - scenario             - part             - team...
multiple UIMap’sUIMap   page object pattern
search   filter, search and the tree
reuse   UIMap Helper Class
reuse   test all controls
shared   reuse shared steps in Coded UI
UIMap mix      different test projects for            tune your manual tests            for automation or            remov...
Object Repository:        Keeps UI Object definitionscuite        separate from automation        code (no more UIMaps)
complex user interfacetake aways:•   reuse steps and assertions•   create helper classes•   well defined uimap structure• ...
big project structureschallenges:          multiple teams    chain of distributed projects              big teams       sh...
big project structurespractices:         team collaboration    branch strategy code and test        versioning test case  ...
collaborate              work together              __with work packages              __on alm artifacts
branch     test same heartbeat as development
branch          tests          tests            test           tests                                          tests       ...
Visual Studio test projects         with Coded UI test casebranch
UIMap per branch     UIMap’s don’t merge wellbranch
specific test         automation branchbranch
! well maintained regression setbranch
MTM test plans         with or without         associated automationbranch
MTM test plans         with or without         associated automationbranch                               test cases       ...
projects`                                 Team                                Project             Team      Team       Tea...
double
double
big project structurestake a ways: branch structure /multiple team projects              use areas well        don’t make ...
multiple environmentschallenges:   test for different environments     no virtualized environments            short test c...
multiple environmentspractices:      execute with out SCVVM    test execution responsibilityexecute from build on environm...
infra
infra
infra   configure for load or environments
execute
build
multiple environmentstake a ways:multiple environments is possible without                 SCVVM     how are the environme...
Test Automation Investment Levels0 No investment in any kind of automation.   Just click and test.1 Clean up of the Action...
Test Execution Investment Levels4 Execute them on a single environment.5 Execute them on multiple environments.6 Execute t...
final notes
interesting read / watchhttp://www.ie.sogeti.com/Product--                                     http://www.thoughtworks.com...
soon available
43
Upcoming SlideShare
Loading in...5
×

Coded UI - Test automation Practices from the Field

16,420

Published on

CodedUI tests within Visual Studio makes it easy for developers together with tester to create, fully-automated, functional user interface tests. These tests alert the team in an, easy to execute, automated way about regressions. CodedUI tests are easy to create for different UI technologies. But, all kinds of test automation needs an investment. To get a good return on this test automation investment you need to create CodedUI tests in a robust manner which can sustain changes to your application over time.

In this session you will see how maintainable CodedUI tests can be created and how the test infrastructure needs to be configured for efficient execution.

Published in: Technology, Business
1 Comment
4 Likes
Statistics
Notes
  • I'm building 'hand-coded' CUITs, which I write about on my blog.

    Some posts:

    -- http://burdettelamar.wordpress.com/2014/04/19/clean-and-dry-verifiers/
    -- http://burdettelamar.wordpress.com/2014/03/21/keep-your-page-objects-dry/
    -- http://burdettelamar.wordpress.com/2014/04/18/object-not-found-log-the-context/
    -- http://burdettelamar.wordpress.com/2014/04/01/encapsulate-the-gui-tool/
    -- http://burdettelamar.wordpress.com/2014/03/21/getters-and-setters/
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
16,420
On Slideshare
0
From Embeds
0
Number of Embeds
13
Actions
Shares
0
Downloads
240
Comments
1
Likes
4
Embeds 0
No embeds

No notes for slide

Transcript of "Coded UI - Test automation Practices from the Field"

  1. 1. test automation practices from the fieldCODED UI
  2. 2. Clemens Reijnenwww.clemensreijnen.nl@clemensreijnenclemens.reijnen@sogeti.nlwww.youtube.com/clemensreijnenwww.slideshare.net/clemensreijnen
  3. 3. the fieldcomplex user interfaces big project structuresmultiple environments
  4. 4. complex user interfacechallenges: many controls changing controls complex flow multiple screens changing screens …
  5. 5. complex user interfacepractices: edit the UIMap search and filter reusable ’test’methods reusable test assertions shared steps loose coupling low dependencies
  6. 6. UIMap multiple UIMap’s a map per - screen - scenario - part - team - …
  7. 7. multiple UIMap’sUIMap page object pattern
  8. 8. search filter, search and the tree
  9. 9. reuse UIMap Helper Class
  10. 10. reuse test all controls
  11. 11. shared reuse shared steps in Coded UI
  12. 12. UIMap mix different test projects for tune your manual tests for automation or remove them
  13. 13. Object Repository: Keeps UI Object definitionscuite separate from automation code (no more UIMaps)
  14. 14. complex user interfacetake aways:• reuse steps and assertions• create helper classes• well defined uimap structure• use codeui builder• start from scratch or tune your manual tests• make clear test method names• separate the test intent from the test steps• no related tests• all test must leave the application in the same state
  15. 15. big project structureschallenges: multiple teams chain of distributed projects big teams short test timeframe
  16. 16. big project structurespractices: team collaboration branch strategy code and test versioning test case no double tests
  17. 17. collaborate work together __with work packages __on alm artifacts
  18. 18. branch test same heartbeat as development
  19. 19. branch tests tests test tests tests tests tests tests tests tests tests build build build build
  20. 20. Visual Studio test projects with Coded UI test casebranch
  21. 21. UIMap per branch UIMap’s don’t merge wellbranch
  22. 22. specific test automation branchbranch
  23. 23. ! well maintained regression setbranch
  24. 24. MTM test plans with or without associated automationbranch
  25. 25. MTM test plans with or without associated automationbranch test cases test cases test cases test cases test cases
  26. 26. projects` Team Project Team Team Team Team Team Project Project Project Project Project
  27. 27. double
  28. 28. double
  29. 29. big project structurestake a ways: branch structure /multiple team projects use areas well don’t make it too complex, some things can’t be donetest and developers have the same rhythm
  30. 30. multiple environmentschallenges: test for different environments no virtualized environments short test cycles less time for execution
  31. 31. multiple environmentspractices: execute with out SCVVM test execution responsibilityexecute from build on environments
  32. 32. infra
  33. 33. infra
  34. 34. infra configure for load or environments
  35. 35. execute
  36. 36. build
  37. 37. multiple environmentstake a ways:multiple environments is possible without SCVVM how are the environments used who executes the tests
  38. 38. Test Automation Investment Levels0 No investment in any kind of automation. Just click and test.1 Clean up of the Action log maybe re-execute, for more smooth Fast Forward.2 Basic Coded UI. Only use the default generation, add your own assertion.3 Advanced Coded UI. Customize the Coded UI and UIMap for optimization.
  39. 39. Test Execution Investment Levels4 Execute them on a single environment.5 Execute them on multiple environments.6 Execute them on virtualized environments.7 …
  40. 40. final notes
  41. 41. interesting read / watchhttp://www.ie.sogeti.com/Product-- http://www.thoughtworks.com/evServices/Software-Testing--QA- ents/maintaining-automated-Services/Test-Automation/ acceptance-tests
  42. 42. soon available
  43. 43. 43
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×