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

Comprehensive Multisplit #302

Closed
4 tasks
abheek9 opened this issue Feb 27, 2024 · 1 comment · May be fixed by #334
Closed
4 tasks

Comprehensive Multisplit #302

abheek9 opened this issue Feb 27, 2024 · 1 comment · May be fixed by #334
Assignees

Comments

@abheek9
Copy link
Contributor

abheek9 commented Feb 27, 2024

Comprehensively Testing Multisplit

Context:

We have a large number of journey features now, and need to make sure they are working as intended. One way end to end tests can help us is with an adapted real life journey. In this test, we will exhaustively test a multi split in a journey with 5 branches each on a different user attribute type.

To Do list:

  • in the test after signing up, upload a csv using the test helper function previously used, and using this csv:
    correctness_testing.csv

  • use simulatedEvents to fire 5 events to the events endpoint, if this is done correctly you will see the results in the event tracker:

Screenshot 2024-02-27 at 12 16 04 AM You will need to use the accounts api key found here: Screenshot 2024-02-27 at 12 19 42 AM the request will look something like but with a different url, api, key and event name/payload:
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://api.laudspeaker.com/events/',
  'headers': {
    'Authorization': 'Api-Key 9mm0MUF6f5du4jTry9nK7kCreJ6t2Y1fZvtezS04',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "correlationKey": "user_id",
    "correlationValue": "[example_user_id]",
    "source": "custom",
    "event": "your_event",
    "payload": {
      "example": 4
    }
  })

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

  • the events fired should correspond to 5 users from the csv that was uploaded
  • Please create a cypress test that recreates this journey from scratch
Copy link
Contributor

gitstart-app bot commented Feb 27, 2024

Here is the GitStart Ticket for this issue: https://clients.gitstart.com/laudspeaker/8881/tickets/LAUD-302

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants