Default value : {
withLoadingModeLazy: [
{ name: 'tcs.testStatus$', value: 'INIT' },
{ name: 'tcs.totalLoadingProgress', value: 0 },
{ name: 'tcs.testStatus$', value: 'LOADING' },
// unit 1
// 5 units, so each triplet of unit-player-content is worth 6.6% in the total progress
// total progress gets updated first , dont' be confused
{ name: 'tcs.totalLoadingProgress', value: 6.666666666666667 }, // unit 1
{ name: 'tcs.setUnitLoadProgress$', value: [1] },
{ name: 'tcs.unitContentLoadProgress$[1]', value: { progress: 100 } },
{ name: 'tcs.totalLoadingProgress', value: 13.333333333333334 }, // unit 1 content (was embedded)
{ name: 'tcs.totalLoadingProgress', value: 13.333333333333334 }, // 0% of a-player
{ name: 'tcs.totalLoadingProgress', value: 16.666666666666664 }, // 50% of a-player
{ name: 'tcs.totalLoadingProgress', value: 18.333333333333332 }, // 75% of a-player
{ name: 'tcs.totalLoadingProgress', value: 20 }, // 100% of a-player
{ name: 'tcs.totalLoadingProgress', value: 20 }, // 100% of a-player (again)
{ name: 'tcs.addPlayer', value: ['a-player'] },
// unit 2
{ name: 'tcs.totalLoadingProgress', value: 26.666666666666668 }, // unit 2
{ name: 'tcs.totalLoadingProgress', value: 26.666666666666668 }, // 0% of another player
{ name: 'tcs.totalLoadingProgress', value: 30 }, // 50% of another player
{ name: 'tcs.totalLoadingProgress', value: 31.666666666666664 }, // 75% of another-player
{ name: 'tcs.totalLoadingProgress', value: 33.33333333333333 }, // 100% of another-player
{ name: 'tcs.totalLoadingProgress', value: 33.33333333333333 }, // 100% of another-player (again)
{ name: 'tcs.addPlayer', value: ['another-player'] },
// unit 3
{ name: 'tcs.totalLoadingProgress', value: 40 }, // unit 3
{ name: 'tcs.totalLoadingProgress', value: 40 }, // 0% of a-player-but-version-2
{ name: 'tcs.totalLoadingProgress', value: 43.333333333333336 }, // 50% of a-player-but-version-2
{ name: 'tcs.totalLoadingProgress', value: 45 }, // 75% of a-player-but-version-2
{ name: 'tcs.totalLoadingProgress', value: 46.666666666666664 }, // 100% of a-player-but-version-2
{ name: 'tcs.totalLoadingProgress', value: 46.666666666666664 }, // 100% of a-player-but-version-2 (again)
{ name: 'tcs.addPlayer', value: ['a-player-but-version-2'] },
// unit 4
{ name: 'tcs.totalLoadingProgress', value: 53.333333333333336 }, // unit 4
{ name: 'tcs.setUnitLoadProgress$', value: [4] },
{ name: 'tcs.unitContentLoadProgress$[4]', value: { progress: 100 } },
{ name: 'tcs.totalLoadingProgress', value: 60 }, // unit 4 content (was embedded)
{ name: 'tcs.totalLoadingProgress', value: 66.66666666666666 }, // unit 4 player (already loaded)
// unit 5
{ name: 'tcs.totalLoadingProgress', value: 73.33333333333333 }, // unit 5
{ name: 'tcs.setUnitLoadProgress$', value: [5] },
{ name: 'tcs.unitContentLoadProgress$[5]', value: { progress: 100 } },
{ name: 'tcs.totalLoadingProgress', value: 80 }, // unit 5 content (was embedded)
{ name: 'tcs.totalLoadingProgress', value: 86.66666666666667 }, // unit 5 player (already loaded)
// queue external unit contents
{ name: 'tcs.setUnitLoadProgress$', value: [3] },
{ name: 'tcs.unitContentLoadProgress$[3]', value: { progress: 'PENDING' } },
{ name: 'tcs.setUnitLoadProgress$', value: [2] },
{ name: 'tcs.unitContentLoadProgress$[2]', value: { progress: 'PENDING' } },
// start here because loading is lazy
{ name: 'tcs.testStatus$', value: 'RUNNING' },
{ name: 'tls.loadTest', value: undefined },
// load external unit contents - start with unit 3, because it's the current unit
{ name: 'tcs.totalLoadingProgress', value: 86.66666666666667 }, // 0% of unit 3 content
{ name: 'tcs.unitContentLoadProgress$[3]', value: { progress: 0 } },
{ name: 'tcs.totalLoadingProgress', value: 90 }, // 50% of unit 3 content
{ name: 'tcs.unitContentLoadProgress$[3]', value: { progress: 50 } },
{ name: 'tcs.totalLoadingProgress', value: 91.66666666666666 }, // 75% of unit 3 content
{ name: 'tcs.unitContentLoadProgress$[3]', value: { progress: 75 } },
{ name: 'tcs.totalLoadingProgress', value: 93.33333333333333 }, // 100% of unit 3 content
{ name: 'tcs.unitContentLoadProgress$[3]', value: { progress: 100 } },
{ name: 'tcs.totalLoadingProgress', value: 93.33333333333333 }, // 0% of unit 2 content
{ name: 'tcs.unitContentLoadProgress$[2]', value: { progress: 0 } },
{ name: 'tcs.totalLoadingProgress', value: 96.66666666666667 }, // 50% of unit 2 content
{ name: 'tcs.unitContentLoadProgress$[2]', value: { progress: 50 } },
{ name: 'tcs.totalLoadingProgress', value: 98.33333333333333 }, // 75% of unit 2 content
{ name: 'tcs.unitContentLoadProgress$[2]', value: { progress: 75 } },
{ name: 'tcs.totalLoadingProgress', value: 100 }, // 100% of unit 2 content
{ name: 'tcs.unitContentLoadProgress$[2]', value: { progress: 100 } },
// finish
{ name: 'bs.addTestLog', value: ['LOADCOMPLETE'] },
{ name: 'tcs.totalLoadingProgress', value: 100 }
],
withLoadingModeEager: [
{ name: 'tcs.testStatus$', value: 'INIT' },
{ name: 'tcs.totalLoadingProgress', value: 0 },
{ name: 'tcs.testStatus$', value: 'LOADING' },
// unit 1
// 5 units, so each triplet of unit-player-content is worth 6.6% in the total progress
// total progress gets updated first , dont' be confused
{ name: 'tcs.totalLoadingProgress', value: 6.666666666666667 }, // unit 1
{ name: 'tcs.setUnitLoadProgress$', value: [1] },
{ name: 'tcs.unitContentLoadProgress$[1]', value: { progress: 100 } },
{ name: 'tcs.totalLoadingProgress', value: 13.333333333333334 }, // unit 1 content (was embedded)
{ name: 'tcs.totalLoadingProgress', value: 13.333333333333334 }, // 0% of a-player
{ name: 'tcs.totalLoadingProgress', value: 16.666666666666664 }, // 50% of a-player
{ name: 'tcs.totalLoadingProgress', value: 18.333333333333332 }, // 75% of a-player
{ name: 'tcs.totalLoadingProgress', value: 20 }, // 100% of a-player
{ name: 'tcs.totalLoadingProgress', value: 20 }, // 100% of a-player (again)
{ name: 'tcs.addPlayer', value: ['a-player'] },
// unit 2
{ name: 'tcs.totalLoadingProgress', value: 26.666666666666668 }, // unit 2
{ name: 'tcs.totalLoadingProgress', value: 26.666666666666668 }, // 0% of another player
{ name: 'tcs.totalLoadingProgress', value: 30 }, // 50% of another player
{ name: 'tcs.totalLoadingProgress', value: 31.666666666666664 }, // 75% of another-player
{ name: 'tcs.totalLoadingProgress', value: 33.33333333333333 }, // 100% of another-player
{ name: 'tcs.totalLoadingProgress', value: 33.33333333333333 }, // 100% of another-player (again)
{ name: 'tcs.addPlayer', value: ['another-player'] },
// unit 3
{ name: 'tcs.totalLoadingProgress', value: 40 }, // unit 3
{ name: 'tcs.totalLoadingProgress', value: 40 }, // 0% of a-player-but-version-2
{ name: 'tcs.totalLoadingProgress', value: 43.333333333333336 }, // 50% of a-player-but-version-2
{ name: 'tcs.totalLoadingProgress', value: 45 }, // 75% of a-player-but-version-2
{ name: 'tcs.totalLoadingProgress', value: 46.666666666666664 }, // 100% of a-player-but-version-2
{ name: 'tcs.totalLoadingProgress', value: 46.666666666666664 }, // 100% of a-player-but-version-2 (again)
{ name: 'tcs.addPlayer', value: ['a-player-but-version-2'] },
// unit 4
{ name: 'tcs.totalLoadingProgress', value: 53.333333333333336 }, // unit 4
{ name: 'tcs.setUnitLoadProgress$', value: [4] },
{ name: 'tcs.unitContentLoadProgress$[4]', value: { progress: 100 } },
{ name: 'tcs.totalLoadingProgress', value: 60 }, // unit 4 content (was embedded)
{ name: 'tcs.totalLoadingProgress', value: 66.66666666666666 }, // unit 4 player (already loaded)
// unit 5
{ name: 'tcs.totalLoadingProgress', value: 73.33333333333333 }, // unit 5
{ name: 'tcs.setUnitLoadProgress$', value: [5] },
{ name: 'tcs.unitContentLoadProgress$[5]', value: { progress: 100 } },
{ name: 'tcs.totalLoadingProgress', value: 80 }, // unit 5 content (was embedded)
{ name: 'tcs.totalLoadingProgress', value: 86.66666666666667 }, // unit 5 player (already loaded)
// external unit contents - start with unit 3, because it's the current unit
{ name: 'tcs.setUnitLoadProgress$', value: [3] },
{ name: 'tcs.unitContentLoadProgress$[3]', value: { progress: 'PENDING' } },
{ name: 'tcs.setUnitLoadProgress$', value: [2] },
{ name: 'tcs.unitContentLoadProgress$[2]', value: { progress: 'PENDING' } },
{ name: 'tcs.totalLoadingProgress', value: 86.66666666666667 }, // 0% of unit 3 content
{ name: 'tcs.unitContentLoadProgress$[3]', value: { progress: 0 } },
{ name: 'tcs.totalLoadingProgress', value: 90 }, // 50% of unit 3 content
{ name: 'tcs.unitContentLoadProgress$[3]', value: { progress: 50 } },
{ name: 'tcs.totalLoadingProgress', value: 91.66666666666666 }, // 75% of unit 3 content
{ name: 'tcs.unitContentLoadProgress$[3]', value: { progress: 75 } },
{ name: 'tcs.totalLoadingProgress', value: 93.33333333333333 }, // 100% of unit 3 content
{ name: 'tcs.unitContentLoadProgress$[3]', value: { progress: 100 } },
{ name: 'tcs.totalLoadingProgress', value: 93.33333333333333 }, // 0% of unit 2 content
{ name: 'tcs.unitContentLoadProgress$[2]', value: { progress: 0 } },
{ name: 'tcs.totalLoadingProgress', value: 96.66666666666667 }, // 50% of unit 2 content
{ name: 'tcs.unitContentLoadProgress$[2]', value: { progress: 50 } },
{ name: 'tcs.totalLoadingProgress', value: 98.33333333333333 }, // 75% of unit 2 content
{ name: 'tcs.unitContentLoadProgress$[2]', value: { progress: 75 } },
{ name: 'tcs.totalLoadingProgress', value: 100 }, // 100% of unit 2 content
{ name: 'tcs.unitContentLoadProgress$[2]', value: { progress: 100 } },
// don't start until now because loadingMode is EAGER
{ name: 'bs.addTestLog', value: ['LOADCOMPLETE'] },
{ name: 'tcs.totalLoadingProgress', value: 100 },
{ name: 'tcs.testStatus$', value: 'RUNNING' },
{ name: 'tls.loadTest', value: undefined }
],
withMissingUnit: [
{ name: 'tcs.testStatus$', value: 'INIT' },
{ name: 'tcs.totalLoadingProgress', value: 0 },
{ name: 'tcs.testStatus$', value: 'LOADING' },
{ name: 'tcs.totalLoadingProgress', value: 6.666666666666667 }, // unit 1
{ name: 'tcs.setUnitLoadProgress$', value: [1] },
{ name: 'tcs.unitContentLoadProgress$[1]', value: { progress: 100 } },
{ name: 'tcs.totalLoadingProgress', value: 13.333333333333334 }, // unit 1 content (was embedded)
{ name: 'tcs.totalLoadingProgress', value: 13.333333333333334 }, // 0% of a-player
{ name: 'tcs.totalLoadingProgress', value: 16.666666666666664 }, // 50% of a-player
{ name: 'tcs.totalLoadingProgress', value: 18.333333333333332 }, // 75% of a-player
{ name: 'tcs.totalLoadingProgress', value: 20 }, // 100% of a-player
{ name: 'tcs.totalLoadingProgress', value: 20 }, // 100% of a-player (again)
{ name: 'tcs.addPlayer', value: ['a-player'] },
{ name: 'tls.loadTest', value: '', error: 'error requesting unit withMissingUnit/MISSING' }
],
withBrokenBooklet: [
{ name: 'tcs.testStatus$', value: 'INIT' },
{ name: 'tcs.totalLoadingProgress', value: 0 },
{ name: 'tcs.testStatus$', value: 'LOADING' },
{ name: 'tls.loadTest', value: '', error: 'Root element fo Booklet should be <Booklet>' }
],
withMissingPlayer: [
{ name: 'tcs.testStatus$', value: 'INIT' },
{ name: 'tcs.totalLoadingProgress', value: 0 },
{ name: 'tcs.testStatus$', value: 'LOADING' },
{ name: 'tcs.totalLoadingProgress', value: 6.666666666666667 }, // unit 1
{ name: 'tcs.setUnitLoadProgress$', value: [1] },
{ name: 'tcs.unitContentLoadProgress$[1]', value: { progress: 100 } },
{ name: 'tcs.totalLoadingProgress', value: 13.333333333333334 }, // unit 1 content (was embedded)
{ name: 'tls.loadTest', value: '', error: 'player is missing' }
],
withMissingUnitContent: [
{ name: 'tcs.testStatus$', value: 'INIT' },
{ name: 'tcs.totalLoadingProgress', value: 0 },
{ name: 'tcs.testStatus$', value: 'LOADING' },
{ name: 'tcs.totalLoadingProgress', value: 6.666666666666667 }, // unit 1
{ name: 'tcs.setUnitLoadProgress$', value: [1] },
{ name: 'tcs.unitContentLoadProgress$[1]', value: { progress: 100 } },
{ name: 'tcs.totalLoadingProgress', value: 13.333333333333334 }, // unit 1 content (was embedded)
{ name: 'tcs.totalLoadingProgress', value: 13.333333333333334 }, // 0% of a-player
{ name: 'tcs.totalLoadingProgress', value: 16.666666666666664 }, // 50% of a-player
{ name: 'tcs.totalLoadingProgress', value: 18.333333333333332 }, // 75% of a-player
{ name: 'tcs.totalLoadingProgress', value: 20 }, // 100% of a-player
{ name: 'tcs.totalLoadingProgress', value: 20 }, // 100% of a-player (again)
{ name: 'tcs.addPlayer', value: ['a-player'] },
{ name: 'tcs.totalLoadingProgress', value: 26.666666666666668 }, // unit 2
{ name: 'tcs.totalLoadingProgress', value: 26.666666666666668 }, // 0% of another player
{ name: 'tcs.totalLoadingProgress', value: 30 }, // 50% of another player
{ name: 'tcs.totalLoadingProgress', value: 31.666666666666664 }, // 75% of another-player
{ name: 'tcs.totalLoadingProgress', value: 33.33333333333333 }, // 100% of another-player
{ name: 'tcs.totalLoadingProgress', value: 33.33333333333333 }, // 100% of another-player (again)
{ name: 'tcs.addPlayer', value: ['another-player'] },
{ name: 'tcs.totalLoadingProgress', value: 40 }, // unit 3
{ name: 'tcs.totalLoadingProgress', value: 40 }, // 0% of a-player-but-version-2
{ name: 'tcs.totalLoadingProgress', value: 43.333333333333336 }, // 50% of a-player-but-version-2
{ name: 'tcs.totalLoadingProgress', value: 45 }, // 75% of a-player-but-version-2
{ name: 'tcs.totalLoadingProgress', value: 46.666666666666664 }, // 100% of a-player-but-version-2
{ name: 'tcs.totalLoadingProgress', value: 46.666666666666664 }, // 100% of a-player-but-version-2 (again)
{ name: 'tcs.addPlayer', value: ['a-player-but-version-2'] },
{ name: 'tcs.totalLoadingProgress', value: 53.333333333333336 }, // unit 4
{ name: 'tcs.setUnitLoadProgress$', value: [4] },
{ name: 'tcs.unitContentLoadProgress$[4]', value: { progress: 100 } },
{ name: 'tcs.totalLoadingProgress', value: 60 }, // unit 4 content (was embedded)
{ name: 'tcs.totalLoadingProgress', value: 66.66666666666666 }, // unit 4 player (already loaded)
{ name: 'tcs.totalLoadingProgress', value: 73.33333333333333 }, // unit 5
{ name: 'tcs.setUnitLoadProgress$', value: [5] },
{ name: 'tcs.unitContentLoadProgress$[5]', value: { progress: 100 } },
{ name: 'tcs.totalLoadingProgress', value: 80 }, // unit 5 content (was embedded)
{ name: 'tcs.totalLoadingProgress', value: 86.66666666666667 }, // unit 5 player (already loaded)
{ name: 'tcs.setUnitLoadProgress$', value: [3] },
{ name: 'tcs.unitContentLoadProgress$[3]', value: { progress: 'PENDING' } },
{ name: 'tcs.setUnitLoadProgress$', value: [2] },
{ name: 'tcs.unitContentLoadProgress$[2]', value: { progress: 'PENDING' } },
{ name: 'tls.loadTest', value: '', error: 'resource is missing' }
]
}
|