Following on from surfacing assessment results, we will take a further deep dive into how you can surface users' assessment responses to those individual questions. Again, providing you have uploaded your content to your platform in xAPI format, this will allow you to surface and build your visualisations to output those responses and see trends.
Below is an example of an xAPI statement stored in the LRS for a question answered by a user. The statement will contain the question asked and the answer given, which we will come to further down this guide.
Choose your widget
For this example, we are going to use the Pivot table.
Building your Data
To start populating your widget you will need to be working from the xAPI Data model. To get started lets first surface the users name by adding persona_name;
Next, we want to select the course_name;
Next, you want to surface the Activity_description (which is where the object data is stored) this will allow you to pull in the questions that have been asked within the xAPI content.
Using this sample question a user might be presented with, to answer;
Below is that same question stamped within the xAPI statement stored in your LRS;
"object": {
"objectType": "Activity",
"id": "https://learningplatform.streamlxp.com/xapi/activity/resource/1044682#/id/6744556a4bec019d0fd5f240",
"definition": {
"name": {
"en": "Treating a wound"
},
"description": {
"en": "Knowing how to properly treat and care for a wound or cut is essential to it healing properly. What should be done if you are treating wounds or cuts?Select three correct answers, then Submit."
},
"type": "http://adlnet.gov/expapi/activities/question",
You will see how the question is stored within the object with the object type of "Activity" and under the description is the actual question the user would answer.
At this stage it might be best to add a filter against the course_name by select the name of the course/LX your assessment is on. Otherwise without a filter you are going to be presented with all the verbs stored on the platform against each user.
Now, we want to add the answers provided by the user by pulling in Response (note this will be the responses given by the user);
Understanding your Responses
A users responses to questions will be captured in an xAPI statement stored in your LRS as shown below.
You will notice a correct answer will be shown as "success": true
"result": {
"score": {
"raw": 1
},
"success": true,
"completion": true,
"response": "2[,]3[,]4"
},
And an incorrect answer will be shown as "success": false
"result": {
"score": {
"raw": 0
},
"success": false,
"completion": true,
"response": "3"
},
To help you understand what the user has selected vs the correct answers, you should surface the actual correct responses by pulling in the field Correct;
At this stage your pivot table will look similar to the below;
- person_name = Users full name
- course_name = Name of course/ LX within your platform
- activity_description = The questions presented to the user
- responses = Answers selected by the user
- correct = Actual correct answers within your xAPI content
Renaming your row headers
Please note is it optional to which fields you wish to display and you can also update the heading names to something more meaningful using this guide.
You can also add further filters to your widget in order to filter the data which is more specific to your needs.