It is hard to test out different scenarios in Glific due to the number of systems involved. As part of this story, we will create the different possible flows through Whatsapp and push them into integration tests within integration-service so that we are aware of the different possibilities and our response to them
Acceptance criteria
Different possible combinations are available as an API response of Glific (See Sample Extracted Response in the design document
Scenarios are created either directly through Whatsapp, or through modification of this API response. Look at the flow result details on the design document or the Glific Flow variable and Glific Flow variable options in the mapping document for details on possible response options
There is an integration test that goes through these scenarios and verifies the response of the integration service for all these scenarios
Scenarios
The same flow result coming in multiple times
Options can be responded by text, so you can have the gender as "female", "Female" or "FEMALE". Details need to come from the "category" field
Sample response provided below with multiple options
Introduction
It is hard to test out different scenarios in Glific due to the number of systems involved. As part of this story, we will create the different possible flows through Whatsapp and push them into integration tests within integration-service so that we are aware of the different possibilities and our response to them
Acceptance criteria
Different possible combinations are available as an API response of Glific (See Sample Extracted Response in the design document Scenarios are created either directly through Whatsapp, or through modification of this API response. Look at the flow result details on the design document or the
Glific Flow variable
andGlific Flow variable options
in the mapping document for details on possible response optionsScenarios
sample_response.json