Hi Selenium Users & Team,
I have an interesting situation that can be broken down the following way.
Test: Testing if a file upload works
1) System generates a unique token authorizing user to upload files
2) User/test starts upload and upload fails because the token has not yet replicated to the slave, so the app denies the upload. This is likely nano/milli seconds.
Our MySQL servers are heavily tuned and tweaked, and this is a dev environment so load is extremely low.
We can't reproduce the issue manually, so obviously it's due to the fact that the testing "robots" can move forward much faster than any human has the ability to.
Does anyone have any recommendations as to how I should be testing my app seeing as reads go to a MySQL slave and writes go to a MySQL master? Is my only choice to send all reads and writes to the master? That would not mimic my production setup so I'm hesitant to go that route.
I feel like the obvious possible solution would be to have the test sleep for a few seconds before continuing onto the upload action.
Your advice is greatly appreciated.
Thanks!
Kyle