In this assignment we will ask you to build a test plan for a small functions flow from our SDK.
The SDK team at Ludeo has build a library that allows our partners to integrate with us. Help the team get confidence in release and further development by automatically testing the most critical aspects of these functions by doing the following:
Compile a list of several testable flows, cases, or scenarios. This doesn't have to cover every possible real-life case; please focus on what you think is most fundamental.
Our integrators are trying to capture information in their game using our provided library and store it on our backend platform. The library exposes 3 functions:
StartTracking
takes in the user id as integer. For exampleStartTracking(123)
.SetValue
takes in a key (string) and value, which can be either an integer, a string or a boolean. For exampleSetValue("MyHP", 543)
orSetValue("PlayerName", "Jane")
.Upload
uploads the user id and key-value pairs in a POST to the endpoint https://eohfzgy928n03qu.m.pipedream.net. This function returns the web response. For exampleUpload()
will send{"UserId": 123, "MyHP": 543, "PlayerName": "Jane"}
.
They need to be called in this order with StartTracking
and Upload
to be called once and SetValue
multiple times in between. Create a test plan for this flow.
Your test plan will be evaluated on it's completeness and clarity. Feel free to include code example or a working code solution in a language of your preference.
Please organize, design, test, and document your code as if it were going into production - then push your changes to the master branch.
Have fun coding! 🚀