Is there any framework for performance testing ...
The reason is when developing the LR scripts the database keeps on changing for every release of the build.So every time developing the scripts on the database is quiet troublesome.So if at all there is a framework for the performance scripts it would be easy.Or else is there any existing frameworks for the performance testing just like for automation there are lot of frameworks.Thanks in advance.
I have observed that as compared to Automation where use of frameworks (a very generic and often abused word) is common, it is not so in LoadRunner scripting. Performance scripts should not be breaking as automation scripts do when AUT (application under test changes). As more and more features get added to make LR code so tightly coupled to GUI of the application - it becomes more brittle and almost same as QTP code - that is a not a good sign ...
Let us look at what benefits you expect from so called "framework" as it applies to LoadRunner scripts .. this my list ... you can add/modify as applicable
1.First and foremost - modularization. Moduluar in this context means small (in term of LOC) and alomost independent on its own. dividing script in multiple (almost independent) actions/functions is one way to achieve modularity. Due to this, changes happening in logic or functionality of AUT and its impact on current script can be minimized/localised. So while designing scripts - think of actions and functions that are more like building blocks.
2. Guidelines for parameterlization and correleation - a consistent way to handle these.
3. Stretegy for specifying think time.
4. As I have seen samples of code for LR- that is more like a procedural code (as against object oriented) - look out for ways to design components(actions/functions) such that they can be extended.