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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started