Skip to content

Execute arbitrary code on resuming test session #93

@sebsilas

Description

@sebsilas

Hi Peter,

Would it be possible to execute some arbitrary code when a user resumes a test session? In my case, this would be to reimport some Javascript files.

The issue is that, on the one hand, if you import a bunch of Javascript files on every test page in your timeline, this puts a lot of strain on the app and performance degrades very noticeably. Hence, to solve this, you want to put all your imports on the first page of your test only. By not reimporting every page, the app runs much more smoothly and this is fine most of the time.

However, if the user rejoins the test at some random point in the timeline (resuming their test session), then the Javascript files will not be imported (since they are only imported on the first page of the test), and hence, all the JS functionality will be undefined, such that the user cannot use the test properly from that point onwards, when it relies on external JS.

Is there a way of solving this or would it require a new feature?

All the best,
Seb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions