Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
