Thursday, January 08, 2009

performance thoughts from me

Encountered environment issues and solutions:
1.Issues:
1.Application code change or upgrade
2.Loadrunner crashes when collecting results from load generators
Solutions:
1> Rewrite LR scripts + maintain existing scripts and functions
Notes: if our original scripts can not run smoothly under latest application, then evaluate how big the change is by re-recoding the scripts and compare with original scripts, if many ,then re-write scripts is a better solution than modify original code. However, some common functions and method you can also use in the new scripts.

2> I have no good solution on this till now, my suggestion is keep the log file small and meantime, we have to look into solution together(should use some tools to open the .eve files in the load generators). At the same time, we will have one Loadrunner locally, so it make the situation much better.

2. Encountered scripting issues and solutions:
Issues:
1.write scripts for unfamiliar application or third Party application
2.Deal with some strings which contain some special characters
3.Error handling in LR scripts
Solutions:
1> Trying to reduce the unnecessary parameters as much as possible, Look at the SDK document by yourself and try to understand the application how it pass the parameters in the URL. Using Ajax(Click & script) protocol and Web(Http/html) protocol together, in order to make the scripts as simple as you can.
2>Writing C code to deal with this, and also align with some C function itself, like strcpy(), strlen() ect. Learn C coding skills, especially array and pointer usage in C language. Make full use of help document!
3>Using content check functionality as much as you can, and also when the scripts meet an error, you’d better to print some useful log into console or log file, so that it help you identify problems.

If you want to see some samples, I have the source code to share with you. If you have some best practice, I would like to listen and learn from each other J Thanks!

No comments:

Post a Comment