What is UAT?
User Acceptance Testing (UAT) is a type of testing performed by the end user or the client to verify/accept the software system before moving the software application to the production environment. UAT is done in the final phase of testing after functional, integration and system testing is done.
The main purpose of UAT is to validate the end to end business flow. It does NOT focus on Cosmetic errors, Spelling mistakes or System testing. User Acceptance Testing is carried out in a separate testing environment with production-like data setup. It is a kind of black box testing where two or more end-users will be involved. The Full Form of UAT is User Acceptance Testing.
Who Performs UAT?
- End users
Need of User Acceptance Testing:
Once software has undergone Unit, Integration, and System testing the need of Acceptance Testing may seem redundant. But Acceptance Testing is required because
Developers code software based on requirements document which is their "own" understanding of the requirements and may not actually be what the client needs from the software.
- Requirements changes during the course of the project may not be communicated effectively to the developers.
Acceptance Testing and V-Model
In VModel, User acceptance testing corresponds to the requirement phase of the Software Development life cycle(SDLC).
Prerequisites of User Acceptance Testing:
Following are the entry criteria for User Acceptance Testing:
- Business Requirements must be available.
- Application Code should be fully developed
- Unit Testing, Integration Testing & System Testing should be completed
- No Showstoppers, High, Medium defects in System Integration Test Phase -
- Only Cosmetic error is acceptable before UAT
- Regression Testing should be completed with no major defects
- All the reported defects should be fixed and tested before UAT
- Traceability matrix for all testing should be completed
- UAT Environment must be ready
- Sign off mail or communication from System Testing Team that the system is ready for UAT execution
How to do UAT Testing
UAT is done by the intended users of the system or software. This type of Software Testing usually happens at the client location which is known as Beta Testing. Once Entry criteria for UAT are satisfied, following are the tasks need to be performed by the testers:
- Analysis of Business Requirements
- Creation of UAT test plan
- Identify Test Scenarios
- Create UAT Test Cases
- Preparation of Test Data(Production like Data)
- Run the Test cases
- Record the Results
- Confirm business objectives
Step 1) Analysis of Business Requirements
One of the most important activities in the UAT is to identify and develop test scenarios. These test scenarios are derived from the following documents:
- Project Charter
- Business Use Cases
- Process Flow Diagrams
- Business Requirements Document(BRD)
- System Requirements Specification(SRS)
Step 2) Creation of UAT Plan:
The UAT test plan outlines the strategy that will be used to verify and ensure an application meets its business requirements. It documents entry and exit criteria for UAT, Test scenarios and test cases approach and timelines of testing.
Step 3) Identify Test Scenarios and Test Cases:
Identify the test scenarios with respect to high-level business process and create test cases with clear test steps. Test Cases should sufficiently cover most of the UAT scenarios. Business Use cases are input for creating the test cases.
Step 4) Preparation of Test Data:
It is best advised to use live data for UAT. Data should be scrambled for privacy and security reasons. Tester should be familiar with the database flow.
Step 5) Run and record the results:
Execute test cases and report bugs if any. Re-test bugs once fixed. Test Management tools can be used for execution.
Step 6) Confirm Business Objectives met:
Business Analysts or UAT Testers needs to send a sign off mail after the UAT testing. After sign-off, the product is good to go for production. Deliverables for UAT testing are Test Plan, UAT Scenarios and Test Cases, Test Results and Defect Log
Exit criteria for UAT:
Before moving into production, following needs to be considered:
- No critical defects open
- Business process works satisfactorily
- UAT Sign off meeting with all stakeholders
Qualities of UAT Testers:
UAT Tester should possess good knowledge of the business. He should be independent and think as an unknown user to the system. Tester should be Analytical and Lateral thinker and combine all sort of data to make the UAT successful.
Tester or Business Analyst or Subject Matter Experts who understand the business requirements or flows can prepare test and data which are realistic to the business.
Following points needs to be considered to make UAT Success:
- Prepare UAT plan early in the project life cycle
- Prepare Checklist before the UAT starts
- Conduct Pre-UAT session during System Testing phase itself
- Set the expectation and define the scope of UAT clearly
- Test End to End business flow and avoid system tests
- Test the system or application with real-world scenarios and data
- Think as an Unknown user to the system
- Perform Usability Testing
- Conduct Feedback session and meeting before moving to production
There are several tools in the market used for User acceptance testing and some are listed for reference:
Fitness tool: It is a java tool used as a testing engine. It is easy to create tests and record results in a table. Users of the tool enter the formatted input and tests are created automatically. The tests are then executed and the output is returned back to the user.
Watir : It is toolkit used to automate browser-based tests during User acceptance testing. Ruby is the programming language used for inter-process communication between ruby and Internet Explorer.
Some Example Guidelines of UAT
- Most of the times in regular software developing scenarios, UAT is carried out in the QA environment. If there is no staging or UAT environment
- UAT is classified into Beta and Alpha testing but it is not so important when software is developed for a service based industry
- UAT makes more sense when the customer is involved to a greater extent
- In Software Engineering, Full form of UAT is User Acceptance Testing.
- In Software Engineering, UAT stands for User Acceptance Testing.
- UAT is one of the many flavors of testing that has emerged over last twenty-five years.
- With UAT, the client can be sure "What to expect" from the product rather than assuming.
- The benefit of UAT is that there will be no surprises when the product is released to the market.