Speechace Speaking Test
  • Speechace speaking test documentation
    • Use cases
    • Test development
    • Test reliability
    • Test customization
    • Audio/Video recording
    • Usage with children
    • Usage and demographics
  • Getting Started
    • Sign up and create a workspace
    • Invite team members
    • Create an assessment
      • Clone from Library
      • Assessment with custom questions
    • Invite test takers
    • Review Reports
  • Speechace Workspaces: create, manage, and share speaking assessments
    • Create multiple workspaces
    • Switch between workspaces
    • Collaborating in a Workspace
      • Invite team members to a workspace
        • Accept a workspace invitation
      • Role-based access
    • Creating Assessments
      • Clone Assessments
        • Cloning from the Library
        • Clone a single assessment
      • Create new custom assessments
        • Select avatar and language
        • Custom assessment configurations
          • Configuration panel
          • Types of questions
            • Open-ended
            • Read-aloud
            • Task Achievement
            • Record Only
            • Writing
              • Describe image
              • Essay Writing
          • Weights, Max Scores, Timers
      • Rubrics (supported+default)
      • Audio or video assessment
      • Score settings
    • Manage existing assessments
      • Invite test-takers to take an assessment
      • Review scores
      • Edit assessment configurations
      • Edit assessment questions
      • Set up email notifications for completed tests
      • Clone an existing assessment
      • Move an assessment
      • Delete an assessment
      • Add more activities within an existing assessment
    • Customize avatars
      • Edit Avatar
        • Versioning
        • Change avatar and language
        • Edit avatar narration
        • Change Avatar Background
        • Upload Custom Videos
      • Generate avatar
      • Apply avatar
    • Manage tags of assessment results
      • Add new tags
      • Edit or Delete tags
    • Sharing individual activities within an assessment with test-takers
    • Sharing assessments with candidates
    • Inviting candidates to take an assessment
    • Usage tracking
    • Upgrade your plan
    • Embedding assessments in other apps and websites
      • oEmbed integration for Speechace speaking test
        • Receiving test results on specified callback
          • Results callback to 3rd party application backend
            • Export report in json
          • Test completion notification to 3rd party app front-end
      • iframe integration for Speechace speaking test
  • Detailed test report
  • Test taker guide
    • Test-taker's view of Scores
Powered by GitBook
On this page
  1. Speechace Workspaces: create, manage, and share speaking assessments
  2. Embedding assessments in other apps and websites
  3. oEmbed integration for Speechace speaking test
  4. Receiving test results on specified callback

Test completion notification to 3rd party app front-end

When 3rd party apps embed the speaking test in a child iframe, they often need to know the test completion status so that users can be shown ancillary UX such as a Next or Continue button. One way to determine test completion status is to query the 3rd party app backend to check if user has completed the test. Alternatively, 3rd party app front-ends can also listen to a test completion status event, which is raised every time the speaking test is loaded in a child iframe.

To listen to the test completion status event, the 3rd party app can listen to events in the parent (iframe host) window using the below javascript event listener:

window.addEventListener('message', function(event) { 
    console.log("Message received in parent", event); }
    );

Now whenever the speaking test is complete, the speaking test child iframe raises an event to the parent window using the below javascript code:

window.parent.postMessage('speechaceActivityComplete', "*").

Based on the above listener implementation, this will trigger the following console message in the parent's browser console window:

MessageEvent { isTrusted: true, data: 'speechaceActivityComplete', origin: 'https://speak.speechace.co', lastEventId: '', source: global, … }

Now 3rd party apps can further enhance the listener to take custom action in their front-end.

PreviousExport report in jsonNextiframe integration for Speechace speaking test

Last updated 1 year ago