Marek
06/09/2023, 9:03 AM/profile expects a query parameter code and returns a user profile object. User can be in one of three statuses: new, lead, and user. When it’s new , the profile must have emailAddress property. If it’s lead or user there must be also phoneNumber and username properties present in the response. There are also optional fields like firstName that might be null or a string. Now, the questions are:
1. Should we have only one interaction for all the user statuses or an interaction for each status separately (wouldn’t it be testing a business logic?)
2. Should we have a separate interaction for the optional properties to be given (not null)?
I hope that’s a good place for such questions, Best regardsBoris
06/12/2023, 3:07 AMBoris
06/12/2023, 3:10 AM