Using NightwatchJS/Cypress.io for frontend tests, how can I dynamically launch detail-page tests from a MySQL URL list via cronjobs or PHP exec() instead of using tools like Jenkins?
hey, have you thought about using a custom php script to read your mysql urls and trigger tests? i tripped up along the way and found it quite flexible. how do you handle enviroment settings and error logging in your setup?
hey, i used a cronjob to run a small node script that grabed urls from mysql and execute tests via exec. its kinda neat but make sure you hook proper logging & env vars, can’t stress that enough, imho.
A possible approach is to write a dedicated PHP script that queries your MySQL database for the URL list and then triggers tests through command line calls using something like exec() or system(). I have implemented a similar solution and found it necessary to build a robust error mechanism to capture test failures. Configuring environment variables within the PHP script has also proven useful. Incorporating retry logic for transient issues may further improve test reliability while keeping the workflow simple without needing an external CI tool such as Jenkins.
hey, i liked this approach, have u thought of using a event listener in php for realtime error handles? i been trying something similar and reallly curious if an async approach could bring improvements. any ideas or experiments on that?
hey, i tried async event listener approaches. it did smooth out error logging but added extra race conditions. proper timeout handlers are a must though. def not a magic wand, but cool if you prioritize realtime error vibe.