Home > Articles > Software Development & Management

  • Print
  • + Share This
This chapter is from the book

Testing Process Spheres

Let's look at each component of the testing process individually.

Test Planning

We'll begin our discussion of the testing process with test planning, the most important activity in the testing process. It involves assessing risk, identifying and prioritizing test requirements, estimating testing resource requirements, developing a testing project plan, and assigning testing responsibilities to test team members. These ingredients can be structured as a formal test plan or they can be developed individually and used at the appropriate times.

The traditional idea of a test plan is the who, what, when, where, how, and how long of the testing process. Since using Rational RequisitePro's capabilities, we have adjusted our thoughts on what a test plan is and how it is used. We can import the software requirements document into tools such as Rational RequisitePro and then develop test scenarios directly from such tools into a test plan that is constructed using the RUP test plan template, which we have modified extensively (see Figure 1.2). From the test plan scenarios, we can create test requirements. They can be constructed directly in the scenario tables in the test plan document, or they can be created in a separate test requirements document using the RUP template. From either of these documents, we can create a test requirements view that we can export to a Comma Separated Values (CSV) file. Then we can open the test requirements during testing in Microsoft (MS) Excel and update it online with the test results and import it back into RequisitePro. This is how we defined our manual testing process. We do not yet have this fully implemented, but have piloted it and it works very well.

The point is that we now see the test plan as a working document derived from software requirements and linked to test requirements and test results. It is a dynamic document used during testing. The old idea of test plan is that it is a planning document. It is a document that forces the tester to think about what he is going to do during testing. From this perspective, it becomes a document that, once the planning stage is finished, sits on the shelf. In our experience, very few people refer back to the test plan during test execution. In fact, we have worked in several companies where test plans were actually created after the fact. With our approach, the test plan is created up front, and it is updated when the software requirements are updated; subsequently, the updates are reflected in the test requirements, which can actually be used for testing. The test plan standard is based on a modified version of the template contained in RUP, which accompanies the Rational Suite TestStudio.

The following is how we defined the manual system testing process at one client organization. We have also piloted this and it works very well. From the test plan scenarios, we create test case requirements. They are constructed directly in scenario tables created in the test plan document, as well as in separate test requirements documents (requirements grids). From either of these sources, we can create test requirements views that can be exported to CSV files. For manual testing, we open the CSV files in MS Excel. We use the information to guide manual test execution activities, and we update it online with the test results. We import the updated files back into our automated tool for results analysis and reporting.

Figure 1.2 contains a modified version of the RUP test plan template document table of contents (TOC). The TOC has been simplified in that the number of testing types has been reduced to include only Function Testing, Business Cycle Testing, Setup and Configuration Testing, and User Interface Testing.

Figure1.2FIGURE 1.2 RUP Test Plan TOC with Modifications

The purpose of the test plan is to assemble the information extracted from the requirements/design documents into test requirements that can be implemented as test scenarios. The test scenarios are the portion of the test plan that will directly feed the development of test conditions, test cases, and test data.

Desktop tools such as MS Office and MS Project can be used to automate test planning and project management. For example, checklists created in MS Excel spreadsheets can be used to assess and analyze risk and to document test requirements; MS Project can be used to produce the project plan; MS Word can be used to create a formal test plan that ties it altogether. These documents are test-planning artifacts. Just as software development artifacts need configuration management, so do test objects.

Test Design

Test design includes identifying test conditions that are based on the previously specified test requirements, developing all possible functional variants of those conditions, divining the expected behavior(s) of each variant when executed against the application under test (AUT), and executing manual tests during the design process prior to test automation. The manual testing allows the test design engineer to verify that the test data are appropriate and correct for the automated test in which they will be used. It also allows the test designer to become a "human" tester who can identify errors automation might miss. Test design also embraces the layout of the test data that will be input to the AUT. When designing from a data-driven perspective, these same data also control the navigation of the automated test scripts. Last, the test scripts themselves have to be designed.

Designing the tests and the test data is the most time-consuming portion of the testing process. It is also the most important set of activities. If the tests do not test what the requirements have indicated, then the tests are invalid. If the test data do not reflect the intent of the tests, once again the tests are invalid. Test case design is so important that we have included a section in the appendices devoted to test design techniques and their use.

Test designers can use MS Excel to design and build the tests. If you use this approach, it is best to keep everything in a single workbook and to include one test conditions spreadsheet, one test data spreadsheet, and as many detailed test spreadsheets as are needed to adequately describe the environmental, pretest, and posttest activities that are related to each test. For manual testing, a test log should be constructed that will be used during test execution (used online, not as a printed test log). There are integrated tool suites available that support test data design and creation with mechanisms known as data pools. In all cases the data are stored as CSV files that can be read and interpreted by automated test scripts. Those data can be used for either manual or automated testing.

Test Implementation

Test implementation can be subdivided into Test Construction, Test Execution, Test Results Capture and Analysis, and Test Result Verification. We'll discuss each activity separately.

Test Construction Test construction is facilitated using the same set of tools that test design employs. The test data are constructed in a spreadsheet in the same workbook as the test conditions. Those data can then be exported to CSV files that can be used at test execution. When the tests are executed via an automated framework, test construction also includes writing the test scripts. Automated test scripts are software programs. As such, they have their own programming languages and/or language extensions that are required to accommodate software testing events. The scripting language is usually embedded in a capture/playback tool that has an accompanying source code editor. The flavors of the languages vary by vendor and, as the associated syntax/semantics vary, so does the difficulty of using a specific product. In addition, some vendors' scripting languages and their recording tools are more robust than others.

The more specialized the commands available as part of the language, the more control the test engineer has over the test environment and the AUT. Specialized tests are built into the languages as commands that, when executed, test specific items—for example, graphical user interface (GUI) object properties and data and window existence—and do file comparisons. Some of the built-in test cases are useful and most are very powerful for GUI testing, but they are not all useful for functional testing. We implement many of the tests through executing external test data (data that reflect the test requirements) and verification of the results. Those data control how the test script behaves against the application; the data contain values the test script uses to populate the target application input data fields.

The design and implementation of the test scripts is left to the script-writer. If there are no guidelines for developing test scripts, the scripts that are created will most likely be badly structured and each will be the product of the personality of the individual who coded it. We have seen this happen when several people on the test team were given specific sections of an application and asked to write automated test scripts for their portion. We even gave them basic templates as starting points and, still, no two were alike. We have written and implemented a set of automated test script writing guidelines that is described in Chapter 8.

If possible, test script coding should be completed in parallel with test data development. Using an approach such as Archer Group's CSDDT allows the test scriptwriters to work independently of the test data designers. This is doable because the data drive the test scripts. The scripts are designed and built to specifics that create a general test-processing engine that does not care about test data content.

It is very important to have test script coding conventions in use if the workload is spread across a number of scriptwriters. It is also important that the right personnel are assigned to this set of activities. We have found that test designers do not like coding test scripts and that test implementers do not enjoy designing and building test conditions and test data. In fact, they both do crappy work when their roles are reversed.

Script writing, as it is used here, is the coding of test scripts in a test tool's proprietary test scripting language, in one of the extant application programming languages such as Java or Visual Basic; in one of the standard scripting languages such as Perl, CGI, or VB Script; or in the operating system's command procedure language (for example, coding Unix shell scripts that execute test procedures). As far as test script writing is concerned, you really need people who enjoy programming. Bruce was an engineer who moved into the software industry as a programmer before becoming a test scriptwriter. That type of experience makes a person a natural test script-writer. Test script coding requires either prior programming experience or current training in programming concepts such as logic, syntax, and semantics. It also requires an eye for developing complex logic structures. Because of these requirements, don't expect nontechnical testers to write test scripts and, furthermore, don't expect them to be able to create effective test scripts using the capture/playback facilities most tool suites provide. Test scripts developed by that method are a maintenance nightmare.

Test Execution Test execution can be manual, automated, or automated-manual. It is common wisdom in the testing industry that manual tests and automated tests each find different classes of errors. Thus, the experts say that we should do both. We agree to a great extent—that to do full-blown manual system tests and then follow up with automated regression tests is a neat idea, but most testing efforts have the resources to do only one or the other. What we suggest is a combination of both where manual testing occurs in parallel with test case design and construction.

The test designers should have the application open as they design and construct the test data, and they should execute it against the application fea-ture(s) it is designed to test. This accomplishes two things. First, it performs a validation of the data that will eventually be used in the automated regression tests and, second, it implements manual functional (system-level) tests of each application feature prior to the automated regression tests. Many errors can and will be found during test case design and construction when this process is followed. We have successfully applied this approach.

Test Results Capture and Analysis For manual testing, a test log

should be developed and implemented online. At the very least it should be a spreadsheet in the same workbook where the test conditions and test data are stored. Ideally, a test results database is used as a central repository for permanent storage. This is the case when the tests are executed using capture/playback tools such as Rational Robot or Mercury Interactive's Win-Runner. The test results are trapped as they occur and are written to the repository where later they can be viewed and reports can be printed.

Bruce has developed an automated manual test script (using Rational Robot and the SQABasic language) that does this very thing for manual tests (this tool is fully described in Chapter 9). It displays the manual test scripts much as a teleprompter does, and each step in the script can be selected during test execution. When execution is completed, the test can be logged as pass, fail, or skipped. The manual test script is based on one that was published several years ago by the Phoenix Arizona SQA Users Group (13). It has been completely rewritten and enhanced to add custom comment entries in the test log. This test script is included with the utilities that are on the FTP site that supports this book. It can easily be adapted to scripting languages other than SQABasic.

Test Results Verification Test results verification can be accomplished either manually or through test automation. Manually eyeballing the results and making subjective assessments of correctness is one way of verifying the test results. Test results can further be compared to sets of expected output data values, compared to values that should have been created in database rows based on the transactions tested, and compared against stored files and reports.

Test results verification is a task ripe for automation. Test results should be captured in a test log that is stored in a test repository. The test log should store results from previous test runs that can serve as baseline behaviors with which to compare the current test results. For manual tests, the test log can be an MS Excel workbook where new spreadsheets are created for each new test iteration. It does not matter how the test results are stored. What is important is that comparisons can be made. If a baseline is not established, then the assessment of a pass or fail status is based on a guess at what the results should be. Being able to define and store baseline behaviors is an important advantage and a strong argument for automated testing.

Commercially available automated testing tool suites offer a variety of automated verification methods. For example, Rational Robot uses SQA-Basic, which has special test cases called verification points that can be used to trap AUT characteristics; these can then be used as baselines for future regression tests.

Test Reporting Test reporting is an essential part of the testing process because it documents the test results and their analysis. Two levels of reporting are required—a summary report should be generated for middle- and upper-level technical managers and for customers, and a detailed report should be compiled and presented to the development team members as feedback.

These reports should be presented in standard formats that can be edited and tweaked for each individual test project report. We have employed the reporting template that is in RUP's documentation, but you can create your own. Two versions of this report can be created—a summary report and a detailed report. You can also find templates and examples of test reporting on the World Wide Web.

An important reporting item is also defect tracking information. Defect tracking reports can be generated separately using tools such as Rational ClearQuest and/or MS Excel. Defect information should also be summarized and included in both the detailed and summary test evaluation reports. It is imperative to include a list of known defects that have not been addressed and that will be in the software upon its release. The information in the list should be grouped according to severity. Information such as this can be used to make intelligent release decisions, and help desk personnel can use it after the software goes into production.

  • + Share This
  • 🔖 Save To Your Account

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020