Thanks. While this works, the issue is that this kind of goes about offering a bad stress test, because in the console it only sends a single call, the suspend data.
SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1111111-1111111111----111111111111-1111111111111111-1111-11111111-1","questions":"","_isCourseComplete":true,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.core.lesson_status') value: completed
The devtools version sends a call every time for every component, which is much closer to what an actual course would do:
SCORM.data.set('cmi.core.lesson_location') value:
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----10-00-01000--0000000-0000000010----000000000000-0000000000000010-0000-00001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----10-00-01000--0000000-0000000010----100000000000-0000000000000010-0000-00001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----10-00-01000--0000000-0000000010----110000000000-0000000000000010-0000-00001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----10-00-01000--0000000-0000000010----110001000000-0000000000000010-0000-00001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----10-00-01000--0000000-0000000010----111001000000-0000000000000010-0000-00001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----10-00-01000--0000000-0000000010----111101000000-0000000000000010-0000-00001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----10-00-01000--0000000-0000000010----111111000000-0000000000000010-0000-00001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-00-01000--0000000-0000000010----111111000000-0000000000000010-0000-00001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-00-01000--0000000-0000000010----111111010000-0000000000000010-0000-00001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-10-01000--0000000-0000000010----111111010000-0000000000000010-0000-00001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-01000--0000000-0000000010----111111010000-0000000000000010-0000-00001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11000--0000000-0000000010----111111010000-0000000000000010-0000-00001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11000--0000000-0000000010----111111110000-0000000000000010-0000-00001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11000--0000000-0000000010----111111110000-0000000000000010-0000-10001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11000--0000000-0000000010----111111111000-0000000000000010-0000-10001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11000--0000000-0000000010----111111111100-0000000000000010-0000-10001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11000--0000000-0000000010----111111111110-0000000000000010-0000-10001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11100--0000000-0000000010----111111111110-0000000000000010-0000-10001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11110--0000000-0000000010----111111111110-0000000000000010-0000-10001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--0000000-0000000010----111111111110-0000000000000010-0000-10001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--0000000-0000000010----111111111110-0000010000000010-0000-10001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--0000000-0000000010----111111111111-0000010000000010-0000-10001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--0000000-0000000010----111111111111-0000011000000010-0000-10001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--0000000-0000000010----111111111111-0000011000000010-1000-10001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--0000000-0000000010----111111111111-1000011000000010-1000-10001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--0000000-0000000010----111111111111-1100011000000010-1000-10001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--0000000-0000000010----111111111111-1110011000000010-1000-10001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--0000000-0000000010----111111111111-1110011000000010-1100-10001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--0000000-0000000010----111111111111-1111011000000010-1100-10001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--0000000-0000000010----111111111111-1111111000000010-1100-10001100-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--0000000-0000000010----111111111111-1111111000000010-1100-10001110-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1000000-0000000010----111111111111-1111111000000010-1100-10001110-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1000000-0000000010----111111111111-1111111000000010-1100-10001111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1000000-0000000010----111111111111-1111111000000010-1110-10001111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1000000-0000000010----111111111111-1111111100000010-1110-10001111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1000000-0000000010----111111111111-1111111110000010-1110-10001111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1000000-0000000010----111111111111-1111111110000010-1110-11001111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1000000-0000000010----111111111111-1111111111000010-1110-11001111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1000000-0000000010----111111111111-1111111111000010-1110-11101111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1000000-0000000010----111111111111-1111111111100010-1110-11101111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1000000-0000000010----111111111111-1111111111100010-1111-11101111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1000000-0000000010----111111111111-1111111111110010-1111-11101111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1000000-0000000010----111111111111-1111111111111010-1111-11101111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1000000-0000000010----111111111111-1111111111111010-1111-11111111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1000000-0000000010----111111111111-1111111111111110-1111-11111111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1100000-0000000010----111111111111-1111111111111110-1111-11111111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1110000-0000000010----111111111111-1111111111111110-1111-11111111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1111000-0000000010----111111111111-1111111111111110-1111-11111111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1111100-0000000010----111111111111-1111111111111110-1111-11111111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1111110-0000000010----111111111111-1111111111111110-1111-11111111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1111111-0000000010----111111111111-1111111111111110-1111-11111111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1111111-0000000110----111111111111-1111111111111110-1111-11111111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1111111-1000000110----111111111111-1111111111111110-1111-11111111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1111111-1100000110----111111111111-1111111111111110-1111-11111111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1111111-1110000110----111111111111-1111111111111110-1111-11111111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1111111-1111000110----111111111111-1111111111111110-1111-11111111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1111111-1111100110----111111111111-1111111111111110-1111-11111111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1111111-1111110110----111111111111-1111111111111110-1111-11111111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1111111-1111111110----111111111111-1111111111111110-1111-11111111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1111111-1111111110----111111111111-1111111111111111-1111-11111111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1111111-1111111111----111111111111-1111111111111111-1111-11111111-1","questions":"","_isCourseComplete":false,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.suspend_data') value: {"lang":"en","a11y":false,"completion":"----11-11-11111--1111111-1111111111----111111111111-1111111111111111-1111-11111111-1","questions":"","_isCourseComplete":true,"_isAssessmentPassed":false}
SCORM_API_wrapper.js:914 SCORM.data.set('cmi.core.lesson_status') value: completed
So, great code but too good, as we want it to be inefficient to tax the server.
Thanks though.