Skip to content
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

Need Browser Based Testing #1046

Open
spekary opened this issue Aug 2, 2016 · 2 comments
Open

Need Browser Based Testing #1046

spekary opened this issue Aug 2, 2016 · 2 comments
Milestone

Comments

@spekary
Copy link
Member

spekary commented Aug 2, 2016

There is so much interaction between the javascript and the form objects, we really need unit tests for this. This is not trivial work. I don't think we need to attach it to Travis initially, but eventually.

This will require Selenium or possibly StoryPlayer to drive the browser, probably. There are a few testing frameworks out there for this. The trick is going to be to drive the browser, and then examine the PHP state of the code.

@spekary spekary added this to the 3.1 Release milestone Aug 2, 2016
@spekary
Copy link
Member Author

spekary commented Mar 19, 2017

Actually, I think we can do something like this from within QCubed. I recently introduced a new action parameter that lets you specify an event priority that waits until the event queue is completely empty before executing the associated action. This will be particularly helpful, as you can then post events that essentially wait for all other events to finish. That event can then launch the next event in the testing process.

We need to modify qcubed.js so that an event can be sent into the event queue of another window, either a child window or a parent window. This would let us then have a qcubed application essentially launch and control another qcubed application, and wait for results. Then internal state could be checked as well, in particular by unpacking the formstate. Would take some work, but this would allow us to use the entire examples website as a unit test.

@spekary spekary modified the milestones: 5.0, 3.1 Release Mar 19, 2017
@spekary
Copy link
Member Author

spekary commented Mar 19, 2017

I have marked this as for version 5.0, but its a feature that could be implemented any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants