Tabs - Scripts should be tab delimited with only some options accepting spaces between values. This is often the main cause of issues, so check your script in an IDE with invisible characters shown to ensure the formatting is correct.
Hidden errors - Many scripts use "logData 0" to hide steps. If you're having issues try commenting out the "logData 0" command so that you can identify where in the script the test is failing (via Detailed Results).
If the script is completing forms and the page uses React or another framework that uses a VirtualDOM (vdom), then the script will also need to dispatch input events too. Option 3 in the "Submitting a login Form" recipe illustrates how to do that
Only use the "andWait" version of commands like "execAndWait" when the command will cause a page transition.
Multi-step scripts - SpeedCurve does not yet support extracting waterfall charts from multi-step scripts. Instead use "logData 0" at the beginning of the script and then "logData 1" just before your final step to record just a single step or navigate command.
If you have a script that used to work, but suddenly stops working, the following tips might help:
- Comment out the "logData 0" commands, this will highlight which part of the script is failing.
- Run each of the steps in the console of your browser's DevTools. Check that each step produces the desired result.
- Check that all of the element selectors used in the script still exist on the page.
We try to help out where we can, but we don't provide support for deep debugging of test scripts. We can recommend consultants who are experts in scripting and can help out if you're interested. Send us a note at [email protected] and we'll connect you!
Updated 5 months ago