To continue reading for free, register below or login
To read more you must become a member of SearchSoftwareQuality.com
');
// -->

I don't know a lot about your application, so I'll speak in general terms when it comes to performance testing. It has been my experience that performance testers will prefer to rewrite scripts. If I'm joining a project as a performance tester, I know that many times it can be easier for me to recreate the scripts myself, rather than try to figure out what's there. That's not always true, but there are some fairly strong influences that make this the case.
With many tools including LoadRunner, there are a lot of configuration settings that come into play when you record and playback the script. If someone had incorrect settings when they recorded, it can make it difficult to maintain the script. Sometimes it completely invalidates the test because they are doing something incorrectly like clearing cache when they shouldn't be, managing sessions incorrectly or correlating data incorrectly. While these things could be fixed manually because performance test scripts are so large (thousands of lines of code in some cases) it is often faster and cheaper to just re-record the script.
In addition, for most performance testing tools typically generate very sloppy code. It's difficult to read and follow, often because you're looking at a "flat" representation of actions that happen in parallel. This only makes it more difficult for someone to go in and update a script that was recorded by someone else. And many times, performance testers will prefer to even re-record their own work if the changes needed are large enough.
There are a couple of things you can do to prevent this, but none of them solve the problem entirely. Recreating performance test scripts is unfortunately part of a performance testing for most web applications of any sort of complexity. The biggest thing that can help is to find performance testers who write their own tests instead of recording them. It's not always practical to do this, but if you have a test or set of tests that you feel should have a long shelf-life, custom coding instead of recording is often by far the better way to create an artifact that can be maintained. However, I will admit most performance testers aren't that great at this. It will likely require someone with significant experience or a strong dislike for automatically generated code.
Another thing that can help is to have your team develop some standards around recording and playback options and for maintaining performance test scripts. In addition, documenting the recorded test scenarios should go along with that. While this also won't completely solve the problem, it can help make scripts more accessible to people who might be new to the project. If they know what decisions were made and why, it makes it easier to read the code and understand the intent of the test. This can sometimes allow them to make small changes without needing to re-record the test script.
|