You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
You will need to use the accounts api key found here:
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
The text was updated successfully, but these errors were encountered:
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 theevents
endpoint, if this is done correctly you will see the results in the event tracker:The text was updated successfully, but these errors were encountered: