Best Practices for Planning a Test Automation Strategy
Sauce AI for Test Authoring: Move from purport to executing in minute.|xBack to ResourcesBlogPosted
Sauce AI for Test Authoring: Move from purport to executing in minute.
|
x
Whether you & # x27; ve already made the determination to move to automated examination or you & # x27; re still considering it, it is important to know what the best practices are for making the transition, and which strategy are best suited to your organization. Each covering of any complexity is likely to have its own combination of testing requirements, and no two growing teams are just likewise.
In this office, we & # x27; ll discourse best practices for project a exam mechanisation strategy, and suggest ways for set which strategy will work best for your covering and for your team.
Automated Testing: The Basics
Let & # x27; s beginning with the virtually key questions: What is automated screen, and what makes it important?
Managing Repetition
Manual software testing is repetitive. It is, in fact, one of the most repetitive and time-consuming types of task consociate with either software growth or use. For most form of package, solely manual data entry requires more time or more repetition—and large-scale, high-volume information entry is typically one of the maiden undertaking to be automate.
Automating testing isn & # x27; t quite as simple as automating datum launching, of course, but the basic rule is the like: identify repeated activeness, create a framework that allows those action to be performed with a high degree of efficiency, then automate both high-repetition and low-repetition actions so that manual intervention is either eliminated totally or reduced to a minimum.
Script Everything
For testing, much of this repetition consist of do the like basic test operation on different platforms (operating systems, browsers, mobile devices, etc.) and under different conditions (emphasis, burden, resource availability, and so on). Tests may besides be repeated a large number of multiplication in order to get gradually evolve or transient trouble.
Automated tryout systems are script-driven, with automated test datum entry and mechanically read results. Scripting can be used to operate the number of repetitions for each exam, and to employ variations of both test procedures and data gathering in order to accommodate different platforms and conditions.
Virtualize
For the most part, automated testing is also virtualized examination. Typically, unless you need to specifically test your application & # x27; s interaction with a hardware program, you can run most or all of your tests on virtual machine.
Testing on virtual machines makes it lots easier to automate test system setup, as well as input and output, and it eliminates time fagged waiting for hardware-based test systems to become available. It besides speeds up the process of testing itself, much by one or two order of magnitude. This cut overall test clip, and countenance you to include eccentric of testing which would be difficult to fit into a manual examination schedule.
Requirements and Infrastructure
Before you make any introductory pick regarding machine-controlled trial design and infrastructure, it & # x27; s important to translate what is usable, and what is required for a first-rate automated testing regime.
Scripting and Frameworks
Needless to say, automated testing is script-driven. Test script may be written in a general-purpose programming language, or in a domain-specific test-scripting language. A test-scripting language will typically be part of an automated testing framework (such as Appium or Selenium, both of which are open seed). Such frameworks generally include major element of the testing base, along with their own APIs. They may also permit you to record test steps, then edit them in the built-in scripting language, simplifying the operation of building up a test script library.
Cloud-Based Testing
When you test using practical machines, they typically do not need to be on-premises (unless specific security or configuration requirements create on-premises testing a requirement). Cloud-based virtual test systems will do the job only as well, and by testing in the cloud, you avoid the restraint enforce by circumscribed on-premises resources.
For autonomous testing across multiple user personas, check out SUSATest — it explores your app like 10 different real users.
Testing Platforms
A good cloud-based testing platform will ofttimes provide a full-service infrastructure for deploying and examine virtual machines in the cloud, along with analytics, dashboards, protection, and all of the APIs required to integrate these services with your existing project direction base.
In addition, a cloud-based prove service such as Sauce Labs can actually make it easier for you to automate hardware testing for key mobile platforms or other devices. With real-device cloud examination, you use a cloud-based testing base to run machine-controlled tests on a set of real devices which are maintained by the testing service.
Planning the Move
Ultimately, the test automation strategy you put together should be the one that works best for your system and your production line. In order for this to be the suit, your planning process should include the following ingredient:
Include the Right People
Bring the key stakeholder on board, at least to the degree that they experience a voice, if not final decision-making privilege. For testing, this will include your testing faculty, developers, designers, and real possibly service desk personnel. Developers and quizzer need to be actively involved in the process, and all stakeholders should give stimulant (view unmet testing needs, for exemplar) and be keep up-to-date.
Ask yourself and key stakeholder the following questions:
What Do You Want To Test?If you be not faced with physical or schedule-based constraint, what would you test? What would your testing priorities be? Which functional region would you like to test, and what potential performance problems would you like to test for? Which platforms and which combinations of conditions would you like to include in your test regime? What kinds of tests have you set apart as visionary because there was not adequate time or equipment to include them?
At this point, don & # x27; t vex about which tests may or may not be practical in an machine-driven test environment. Right now, all you require to do is amass a leaning of things that you would care to test, given the opportunity.
What Have You Been Testing?What perform your current test government really consist of? What have you be testing, and what tests hold you designed, but either deferred due to lack of resources, or put on a & quot; run if there & # x27; s time & quot; lean? What examination result do you collect, and what do you do with them?
Then, ask two more questions: Given the constraints of your manual examination regime, are you mostly satisfied that it quiz for the right things in the correct way? Are you generally satisfied with the pattern of your current exam — the individual step and the overall test process?
Think About DesignIf the solvent to these two interrogative is & quot; Yes, & quot; so you will probably be capable to use the core component (trial requirements and individual steps, if not overall procedures) of your current test regime as the basis for plan much of your machine-driven regime. If you are not satisfied with most or all of your current test regimen, you may be better off designing your machine-controlled examination government from scratch.
In either cause, however, your machine-controlled regime design is likely to (and in many ways should be) based at least as much on key elements of the & quot; wish lean & quot; that you compiled as it is on your current testing pattern.
In-House or Out?Which constituent of your automated test government do you want to handle in-house, and which ingredient do you want to guide tending of using outside service or resources?
Should your developers write the test scripts? Or conversely, can your QA squad handle scripting and mechanization engineering? If you use a limited domain test script words and start with recorded tests, these undertaking may feature a much easier learning curve.
Will it be easier and more pragmatic to manage virtual machines and an automated examination model on-premises or in the cloud? In many ways, the answer to this interrogative depends on scale. You can, if appropriate, start with a modest, on-premises automated testing regime, with the choice of later migrating to the cloud.
Do you want to use a cloud-based testing program? This will assuage your in-house staff of the job of managing test-automation infrastructure. As draw above, services of this type are also very useful for managing a large volume of tests, and for automated testing on both virtual and existent devices.
Is it better to outsource all testing to a third-party examination service? Doing this will free up in-house staff and resourcefulness for non-testing tasks. It may, still, involve substantial up-front costs, and provide less control over the trial process.
These questions all involve tradeoffs between try want, available staff and resources, budget, and clip. The best answers for your team will reckon on the conditions within your organization.
And that may be the bottom line when it comes to planning your test automation scheme. The about basic best recitation is to clearly understand your screen needs, your resourcefulness and constraint, and the resources and services which are available, and to act on that understanding.
Michael Churchman started as a scriptwriter, editor, and manufacturer during the anything-goes former years of the game industriousness. He spent lots of the ‘ 90s in the high-pressure cluster software industry, where the move from waterfall to faster release was well underway, and near-continuous release cycles and automated deployment were already de facto touchstone. During that clip he developed a semi-automated system for care location in over 15 languages. For the preceding ten years, he has be involved in the analysis of software development processes and related engineering management subject. He is a regular Fixate.io contributor ..
Automate This With SUSA
Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts needed.
Try SUSA FreeTest Your App Autonomously
Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts.
Try SUSA Free