Title: Lab 4
Course: Special Topics in Computer Programming (TEMPLATE) > Section: Competency Modules

Check schedule for due date

Objective:

In this lab you will use Robot Framework scripting to implement rules for testing the names of highways in the state of Texas.

Steps for success:

1. Study the attached file "TxDOT Highway Naming.pdf" to see all of the valid highway abbreviations in the state of Texas.  Note that every highway name begins with two capital letters (eg: US, TX, RR, FM, etc.)  Assume that all highways in Texas have 2, 3 or 4 numbers following the first two capital letters.

2. You are provided a Python module that implements the rules for naming highways in Texas (naming.py). The Python module already has the “parsing” code implemented to separate the first two characters (the highway names) and the last 2, 3 or 4 characters (the highway number).

3. A description of how to construct the test cases along with some sample test cases used by the Python scripting are contained in a file named “lab4.rst”.  Note that the expected result is determined by the scripting and a “passing test case” can be established containing incorrect or “failing” data.  This is extremely important as it is easier to analyze results that are all expected to “pass”. Please refer to the “Truth Table for Lab4” to understand how an expected failure can be considered passing, as well as the test cases provided that are coded that way.  ALL OF THE CASES YOU ADD SHOULD BE SET UP TO EXPECT TO PASS, even if they are testing for a failure.

4. Your assignment it to add FIVE additional scripts to verify Cases 4, 5, 7, 8 and 9 in the Truth Table.  It is STRONGLY recommended that you add one test case at a time then execute the script.

5. To execute these test cases, you need to unzip and upload the attached Lab4.zip file using Robot Framework.  You execute the test scripts with the command “pybot /path/lab4.rst”, Since you will be executing this command frequently, you may find it easier to execute this command from within the “terminal window”.  Refer to the attached file “Terminal Window.pdf”.

6. When you have finished testing, submit both your lab4.rst file and a copy of the actual results from Robot Framework.

Attached Files:
- Lab4.zip
- TxDOT Highway Naming(1).pdf
- Terminal Window(6).pdf
- Truth Table(1).pdf