Question: Consider a utility that recursively iterates over all files and subdirectories starting from a specified directory, searching for a stated file extension, and prints a

Consider a utility that recursively iterates over all files and subdirectories starting from a specified directory, searching for a stated file extension, and prints a list of all files with that extension:

getFileList (directory, fileExtension)

Each file in the returned list is printed with its full path. All files with the stated extension in the stated directory or any of its subdirectories are contained in the list. If you wish to make any additional assumptions about the functionality of this utility, state them in your answer.

Design system-level tests for this feature. 1. Based on these parameters and relevant factors that can influence execution, identify the choices that you control when testing. 2. For each choice, identify a set of representative values that could lead to different outcomes of the function.

For input that is invalid or could cause an error, do not just write invalid - be specific about what kind of input you would apply to get a particular outcome.

Hint: Choices = what you control about the input when testing. Representative values are the types of values you would choose for each choice to get particular outcomes of the functionality. For instance, you control the contents of the directory searched, and some representative values might include "no files with the extension, 1 file with extension, 2+ files with extension"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!