This article presents the case for using an automation framework for implementing and testing ERP product suites. The structured design and development methodology described in this paper evolved through the experience of the Oracle Fusion Financials product quality assurance team and has been proven to bear significant benefits over time. The efficiency gains that are realized by using an automation framework translate into enhanced product performance at significantly lower cost. Special attention is required during automation framework design, since any presumptuous move at this stage could lead to dire consequences in terms of escalated costs, lost time, and inferior product quality.
This article provides information about the following tasks of the automation framework development process:
· Provide a strategy for design and development of an efficient automation framework in an iterative incremental development model used for large ERP applications
· Address issues surrounding framework compatibility and productivity with respect to certifications and implementations on multiple technology stacks
· Provide a fit-for-purpose automation solution that is neither too costly nor too scanty in functionality
· Focus on the scalability of the framework, leading to higher efficiency in activities related to enhancing its functional footprint
· Use modularity to assist maintenance and ensure consistent performance in a scenario where the application under test is constantly evolving
· Briefly outline the framework design methodology, customized to needs and maturity of the organization implementing the solution
· Identify key activities that help ensure the project stays on track and minimize the probability of loss on investment
Some of the tenets above were used in the architecture of the PSR3 (portable, scalable, rerunable, retestable, and reliable) automation framework used for quality assurance and implementation of Oracle Fusion Financials Applications. The benefits realized by using this automation framework are described in the Conclusion section.
An automation framework is a platform developed by integrating various hardware and software resources and various tools and services based on a qualified set of set of assumptions. It enables efficient design and development of automated test scripts and reliable analysis of issues for the system under test.
An automation framework is primarily designed to do the following:
1. Enhance efficiency during the design and development of automated test scripts by enabling the reuse of components or code
2. Provide a structured development methodology to ensure uniformity of design across multiple test scripts to reduce dependency on individual test-case developers
3. Provide reliable issue detection and efficient root-cause analysis with minimum human intervention for the system under test
4. Reduce dependence on subject matter experts by automatically selecting the test to execute according to test scenarios and dynamically refining the test scope according to changes in the test strategy or conditions of the system under test
5. Improve the utilization of various resources in each cycle to enable maximum returns on effort and also ensure an uninterrupted automated testing process with minimum human intervention
The challenge is to build a fit-for-purpose automation framework that is capable of keeping up with quickly changing automation testing technologies and changes in the system under test. The challenge is accentuated by the various combinations that are possible using the wide gamut of available automation tools. Making the right choices in the preliminary design stage is the most critical step of the process, since this can be the differentiator between a successful framework and failed investment.
As if this were not tough enough, add to this the even more formidable challenge of balancing the quality of the framework against the desired utility and the need to develop the framework within a stipulated timeframe using available resources to ensure the economic viability of the solution. Therefore, it is very important to benchmark the framework, the associated development time, and the required resources to ensure the framework's quality justifies the use of the framework.
Figure 1: Framework Lifespan
Automation frameworks can be classified according to four broad types, each of which has unique advantages and disadvantages, as shown in Table 1. The choice of a particular type depends upon a wide range of external factors.
Factor | Linear/Structured Test | Data Driven | Keyword Driven | Hybrid |
Objective | This consists of procedural code or a set of instructions | Data is persisted outside the test | Code is bound with keywords that are then used to implement the desired tests | This is a combination that chooses the strengths of other framework types and mitigates their weaknesses |
Approach | The approach is logical with a view of making the task at hand work | Data is the key and everything is designed to accomplish the desired task with a simple change of data | Most of the common tasks are organized into basic keywords that are bound with associated code; complex tasks are achieved by combining multiple keywords | The approach could depend on what needs to be accomplished and also on the imagination of the architect |
People skill requirement | Does not require advanced programming knowledge; simple logical skills are sufficient | Might require intermediate-level programming skills coupled with logical skills | Might require intermediate-level programming skills coupled with logical skills | Might require advanced programming knowledge, which might be used to make the framework more generic and adaptable |
Complexity | Low | Medium | Medium | High |
Framework development time comparison | Might require less time to develop the framework for individual cases | Requires a moderate amount of time | Requires a moderate amount of time | Might require significantly more time |
Individual-test development time | Higher | Lower once the base script is developed | Lower once the base script is developed | Lower once the base script is developed |
Individual-test development time | Higher | Lower once the base script is developed | Lower once the base script is developed | Lower once the base script is developed |
Flexibility with respect to changes in the system under test and technology | Low | Medium | Medium | High |
Advantages | Simplicity and low cost | Moderate complexity and flexibility | Moderate complexity and flexibility | High flexibility with boundless possibilities |
Disadvantages | Low flexibility | Flexibility only in terms of data | Flexibility only in terms of components | Might become very complex over time and might require specialized support |
Ideal usage scenario | Automation of simple repetitive tasks, which are expected to remain relatively unchanged over time | Automation of repetitive tasks for which only the data is expected to change over time with little or no effect on the technology or the system under test | Automation of repetitive tasks for which significant change is expected in terms of the system under test, but data remains relatively constant | Automation of repetitive tasks for which significant change is expected over time in terms of technology, the system under test, or data; most suitable for ERP applications |
Example development tools | Any record-and-play tool, for example, Selenium, Quick Test Professional (QTP), or Oracle Applications Testing Suite (OATS) | Any recording tool that has proficiency in scripting languages such as VBScript or JavaScript and provides external data store integration | Any recording tool that has proficiency in scripting languages such as VBScript or JavaScript | Might require custom component development and programming language support |
Figure 2 shows a framework comparison matrix that is based on data from a random sample.
Figure 2: Framework Comparison
Enterprise products are large, complex, and ever-evolving software products that, of late, have resolved to an iterative incremental-growth model. To keep up with the growth rate of an enterprise product, the corresponding testing framework should broadly conform to a design that has the following characteristics:
· Complete: The framework and its assets should allow complete end-to-end testing of the product suite, starting from initial setup and preparation of the environment to various specialized subprocesses and critical one-time tasks.
· Open: As much as possible, the framework should be based on open technologies, such as Java, to limit the development and maintenance costs. Openness might also allow cross-tool execution when a suitable API exits or can be developed.
· Integrated: The framework should allow easy integration with a maximum number of tools and components in the periphery of the product suite.
Figure 3: Optimum Framework Characteristics
Figure 4 and the following feature lists describe the framework features.
Must-have features:
Should-have features:
Could-have features:
· Role-based security: This type of security should allow access to various features and setups of the framework according to the authorization level that is used to log in to the system.
· Multiple Application Under Test (AUT) support: This type of support ensures that the same framework can be reused for testing various applications with minimal changes.
· Multiple tool support: This support must allow the development and execution of automated regression tests on multiple automation tool platforms.
Figure 4: High-Level System Architecture
Figure 5, Figure 6, and the following steps describe the framework design process and the framework development process.
1. Current State of the Architecture: The focal point of this step is to identify the current business practices with respect to automation in the target organization. Benchmarking the current state is an important first step in the process of clearly identifying the benefits offered by implementing an automation framework. This step demands that adequate attention be paid to various activities, such as the following:
f. At this stage, comparisons among the various available automation tools, programming languages, and technology stacks that will be used to implement the future-state architecture might also be performed, subject to the target organization's needs.
Figure 5: Framework Design Process
6. Work Plan: A detailed work plan needs to be prepared for each component included in the requirements analysis. This can be achieved in multiple ways, but significant common steps are as follows:
Figure 6: Framework Development Process
The design and development approach presented in this paper provides a consolidated and comprehensive schema for designing and developing automation frameworks. The PSR3 application implementation and testing framework that was designed and developed using this approach resulted in significant gains for various parameters shown in Table 2, which formed the part of certification challenge.
Parameter | PSR3 Automation Framework | Legacy Framework | Manual Certification |
Execution of over 1000 regression tests per day | 5 hours | 8 hours | Not achievable |
Creation of new environments from scratch | Completely automated and created in 6 hours | Not achievable | 32 man-hours |
Average script development and stabilization time | 3 hours for simple script | 8 hours for simple script | Not applicable |
Reconfiguration for setting up a new organization with the same environment | Due to automatic reconfiguration and with parallel execution, any number of environments could be created in same time required for setting up one environment (that is, 6 hours). | 24 man-hours | Re-execution of all setups for the creation of a new environment requires 32 man-hours. |
Parallel execution in multiple environments with the same technology stack and same application version | Parallel execution for any number of environments can be done in the same time requires for one environment | Parallel execution of any number of environments can be done in the same time required for one environment | Re-execution of all scripts in multiple environments is significantly labor-intensive |
Ability to run the same tests on two different application versions | Possible in parallel | Not achievable | Requires re-execution of all scripts in multiple versions |
Ability to run the same tests on two different technology stacks | Possible in parallel | Not achievable | Requires re-execution of all scripts in multiple versions |
24x7 automated job scheduling | Achievable | Not achievable | Not achievable |
Ability to re-execute tests and transactions with changed data | Automatic, though this can also be done manually once the system takes over | Data needs to be modified and synchronized between scripts before each run | Requires re-execution of all scripts with different data |
Change in application functionality or objects | Can be handled centrally (2 hour average fix time) | Affected components need to be traced and appropriate changes need to be carried out individually (50 hours approximately) | Not applicable |
Quality and quantity of regressions identified | Highest | Less | Least (quality is moderate; quantity much less) |
Framework development and stabilization time | Highest | Less | Not applicable |
Cost | Highest | Less | Not applicable |
Automation framework design and development is a process that requires structured and calibrated attention in various stages to attain the desired benefits. This process is the result of a marriage between cutting-edge technology and business advantage, and it requires constant evolution to maintain significance in the industry.
If properly designed and developed, an automation framework can be a process enabler and an efficiency multiplier for ERP product suites-which are some of the most comprehensive software solutions in the industry-thereby significantly improving the ROI for organizations that implement ERP products. Process and quantization is the key for a successful framework, and their absence can cause a significant loss of time, effort, and investment.