how to improve test case efficiency

10
* How to improve test case efficiency?

Upload: bugraptors

Post on 08-Feb-2017

13 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: How to improve test case efficiency

*How to improve test case efficiency?

Page 2: How to improve test case efficiency

In software programming and development world, best software developers always write their unit test cases first keeping in mind the functional requirements before starting their coding phase which improves their coding quality and efficiency.Relatively, software testers should write their test cases during the earlier stage of the software development life cycle and it is best to write test cases during the software requirements phase. The QA manager or test manager should gather and prepare the maximum possible documents as per the list given.

Page 3: How to improve test case efficiency

*Document Collection for Test Case Writing

1. User Requirements Document: A document which lists the user profiles, user environment, business process and interaction with other systems, functional requirements, non-functional requirements, replacement of existing systems, installation and licensing requirements, security requirements, usability, concurrent and performance requirements etc.2. Business Used Case Document: A document which gives the details of the used case scenarios of the functional requirements from the business view point. This document covers the business goals, system, post-conditions, pre-conditions, alternate flow, options, basic flow, exceptions of each and every business flow of the system under requirements.

Page 4: How to improve test case efficiency

3. Functional Requirements Document: A document which gives the details about the functional requirements of every feature for the system under requirements. Usually, functional requirements document works as a common repository for both testing and development team as well as the project stakeholders including the customers for the dedicated necessities which should be treated as a most vital document for any software development.4. Software Project Plan (Optional): A document which defines the details of the objectives, milestones, activities,  organization structure, strategy, progress monitoring, risk analysis, assumptions, project, constraints, training requirements, client responsibilities, project schedule etc.

Page 5: How to improve test case efficiency

5. QA / Plan: A document which details the quality documentation standards, change control mechanism, critical modules, functionalities, configuration management system, testing plans, management system, defect tracking, acceptance criteria, management system. The test plan document is used to recognize the features not to be tested, features to be tested, testing team interface and their distributions, testing schedule, resource requirements, test coverage, test deliverables, test case writing, bug reporting and tracking mechanism, pre-requisite for test execution, test metrics etc.

Page 6: How to improve test case efficiency

Let’s see how to create test cases proficiently for a simple “Login” screen. The testing methodology will be nearly the same even for multifaceted screens with critical features and more information.1. The first method for any test case process will be to get a screen sample. This may not be available for some of the functionalities and depends on the complexity of a design sample in the earlier stages of development. But, if an SRS(Software Requirements Specification) document is accessible for the project, most of the screen samples are developed by the project team. These kinds of screens make the tester’s job simpler and increase the efficiency of test cases.

* Creating Sample Test Cases

Page 7: How to improve test case efficiency

2. Next are the functional requirements specifications (FRS). Depends on the organization process, it will be accessible in a set of multiple documents. So, choose the best document for writing test cases, either it may be functional requirements specifications, user requirement document or even a SRS document, if it can be understood easily by the testing team which will give the complete functional flow of the particular feature to be tested.3. Once the functional specifications and screen prototypes are in place, the tester should start writing test cases with the following criteria and approach:a) Functional test cases: Hyperlinks, Login button, Forgot Password, and Registration are dynamic fields which need user interaction by clicking on the controls which will do some action afterwards.

Page 8: How to improve test case efficiency

b) UI test cases: There are dynamic controls and static controls available for the feature to be tested. For example, in the login screen, the ‘Password’ & ‘User Name’ texts are static fields which need no user interaction and are just for displaying the text.c) Process test cases: This is related to the process linked with the functionality and the feature.d) Database test cases: Once the user enters the password and user name, the test cases may be written to check the connected database for whether the password & user name is checked in to the right table and database and also if the user has the authorization to login to the application under test.

Page 9: How to improve test case efficiency

4. Last but not the least, always remember the “BAOE Logic” which means i) Basic Flow ii) Alternate Flow iii) Optionsiv) Exclusions for the whole coverage of the feature to be tested and functional flow. Every concept should be applied with both the negative and positive test cases.

Page 10: How to improve test case efficiency