This Season
 

How to Write a Software Test Script

Software testing is one of the most important parts of the development life cycle. In basic terms, a test script is a set of instructions that is executed and documented to ensure the correct functionality of a software system. Test scripts need to be complete and thorough, but simple enough so that any average person can follow the steps. This article focuses on how to write an effective test script, with some examples at the end for reference.

Related Searches:
    Difficulty:
    Moderately Easy

    Instructions

      • 1

        Create a column in the test script for the step number. The steps are usually executed in sequential order (Step 1, Step 2, Step 3, etc.), but it is possible to skip around and/or refer back to a previous step if necessary.

      • 2

        Create a column in the test script for the step instruction. Instructions must be specific, but clear enough so that anyone can understand them. If an instruction contains a phrase with a conjuction, ("and then...", "or...", "but if..."), consider splitting it into two smaller steps.

      • 3

        Create a column in the test script for the expected result. Expected results describe the correct functionality and are typically affirmative statements. In other words, say, "The file is saved" instead of, "The file should be saved".

      • 4

        Create a column in the test script for the actual result. This field can contain detailed written results, or it can take the form of a simple Pass/Fail check.

      • 5

        Create a column in the test script for additional comments. This field is reserved for relevant specifications, modifications that were made to a certain step, explanations as to why a step failed, etc.

      • 6
        Test Script Example #1

        Example #1: A (somewhat realistic) test script for making text bold in Microsoft Word 2003. Its steps are executed sequentially and it uses the Pass/Fail check in the expected results.

      • 7
        Test Script Example #2

        Example #2: A (somewhat unrealistic) test script for preparing milk and cookies for Santa on Christmas Eve. Its steps are executed sequentially, although a reference to a previous step is made. It uses the Pass/Fail check, and contains an explanation as to why the final step failed.

    Tips & Warnings

    • Test scripts can take on different forms. Some people prefer the flexibility of a standard text document (such as Microsoft Word), while others prefer the structured row/column format of a spreadsheet (such as Microsoft Excel).

    Related Searches

    Read Next:

    Comments

    • mitul6285 Dec 16, 2008
      This is nice to know about Test Script but i am looking for more details on this. thanks for this. but could you please get some more information on this. Thanks.

    You May Also Like

    • How to Write a Usability Test Script

      Usability testing is a crucial step in product development. Without a plan, however, the data you collect from testing may have very...

    • How to Write Test Script Training

      Testing is commonplace in a number of industries, as products and services are tested all the time to verify whether the product...

    • How to Write a Radio Script

      Learning how to write a radio script is critical for proper execution of a radio performance. The script must include various cues...

    • How to Write Test Scripts

      When writing test scripts, it can be beneficial to buy screenwriting software, such as Final Draft or Movie Magic. Upload templates on...

    • How to Write a Script in Linux

      When you're working in a Linux environment, you often need a script to complete a task for you, interact with a user...

    • How to Test Internet Code

      Hyper Text Markup Language, known more commonly as HTML, is the language of the Internet. It's used to set forth all the...

    • MCAT Test Score Explanation

      The Medical College Admission Test (MCAT) consists of four sections. Three of the sections—physical science, verbal reasoning and biological sciences—are ...

    • How to Test Java Script by Using HttpUnit

      The HttpUnit library is a group of functions and properties you can use to request website data from your JavaScript code. The...

    • HTML & CGI Tutorial

      CGI (Common Gateway Interface) scripts are used in conjunction with HTML to create dynamic web pages. CGI scripts can be written in...

    • How to Make a Test Plan for Software

      A proper test plan is the only way that you can be truly sure that the software you have developed functions properly...

    • How to Write a Test Plan for Software Development

      Testing is one of the most important activities of software development. It validates the purpose, process, and performance of the new software....

    • How to Write a Script in Windows XP

      Formatting a script in the correct format is a key for any aspiring playwright or screenwriter. Having a script in the correct...

    • How Do I Test a PHP File?

      PHP is an open source scripting language that's most often used for Web-based applications, but can also be used from the command...

    • How to Write a Software Test Plan

      Writing a software test plan involves deciding what things to test of the new software, on what hardware and in what stages....

    • How to Use Case Structure With Bash Scripting

      The Case structure of the Bash shell scripting language performs the task of controlling logic flow. The logic flow can also be...

    • How to Test Fonts Online

      The ability to display certain fonts on a web page largely depends on the fonts that are installed on your computer. How...

    • How to Write an Animation Script

      Animation and standard screenwriting have a lot of similarities, but a few key differences make the process different. While many regular screenplays...

    • How to Write a Manual Test Plan

      While there are numerous automated testing tools for software applications, manual testing will always be required as well. Test plans include a...

    • How to Test FBML on Sandbox

      Facebook Markup Language is a set of API references and tools that allows you to create applications and page templates that integrate...

    Follow eHow

    Related Ads