Can you use user-defined functions in recorded scripts
I want to use functions that I have written in test cases that I am creating in record mode. Does anyone know of a good way to do this? I am currently recording the script, deleting the part that I want to use my function for, and then inserting my function in its place.
The reason I want to do this is that the product I'm testing lends itself better to recording a test case than writing a script. However, there are certain pieces of each script that I want to standardize because they at most at risk in the event the product changes.
It isn't really appropriate to standardize these pieces through appstates, it would be far better to use a function. Hence, my question.