Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create tests for different scenarios in the LAHI Glific flow #95

Open
Tracked by #24
vinayvenu opened this issue Oct 5, 2023 · 1 comment
Open
Tracked by #24

Create tests for different scenarios in the LAHI Glific flow #95

vinayvenu opened this issue Oct 5, 2023 · 1 comment

Comments

@vinayvenu
Copy link
Member

vinayvenu commented Oct 5, 2023

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 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

sample_response.json

@vinayvenu vinayvenu added the LAHI label Oct 5, 2023
@github-project-automation github-project-automation bot moved this to New Issues in Avni Product Oct 5, 2023
@vinayvenu vinayvenu moved this from New Issues to Focus Items in Avni Product Oct 5, 2023
@vinayvenu vinayvenu changed the title Test strategy for different scenarios of LAHI flows Create tests for different scenarios in the LAHI Glific flow Oct 20, 2023
@vinayvenu vinayvenu moved this from Focus Items to In Analysis Review in Avni Product Oct 20, 2023
@vinayvenu vinayvenu moved this from In Analysis Review to Analysis Complete in Avni Product Oct 23, 2023
@vinayvenu vinayvenu moved this from Analysis Complete to Ready in Avni Product Oct 23, 2023
@mahalakshme mahalakshme moved this from Ready to Finalized for the upcoming release in Avni Product Oct 24, 2023
@vinayvenu vinayvenu moved this from Finalized for the upcoming release to Ready in Avni Product Oct 24, 2023
@vinayvenu vinayvenu moved this from Ready to In Progress in Avni Product Nov 8, 2023
@mahalakshme mahalakshme moved this from In Progress to Ready in Avni Product Nov 8, 2023
@petmongrels
Copy link

  • moving this back to analysis complete.
  • cannot think of easy way of testing without mocking mapping database. unit test can cover granular scenario.

@petmongrels petmongrels moved this from Ready to Analysis Complete in Avni Product Nov 10, 2023
@mahalakshme mahalakshme removed the LAHI label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants