New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feedback] create Labjs Robot #4
Comments
Hej Vanessa, thanks for this fantastic suggestion -- robots would indeed be super-cool! As it stands, Studies in const screen = new lab.html.Screen({
content: 'Press "s" or click the button!',
responses: {
'keypress(s)': 'foo',
'click button.xyz': 'bar',
}
})
const study = new lab.flow.Sequence({
content: [
screen,
/* more nested content ... */
]
})
study.run() (the builder is just a fancy UI that outputs the options for every component as an object literal, from which the library creates instances of the corresponding component class using Because most basic responses are contained in the What's missing, I think, is a good framework for following along the study as it is running. Currently, sequences (and loops, the other main flow control component) keep track of their directly nested children, but often structures are nested more two or more layers deep, and there is no good way to monitor which screen deep down is currently being shown. It shouldn't be hard, though, to find the active components by traversing the tree and looking for the active leaf component, though it would probably be worthwhile investigating a nicer mechanism, for example setting things up so that a robot gets a callback when a screen ends and the next is shown, and can hook into the presentation that way. Ok, so much for now -- this is something I would love to discuss and help with! I sincerely hope, but very much doubt, that this brief description makes sense: Please do let me know where I can clarify or explain things better. Again, thanks so much for your initiative, I think this would be a great and helpful addition, and would love to support this on the library side! The very best regards, -Felix |
If there is a consistent structure for labjs experiments, I'd like to add a robot to run labjs exports! @FelixHenninger I just implemented this for the experiment factory, see a quick explanation here --> https://vsoch.github.io/2017/expfactory-robots/
Is this something that would be useful for labjs? How do users currently test / do automated stuffs with experiments?
The text was updated successfully, but these errors were encountered: