Saturday, June 29, 2013

How to start applying software automation tests in your company?


Test automation sounds "sexy" and attractive to any group/team leader, or to any QA engineer who wants to make an improvement in his testing capabilities. But taking the wrong approach could lead to making some fatal mistakes, which eventually might cause unnecessary waste of resources to the organization, and frustration to all involved. To avoid this, simple rules must be followed, and relevant (truthful) information should be presented to the decision makers. The purpose is to successfully adopt automation tests, and make them an integral part of the development process.


It's Overwhelming !


Implementing software automation testing, might seem a little bombastic to any newbie. The wide range of concerns starting with 'where to begin?', right to the parts of 'what to automate?', 'whether' and 'how to automate setup and configuration procedures?', 'how to check the results on each milestone?', 'logging the tests', and notification issues, such as 'the form of the reports', are all a great deal to handle when you start from scratch.

Not to worry, Rome wasn't built in a day, and neither did any of the greatest existing automation solutions. Don't let the huge amount of issues and tasks, deviate you from your main objective, which is to give a reliable picture of the current status of the tested application. You have to start somewhere, and better sooner than later, since the development is waiting for no one, and new features are piling up all the time.


The Big Question


An important thing before we start diving into the solution, is that it all comes down to one significant question: "What do you want?" Or in other words what is our ideal state that we want to be in (...testing wise)? Surely I'm not going to leave this one open. My answer is: "everything!", I want it all. I want the setup, the configuration, tests execution, checkups, and reports, all fully automated.
As soon as a new build is ready, or even after every commit/check-in (new Dev. code merged into the application), full scale testing procedure should be executed, including sending results notifications. All of these, in my ideal world, would be done without any human touch. This is what we should see (or aspire for) at the end of the road.


Know Your Resources


Sorry for asking this, but what makes you think that manual testing skills, would be adequate for automation system implementation?
Moving to automation would definitely require from you, as a leader/manager, to re-evaluate seriously the capacity and abilities of the resources at your disposal. Automation is a different concept than manual testing execution. It involves different tools and frameworks, and it surely requires different skills than just being capable of doing manual tests (no disrespect for all you, manual testers out there).
If you're going to use your current staff, there's a learning curve you should be aware of. If it's outsource people, or new skilled automation developers you are going to hire, then there's another learning curve to take into advise- the curve of knowing the application under test. As capable and talented your new workers are, they couldn't write automated tests to a system they know nothing about.

In many cases though, some of the manual testers show interest in making their life easier. They may start with scripts to automate their preparation and configuration tasks, but they are the ones that usually open the door for other automation tasks to be accomplished. Encouraging these guys, and giving them all they need to fulfill their curiosity and potential (time, guidance, compensation etc.), would be a big step toward achieving your automation goals.

These were some insights regarding the human resource aspect of starting to automate. But what about the time resource? I have already mentioned the learning curves, but even if you have a very talented new team of experienced automation programmers, that know all there is to know about automation, and all there's to know about the tested application, even then, if automation is done correctly, testing infrastructure must be built. It should be assembled after careful & thorough design, and after proper brain storming. This takes time. In fact, sometimes weeks, or even months will pass from the time one starts writing automation, until he actually sees his first test-flow execution.


Choose Your Tool Wisely


This is critical !!
If you don't want to write automated tests over and over, and change frameworks every month, this must be done properly. Characterize the application which is under test, and analyze the tests procedures. Examine all interfacing angles of the application being tested, and list the tools you currently use to check them. This could include the UI of the end user, admin console interface, the application's APIs, and more.
The chosen automated tests framework must be able to support all (or most) of the listed interfaces, including the future outlook and vision of all interfaces to be used. If all tests are done using WEB browsers, than 'Selenium Web-Driver' might be the best tool to use. If the system under test has some windows apps that are to be tested, then almost certain that 'QTP' is your tool. There are many more options, but these ones I personally worked with.

Sometimes it's good to know (and acknowledge) that you don't know. It would be wise to ask the counseling of experts, especially in this matter. The required knowledge won't be in the organization, since you have just started automating. The automation development framework/tool that you choose, will be used for a long time, and would be the base ground for all test flows developed in the future, so it must be chosen after a serious consideration & research.

One principle to follow, is to set one 'marshaling' language/program/script, from start to end. Meaning it would be best to have a single point of management interface, where all actions and all references of a test flow, will start from, and return to. Same script/language code, which would start the setup procedure, will execute the test, and would also send the report at the end. One, single 'Main'-like  code, which would make a coherent, organized marshaling point, through which all test related actions could be controlled from.

Another issue to consider when choosing development framework, is the R&D background and knowledge. This has extra importance for teams new to automation and code development in general. If R&D is using Java, than Selenium Web-Driver over Java would be preferable. If it's .NET, than you might consider using C# platform. The support system of the application developers is important, not only when you're stuck and need advice (for this, online professional forums would do the work), but also for code & design reviews.

Just to set things straight-changing of code is done all the time. Refactoring and re-designing are done continuously. So no one says that once you set the automation framework design, then that's it. But it would be extremely beneficial to all, if before writing the first line of automation code, one would think it through, consult, and do some research, in order to minimize design mistakes, which might cost dearly.


Prioritize & Focus 


So, after exhausting so many clichés, you should divide your overall execution into segments. Basically, full test flow, end to end, has the following parts (roughly):

• Setup of the testing environment (including DB preparation)
• Application configuration
• Execution
• Checking actual outcome (response) in comparison  to the expected results
• Reports

First thing you need to know is that you must adhere to the current way you test today. As mentioned before, with so much to do in order to achieve a reliable automation system, a focus and prioritization is desperately needed. Furthermore, many times quick results are to be presented (to a stressful management), to justify the efforts and the resources allocation. Generally speaking, all automated tests include two combined elements: simulating a scenario (execution), and checking the results (the response of the application under test). So, from the five segments mentioned above, there is no doubt that the core two, are the scenario 'execution', and 'checking the actual outcome'. If you want to start somewhere, start there.



Some Principles To Live By


Whether it's automation tests for any kind of GUI application, or for other SW component, always strive to generate robust and scalable automation code for maximum control in the future, and in order to keep your independence and flexibility.
For starters, keep the following rules:
  • Design the automation framework in a way that utilities are written once for common use
  • Design the framework so that object repositories are shared and maintained in one place (per version)
  • Plan before writing each test
  • Have design & code reviews to be part of the automation development process- for constant improvement
  • Keep the automation knowledge in-house (not in the hands of out-source people), and share it
  • Use parameters to support multiple configuration & setups execution of single code
  • Make your tests resilient to app changes, by robust object identification (RegEx and other techniques), and object synchronization.
Good Luck !


It's only fair to mention the following sources (there are many more), that each expressed it's own take on the same issue:
Good Practices For Automating Functional Tests
10 Tips you should read before automating your testing work
6 Tips to Get Started with Automated Testing
Getting started with automation testing


66 comments:

  1. I know a company that specializes in implementing automation processes for software development firms. It's called SeleniFrame. The website is SeleniFrame.com

    ReplyDelete
  2. Assam 2564 Police Constable Recruitment 2016 Apply Online


    thanks for sharing the useful article which is helpful for many people…….

    ReplyDelete
  3. This demands that your JUnit test class move the instance of RemoteWebDriver into the site object :

    It's possible for you to compose some sense to handle this. I've composed a approach that will return the WebElement , which method may be called three times or you can increase the time and add a null always check for WebElement

    ReplyDelete

  4. This article is more interesting and content is really useful to me. Keep updating the content regularly and this software testing content is helped to know more detailed.Software testing training in Chennai | Software testing training | testing training in Chennai

    ReplyDelete
  5. Such an amazing blog about the Best automation systems and I really appreciate you work which you have done well.
    Best automation systems

    ReplyDelete
  6. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
    java training in marathahalli | java training in btm layout

    java training in jayanagar

    ReplyDelete
  7. The site was so nice, I found out about a lot of great things. I like the way you make your blog posts. Keep up the good work and may you gain success in the long run.
    python online training
    python training in OMR
    python training in tambaram

    ReplyDelete
  8. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
    Devops Training in Chennai

    Devops training in sholinganallur

    ReplyDelete
  9. This is a nice article here with some useful tips for those who are not used-to comment that frequently. Thanks for this helpful information I agree with all points you have given to us. I will follow all of them.
    Blueprism training in tambaram

    Blueprism training in annanagar

    Blueprism training in velachery

    ReplyDelete
  10. This is most informative and also this post most user friendly and super navigation to all posts... Thank you so much for giving this information to me.. 

    angularjs Training in chennai
    angularjs Training in chennai

    angularjs-Training in tambaram

    angularjs-Training in sholinganallur

    angularjs-Training in velachery

    ReplyDelete
  11. Really great post, I simply unearthed your site and needed to say that I have truly appreciated perusing your blog entries.

    devops online training

    aws online training

    data science with python online training

    data science online training

    rpa online training

    ReplyDelete
  12. Hello, I read your blog occasionally, and I own a similar one, and I was just wondering if you get a lot of spam remarks? If so how do you stop it, any plugin or anything you can advise? I get so much lately it’s driving me insane, so any assistance is very much appreciated.
    Android Training in Chennai | Best Android Training in Chennai
    Matlab Training in Chennai | Best Matlab Training in Chennai
    Best AWS Training in Chennai | AWS Training in Chennai
    Selenium Training in Chennai | Best Selenium Training in chennai
    Devops Course Training in Chennai | Best Devops Training in Chennai

    ReplyDelete
  13. Nice and very useful blog. A great and very informative post, Keep up the good work!


    Data Science Courses

    ReplyDelete
  14. Really appreciate this wonderful post that you have provided for us.Great site and a great topic as well i really get amazed to read this. Its really good.




    DATA SCIENCE COURSE MALAYSIA

    ReplyDelete
  15. I’ve been searching for some decent stuff on the subject and haven't had any luck up until this point, You just got a new biggest fan!..
    machine learning course malaysia

    ReplyDelete
  16. I have to search sites with relevant information on given topic and provide them to teacher our opinion and the article. I appreciate your post and look forward tomorrow.data science course in singapore

    ReplyDelete
  17. I really have to search sites with relevant information on given topic and provide them to teacher our opinion and the article. I appreciate your post and look forward tomorrow.data science course in singapore

    ReplyDelete

  18. Great information on given topic and provide them to teacher our opinion and the article. I appreciate your post and look forward tomorrow.data science course in singapore

    ReplyDelete
  19. You might comment on the order system of the blog. You should chat it's splendid. Your blog audit would swell up your visitors. I was very pleased to find this site.I wanted to thank you for this great read!!
    data science course malaysia

    ReplyDelete
  20. thank you so much for this nice information Article, Digital marketing is tha good skill in grouth tha career For website creation, promotion and development contact here. For your digital marketing needs just have a look at Click Perfect.Automation Anywhere Training in Bangalore

    ReplyDelete
  21. Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!

    business analytics course

    data analytics courses in mumbai

    data science interview questions

    data science course in mumbai

    ReplyDelete
  22. Thank you for sharing very good post, it was so Nice to read and useful to improve my knowledge as updated one, keep blogging. AWS training in chennai | AWS training in anna nagar | AWS training in omr | AWS training in porur | AWS training in tambaram | AWS training in velachery

    ReplyDelete


  23. Great information!! Thanks for sharing nice blog.
    Data Science Course in Hyderabad

    ReplyDelete
  24. Excellent blog with lots of information, keep sharing. I am waiting for your more posts like this or related to any other informative topic.Amazing web journal I visit this blog it's extremely marvelous. Interestingly, in this blog content composed plainly and reasonable. The substance of data is educationalData Science Training In Chennai

    Data Science Online Training In Chennai

    Data Science Training In Bangalore

    Data Science Training In Hyderabad

    Data Science Training In Coimbatore

    Data Science Training

    Data Science Online Training

    ReplyDelete
  25. I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.
    Correlation vs Covariance
    Simple linear regression
    data science interview questions

    ReplyDelete
  26. Extremely decent review. I totally appreciate this site. Much obliged!

    best interiors

    ReplyDelete
  27. I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.

    Data Science Training in Hyderabad

    ReplyDelete
  28. Nice blog and impressive. Useful information for many people. Keep sharing more blogs with us. Thank you.
    Data Science Certification Courses

    ReplyDelete
  29. Thanks for posting the best information and I will be there.data science training in udaipur

    ReplyDelete
  30. Just read your insightful guide on test automation! It’s a brilliant overview of how to approach automation with clarity and strategy. You effectively address the common challenges, like tool selection and resource evaluation, and offer practical advice on prioritizing tasks. Your emphasis on robust framework design and the need for thorough planning is spot on. I particularly appreciate the actionable tips and principles you’ve shared—they’re invaluable for anyone looking to implement automation successfully. Great job demystifying automation and setting clear, achievable goals
    data analytics courses in dubai

    ReplyDelete
  31. Hello! thank you for sharing this information. This information is very informative.
    Data science courses in Ghana

    ReplyDelete
  32. Excellent insights on implementing software automation tests! It's essential to approach automation with a well-thought-out strategy to avoid common pitfalls and maximize resource efficiency. Your guidance on communicating with decision-makers will help teams successfully integrate testing into the development process. Thanks for sharing! Data Science Courses In Malviya Nagar ​"

    ReplyDelete
  33. Great insights on starting software automation tests! Your practical approach makes it easier for companies to understand the implementation process. Keep sharing these valuable tips; they’re essential for teams looking to improve efficiency and quality in their testing processes!
    Data Science Courses in Singapore

    ReplyDelete
  34. Really enjoyed this post! The world of data science is full of potential. If you’re looking to enhance your skills, I recommend the Data science courses in Faridabad. It’s a great way to prepare for your career!

    ReplyDelete
  35. This article provides a comprehensive guide for implementing test automation in a development process, emphasizing the importance of careful planning and prioritization. It highlights how automation, while attractive to teams and leaders, can be overwhelming if approached incorrectly. Key insights include the need to understand the resources available, choose the right tools, and design a robust framework that allows for scalability and flexibility. The article also stresses the importance of setting clear objectives, focusing on critical tasks first, and involving both manual testers and automation experts to ensure a smooth transition. Overall, it outlines a strategic approach to avoid common pitfalls and make automation a valuable part of the testing process.
    data analytics courses in dubai

    ReplyDelete
  36. What a fantastic article! The author explains the subject in a way that’s both informative and easy to follow. The practical tips included make the content even more valuable. I’m sure many readers will find this guide extremely helpful.
    Data Analytics Courses in Delhi

    ReplyDelete
  37. What a great blog! Your passion for the topic is truly evident. This was an amazing read! Thank you for your valuable insights
    Data science courses in Gujarat

    ReplyDelete
  38. Excellent article on software automation development. This article will be helpful to many software developers. Well written and explained. Useful and informative post. Thanks for sharing.
    Data science courses in Kochi

    ReplyDelete
  39. This was exactly what I needed on Software Automation ! The way you presented the information makes it so easy to implement. Such a helpful post.
    Online Data Science Course







    ReplyDelete
  40. "IIM Skills' Data Science course offered me the flexibility to learn from Mumbai while juggling my professional responsibilities. I highly recommend it for anyone eager to advance their skills!"
    Additionally, there are several data science courses available in Mumbai worth exploring.

    ReplyDelete

  41. This article offers a comprehensive overview of the challenges and considerations involved in implementing test automation. It effectively highlights the allure of automation while cautioning against common pitfalls that can lead to wasted resources and frustration. Data science courses in Mysore



    ReplyDelete
  42. To start applying software automation tests in your company, begin by identifying key areas where automation can bring the most value, like repetitive, high-volume tests. Invest in the right tools and frameworks suitable for your tech stack. Start with a small pilot project to demonstrate value, and gradually expand. Build a team with automation expertise, and ensure developers follow best practices. Document processes, set clear goals, and continuously improve your test automation efforts.
    Thank you for the blog.
    Data science Courses in Germany

    ReplyDelete
  43. "What an insightful post! It's fantastic to see data science education expanding into regions like Iraq. For anyone looking to become a data scientist, this is the perfect time to start, and Data science courses in Iraq is a great place to find the right programs."

    ReplyDelete
  44. This is a fantastic post on how to get started with software automation testing! You’ve provided a clear and structured approach that helps beginners understand where to begin and how to implement automation effectively. The tips on tools and best practices are especially useful for anyone looking to get started in the field. Thanks for sharing this insightful guide.
    Data science course in Gurgaon

    ReplyDelete
  45. This blog provides practical advice on how to start applying software automation in development projects. A great starting point for those looking to improve efficiency and testing in their workflows!
    Data science course in Gurgaon

    ReplyDelete
  46. I particularly appreciate the step-by-step approach you suggested for getting started.very helpful and amazing blog.
    Data science course in Bangalore

    ReplyDelete
  47. This post provides a clear and structured approach to implementing automation testing in a company—perfect for teams looking to scale their testing processes.
    Data science course in Bangalore

    ReplyDelete
  48. I found out about a lot of great things. I like the way you make your blog posts. Keep up the good work and may you gain success in the long run. Thank you for sharing!
    IIM SKILLS Data Science Course Reviews

    ReplyDelete
  49. This post was exactly what I needed. Your advice on How to start applying software automation tests in your company has given me the confidence to move forward with a fresh view.
    Data Science Courses in China


    ReplyDelete
  50. Great post! The detailed explanation on Software Automation Development is really helpful, especially for those working as software engineers. The step-by-step guidance makes the process clear and easy to understand. Thanks for sharing this valuable info. Investment Banking Course

    ReplyDelete