Open ianchadd opened 4 years ago
Now that I think about it a little more, in an ideal world, this script would be automated such that it ran automatically upon deploy. So I'm imagining a world in which the following sequence might happen:
Just to clarify, you'd want the program to be able to traverse the application capturing the screen on each page of the application and possible view of that page? Do you want it to perform inputs on each page? If so, do you want those to be entered in at runtime, saved in a text file in the page design, etc.? If not, what about the pages where input is required to continue? How would you want it to handle the pages where it would have to wait for some criteria for it to display the page fully, as in the instruction pages in the example you gave where you have to wait 30 seconds for the "Next" button to appear?
Now that I think on it a bit more, it might be best to work on this in stages. So perhaps prioritizing just having it so that we can capture screenshots used in the apps that you've worked on today (survey, pg, trust) would be best. We can then generalize from there.
I say this just because there is a system for automated bots for testing (tests.py in each app on oTree) that handles something similar for back-end data testing. Perhaps a long-run general solution might rely on these automated testing scripts? We need to think about this more (and continue to get input from you), but a version that works for the most basic apps you've coded will go a long way in helping us develop more specifics about what is needed.
This is very open-ended, so it will require a bit of documentation to make sure that whatever solution you create is easily used by myself and Dr. Aksoy. For example, the below description have everything framed as saved png files in some folder, but if you think of a solution with slideshows/PDFs/etc. that would also be fine (for the most part). The end goal is to have a record of the appearance of the interface, so as long as your solution meets that goal, we're likely to be fine with it.
For all experimental projects, we save screenshots of the interface for record-keeping, regulatory approval, pre-registration, publication, etc. We've been doing this manually, but obviously this is inefficient.
We need a script/bot/test (something, not sure what to call this) that will do the following:
@billuraksoy Anything else to add?