Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Add Test Cases for get _ src When designing test cases for stet _ sre, look very closely at the precondition. It says that the
Add Test Cases for getsrc
When designing test cases for stetsre, look very closely at the precondition. It says that the string must be a
valid response from the web service. This is an extremely restrictive precondition, so it limits the possible test
cases significantly. However, notice the comment about colons in the specification. That will be important for
your test cases.
Check the Test cases
You may run this test multiple times.
def getafe jasen :
st
Given a JSON stefing provided by the neb servied, Ehis function futurad the atring
if ehe jat is
On the etier hand the jagn is
then this function returat the epty atring
The atb server does NOT specify the number of spaces after the colers. The JSON
is alae valid in abditien to the exaples abowe
Precondition: jaon a string provided by the web service only enforce the type
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