Hi,
Depending on whether the user is taking the course or not, response may or may not have the tag called “Course”.
How do I test to make sure for User GAB34, Course tag is there and for user GAB35 tag “Course” is not listed in the response?
Course names can be different so I can’t search by course names, I want to verify the tag.
Thanks in advance!
<Return>
<UserId>**GAB34**</UserId>
<UserTitle>TEST TEST</UserTitle>
<UserCode>AAB</UserCode>
<UserCreateDate>2022-03-22</UserCreateDate>
<DepDate>2012-11-05</DepDate>
<Description1>GET User 1</Description1>
<Course>
<String>APITesting</String>
</Course>
<Age>23</Age>
</Return>
<Return>
<UserId>**GAB345**</UserId>
<UserTitle>TEST TEST</UserTitle>
<UserCode>AAB</UserCode>
<UserCreateDate>2022-03-22</UserCreateDate>
<DepDate>2012-11-05</DepDate>
<Description1>GET User 1</Description1>
<Age>23</Age>
</Return>