Design black box test suit for :-(software engineering question) i)a function th
ID: 3736742 • Letter: D
Question
Design black box test suit for :-(software engineering question)
i)a function that checks whether a character string(of upto twenty five characters in length) is a palindrome
ii)a function that takes the name of the book as input and searches a file containing the names of the books available in the Library and displays the details of the book if the book is available in the library otherwise displays the message "book not available"
iii)a program that accepts upto ten simultaneous linear equations in up to ten independent variables and displays the solution
Explanation / Answer
Hi,
Ans i)
Below are the test cases that needs to be executed-
a) Verify if the user enters a string which has 26 characters the program should display the error message -" The entered string should be
lesser than 26 characters".
b) Verify if the user enters a string which has 25 characters the program should display the pallindrome of the number.
c) Verify if the user enters a string which has 24 characters the program should display the pallindrome of the number.
d) Verify if the user does not pass a string the program should display ans error which states that - user should pass atleast one
string to generate its pallindrome.
e) Verify if the user passes a number instead of string th program should display an error which states that- " User should pass string to generate
pallindrome
Ans ii)
Below are the test cases that needs to be executed-
a) Verify if the user enters a book name which is not available in the library the program should display an error - " book not available".
b) Verify if the user enters book name which exists in the library then the program should display that book is available.
c) Verify that if the user pass a part of book name to search then the program should dipslay display an error - " book not available".
Ans iii)
Below are the test cases that needs to be executed-
a) Verify if the user enters 11 linear equations then the program should display an error to display a message for the user that the number
of equations entered are more than 10.
b) Verify if the user enters 10 linear equations then the program should display the solution of the equations.
c) Verify if the user enters 10 or lesser number of equations but the number of variable those equations contain are 11 then the program should display
and error message that shows that user has entered more than 10 independent variables.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.