test submitting two sets of xAPI statements to LRS

nixthenext
nixthenext Community Member Posts: 75
I have an xAPI-enabled course with a graded test, which has randomly selected pages and a test results page. When the user completes this test, they should be taken to the first page of the course. I've selected "The published course will report Test/Survey question interaction to the LRS" in the publish window.

It's sending two sets of statements to the LRS - so each time the learner completes the test, there are two "passed" or "failed" statements, and statements for each of the questions are also submitted twice. It looks like the set is being submitted once when the results page loads, and once when the learner clicks OK on the last page.

I've tried to take off the "submit test" action on the OK button on the last page, but then the user is stuck. I can't add a Go To action that takes the user to the first page of the course because this is not allowed in a test.

Anyone else have this experience, or have any advice?

Comments

  • tea
    tea Community Member Posts: 128
    Hi @NixTheNext I haven't seen or heard of this issue, but I'll see if I can recreate this error. What version of Lectora are you using, and can you provide a copy of your title?
  • carlfink
    carlfink Community Member Posts: 842 ☆ Superstar ☆
    You can open the AWT file in a text editor. It's just an XML file. If you search for "submittest" you might find there's a duplicate.

    MAKE A BACKUP OF THE AWT FILE before you make any changes!

    That said, it isn't too difficult if you're at all familiar with XML, and I have found several corrupted AWT files in the years I've used Lectora, where the only way I was able to fix problems was to remove "unanchored" XML statements that no longer connected to any GUI object in the development environment, but did affect the published course.
  • nixthenext
    nixthenext Community Member Posts: 75
    No duplicate submittest actions (but thanks for the tip!)... I think this is a problem with when statements are sent to the LRS and when the test results are calculated. Since this test has a Results page, the results have to be calculated when the last page displays... but then the 'Done' button at the end of the test also calculates the results - if the LRS statements are connected to processing the test, that would explain why they're being sent twice.

    Does anyone else have this experience with a test with results double-submitting xAPI statements?

     

    @tea - I'm using 18.0 - would love to see what happens when you recreate, thank you!
  • tea
    tea Community Member Posts: 128
    @NixTheNext I tried with a simple title using v18.2.1 and 17.1.8, and I am not noticing the duplicate statements for my questions. I do see a statement saying I passed Test 1, and another saying I passed my title (which I believe is OK), but I only see the questions reported once.

    Would it be possible to get a copy of your title?
  • carlfink
    carlfink Community Member Posts: 842 ☆ Superstar ☆
    You might consider turning on debugging. You can then monitor exactly when score variables are set and sent. As an experiment, you could add an Action to the Done button that changes the score, and see whether that new score is sent to the LMS.
Sign In or Register to comment.

So You Wanna Be An eLearning ROCKSTAR?

We're all fans of eLearning here! Want to become an eLearning ROCKSTAR? Just click on one of the buttons below to start your rocking journey!