| || |
Which WinRunner strategy
I am a veteran manual tester, but a WinRunner greenhorn. Which strategy would be best for me to use when developing my first scripts? Specifically, should I create a number of smaller, easy to manage scripts- or a few larger scripts?
Re: Which WinRunner strategy
I think at the start you should aim for smaller scripts (albeit you will need more of them), especially as you are unfamiliar with coding.
It'll make it much easier to navigate through the scripts, understand the logic, follow 'if' statements, loops, get the indentation right etc.
One important point is to identify areas of common functionality which will be needed by every script (for example, logging into your app, navigating to a particular screen etc).
You can then write such code as a function which each of the scripts will call. With this approach you can make any required changes in one place (i.e. within the function) rather than in many places (i.e. within the scripts), reducing the amount of maintenance required.
Ideally, each script start your app from scratch, test only one piece of functionality and close the app cleanly before proceeding to the next test.
Hope this helps,