Simple Concurrent Automated Testing Pattern

By Alex Yakyma

Many teams struggle to catch up their automated testing effort with fast moving development initiative. They may be able to deliver independent piece of value within a sprint (e.g.: “define – build – manually test” it) but it is only ok as long as it doesn’t touch the surface of automation. When you start automating your tests the delay becomes tremendous. Most of the teams either see failures at this point of lifecycle or just don’t know that soon they will fail epically, that’s the hard truth.

So what to do? How to succeed with automation? We will consider very simple pattern for test automation that will allow to see the bottlenecks in your test automation practice and apply it successfully.

The idea is very simple: if you can’t write automated tests for a user story before the implementation (that is another whole discussion) then do it concurrently with coding in a following way:

- Define a little vertical slice of a user story
- Implement and manually test it
- Start automating tests
- Define another slice
- Repeat…



In other words, instead of waiting until whole story is developed – take a slice and start automating it early.

It is important that team knows how to slice up stories. Otherwise they will fail in the very beginning of the process. Slicing up stories is essential. On one hand different approaches to splitting user stories will be very helpful (see examples of splitting user stories). On the other hand there is a number of additional nuances to consider which are specifically important with respect to automation. Here’s a couple of good advices:

1) If you’re slicing up user stories and try automating early slice by slice and still have big delays in the end – reconsider tooling or whole automation strategy. There can be one or few really deep problems with how you automate anything at all. For example, automating acceptance tests only at UI level can be very time consuming because UI testing is very fragile and possibly you have to either proceed with UI testing but using some smarter high-level tool (like Robot Framework) coupled with your current UI testing tool that would provide an ability of reuse of low-level test-code. Or you have to abandon UI testing at all or only use it for some quite limited cases only and concentrate upon testing business logic using FIT or JBehave or Cucumber or even JUnit (not for unit testing though!). There can be much more value if we can “remove” UI from the equation and rapidly automate testing of the “rest” of the system than trying to do 100% UI testing which may not be practically feasible.

2) In Slice 1 implement thin piece of functionality and define interfaces for a bit more. In other words, define somewhat more interfaces for future slices but only add “meat” for one. Those interfaces will be actual classes and methods but everything or almost everything there will be hardcoded. That way you will let automated tester start writing tests for much more functionality than you actually deliver within first slice. Those other tests will fail and serve you as further guidance for development. This way overall delay of automation will be even further minimized.

3) Don’t aim for high coverage in the beginning. Don’t get frustrated if you can’t cover everything. Take a slice of functionality, automate few (or maybe even just one) of the key tests and move on to another slice. Keep process lightweight and dynamic. Remember that collaboration over tests (between PO, developers and test engineers) is much more important than the test suite itself because it will allow you clarify requirements, save extra development effort and establish strong DBT teams.

4) If you already have a lot of non-covered code, don’t make it a separate life project to automate it but rather move from context to context. Work on your current story and automate “everything around it”. Take another story and also automate the test for functionality it “touches” and so on. As a team you need to have context of value, not just tests.

This model apparently will only work if and only if automated test engineer is a part of agile team, not part of separate “automation team” or whatever you call the people whose life mission is to constantly fail catching up with more and more functionality.

Start practicing now… starting lightweight is quite easy!

84 comments:

  1. Testing now a days has become as importnant as developing of an application. With the help of testing, we can find out the potential bugs which would affect the application. Fixing this at a very early stage would help the application to run without any problem.
    Software testing training in Chennai | Software testing training institute in Chennai | Software testing courses in Chennai

    ReplyDelete
  2. This substance makes another trust and motivation within me. A debt of gratitude is in order for sharing article this way. The way you have expressed everything above is entirely amazing. Continue blogging this way.
    Regards,
    Software Testing Training in Chennai | Testing Training in Chennai | Software Training institutes in Chennai

    ReplyDelete
  3. Excellent sharing. Testing is a wonderful field for IT peoples. Want to learn Selenium Training reach GangBoard. Hadoop Training

    ReplyDelete
  4. Interesting sharing. Testing is one of the most wanted field in IT industries. become a software tester Software Testing Training in Chennai | Software Testing Training in Chennai | Software Testing Training in Chennai


    ReplyDelete
  5. Nice blog. Thank you for sharing. The information you shared is very effective for learners I have got some important suggestions from it. erp in chennai.

    ReplyDelete
  6. Nice information regarding automation testing pattern my sincere thanks for sharing this post Please Continue to share this kind of post
    Selenium Training in Chennai

    ReplyDelete
  7. Your blog was so impressive., I got some new info with the help of your blog.. Thank you for sharing.. Software Testing Training in Chennai | Selenium Training in Chennai | Java Training in Chennai

    ReplyDelete
  8. Franchise Opportunities@ https://franolaxy.com
    Franchise opportunities in India@ https://franolaxy.com
    Franchise Opportunities India@ https://franolaxy.com
    Brand Establishment@ https://franolaxy.com

    ReplyDelete
  9. Hats off to your presence of mind..I really enjoyed reading your blog. I really appreciate your information which you shared with us.

    selenium training in chennai|

    ReplyDelete
  10. Interesting post! This is really helpful for me. I like it! Thanks for sharing!
    Mobile application developers in Chennai | PHP developers Chennai

    ReplyDelete

  11. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.

    SELENIUM TRAINING IN CHENNAI

    ReplyDelete
  12. Well Said, you have furnished the right information that will be useful to anyone at all time. Thanks for sharing your Ideas.
    Final Year Project Center in Chennai | Final Year Project Center in Velachery

    ReplyDelete
  13. Very good informative article. Thanks for sharing such nice article, keep on up dating such good articles.
    NO.1 API DEVELOPMENT SERVICES | MASSIL TECHNOLOGIES

    ReplyDelete
  14. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.

    white label website builder

    mobile website builder

    ReplyDelete
  15. Thanks for the useful information of software testing courses, give more updates on software testing development, First time I visit your blog really nice, I bookmark your blog here after a daily visit. Learn software testing course in Chennai

    ReplyDelete
  16. Thanks for splitting your comprehension with us. It’s really useful to me & I hope it helps the people who in need of this vital information. Selenium Training in Chennai | Selenium Training institutes in Chennai

    ReplyDelete
  17. I am really happy with your blog because your article is very unique and powerful for new reader.
    Selenium Training in Chennai

    ReplyDelete
  18. Hello! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche. Your blog provided us useful information to work on. You have done an outstanding job.

    Best AWS Training in Chennai | Amazon Web Services Training in Chennai

    AWS Training in Chennai | AWS Training Institute in Chennai Velachery, Tambaram, OMR


    AWS Training in Chennai |Best Amazon Web Services Training in Chennai


    AWS Interview Questions And Answers

    ReplyDelete
  19. I appreciate your efforts because it conveys the message of what you are trying to say. It's a great skill to make even the person who doesn't know about the subject could able to understand the subject . Your blogs are understandable and also elaborately described. I hope to read more and more interesting articles from your blog. All the best.
    python course in pune
    python course in chennai
    python course in Bangalore

    ReplyDelete
  20. Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
    excel advanced excel training in bangalore | Devops Training in Chennai

    ReplyDelete
  21. The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.
    angularjs Training in bangalore

    angularjs Training in btm

    angularjs Training in electronic-city

    angularjs online Training

    angularjs Training in marathahalli

    ReplyDelete
  22. Appreciation for really being thoughtful and also for deciding on certain marvelous guides most people really want to be aware of.
    safety course in chennai

    ReplyDelete
  23. I am commenting to let you know what a terrific experience my daughter enjoyed reading through your web page
    safety course in chennai

    ReplyDelete
  24. Thanks for the blog that you post here.you can know more about in this
    Selenium Training Program in Chennai

    ReplyDelete

  25. Thanks for providing wonderful information with us. Thank you so much.
    Data Science Course in Chennai

    Data Science With R

    ReplyDelete
  26. Great blog thanks for sharing Looking for the best creative agency to fuel new brand ideas? Adhuntt Media is not just a digital marketing company in chennai. We specialize in revamping your brand identity to drive in best traffic that converts.

    ReplyDelete
  27. Nice blog thanks for sharing Set up a aesthetic work environment that employees love to spend time in and relieve their stress. Your company needs the best corporate gardening service in Chennai and Karuna Nursery Gardens in happy to oblige you in the endeavour to make your infrastructure something worth flaunting about.

    ReplyDelete
  28. Excellent blog thanks for sharing Run your salon business successfully by tying up with the best beauty shop in Chennai - The Pixies Beauty Shop. With tons of prestigious brands to choose from, and amazing offers we’ll have you amazed.

    ReplyDelete
  29. Awesome blog thanks for sharing While choosing your perfect ride for driving, Accord Cars comes with and the best packages for you to pick from. Car rentals for self drive in Chennai are done the easier. Just pick out your plan from hourly, daily, weekly and even monthly plans available.

    ReplyDelete
  30. Very useful blog thanks for sharing Ancient Chinese have perfected the art of acupuncture and we at Yaa Healthcare through rigorous research and dedication have been following the same tradition throughout the years. Looking for the best place to get an acupuncture treatment in Chennai? Look no further – Yaa Healthcare is what you need.

    ReplyDelete
  31. Wow...What an excellent informative blog, really helpful. Thank you so much for sharing such a wonderful article with us.keep updating..

    MatLab Training Institute in Chennai | MatLab Training in Velachery | Matlab Training Center in Chennai | MatLab Courses in Pallikaranai | MatLab Training with Placement in Chennai

    ReplyDelete
  32. I feel really happy to see your blog and look forward to many more entertaining times reading here. Thanks once more for all the details.

    Java Training institute in Chennai | Java Training Center in Chennai | Java Courses in Velachery

    ReplyDelete
  33. It is awesome and wonderful to visit your site.Thanks for sharing your ideas and views... keep rocks and updating........
    Tally ERP9 Training Institute in Chennai | Tally Training Center in Velachery | Tally Training Center in Taramani

    ReplyDelete
  34. Thanks for posting this useful content, Good to know about new things here.It was so good to read and useful to improve my knowledge as updated one, keep blogging…
    MicroSoft Azure Training Institute in Chennai | Azure Certification Training in Velachery | Azure Certification Training in Adyar

    ReplyDelete
  35. I Got Job in my dream company with decent 12 Lacks Per Annum salary, I have learned this world most demanding course out there in the current IT Market from the python training in pune experts who helped me a lot to achieve my dreams comes true. Really worth trying.

    ReplyDelete
  36. I have read your blog its very attractive and impressive. I like it your blog.Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge.

    VMware Certification Training in Chennai | VMware Certification Exam Center in Chennai | VMware Exams Center in Taramani | VMware Certification Exams in Chennai

    ReplyDelete
  37. Wow...What an excellent informative blog, really helpful. Thank you so much for sharing such a wonderful post with us.keep updating..
    AWS Certifications in Chennai | AWS Exam Centers in Chennai | AWS Certification Exams in Velachery | AWS Exams in Velachery | AWS Online Exam Center in Velachery

    ReplyDelete
  38. I learned World's Trending Technology from certified experts for free of cost. I Got a job in decent Top MNC Company with handsome 14 LPA salary, I have learned the World's Trending Technology from Python Training in pune experts who know advanced concepts which can help to solve any type of Real-time issues in the field of Python. Really worth trying Freelance seo expert in bangalore

    ReplyDelete
  39. Very informative and interesting blog, it was so good to read and useful to improve my knowledge as updated one,keep updating..This Concepts is very nice Thanks for sharing.
    ISTQB Certification in Chennai | ISTQB Exam Centers in Chennai | Best ISTQB Exams in Velachery

    ReplyDelete
  40. It is really very awesome and wonderful to visit your site.Thanks for sharing your informative blog with us.keep updating such a wonderful post..
    MicroSoft Azure Certification in Chennai | Azure Exam Centers in Velachery | Azure Exam Centers in Madipakkam

    ReplyDelete
  41. Awesome blog thankks for sharing 100% virgin Remy Hair Extension in USA, importing from India. Premium and original human hair without joints and bondings. Available in Wigs, Frontal, Wavy, Closure, Bundle, Curly, straight and customized color hairstyles Extensions.

    ReplyDelete
  42. Very useful blog thanks for sharing IndPac India the German technology Packaging and sealing machines in India is the leading manufacturer and exporter of Packing Machines in India.

    ReplyDelete
  43. Good Post..Thanks for sharing such a wonderful article...
    Selenium Training in Bangalore | Selenium Courses | Selenium Training Institutes - RIA Institute of Technology - Best Selenium Training in Bangalore - Placement oriented Selenium Training Institutes in Bangalore.
    Learn Selenium Testing Training from expert Trainers.

    ReplyDelete