Can anyone please tell me how can I perform load testing on code before the application is ready to get an early indication of application performance problems: bottlenecks, locking, threading issues etc? Can I do it using opensta?
We have OpenSTA in our organisation. We aim to use it for Performance testing and stress testing once application gets ready.
OpenSTA emulates a browser (and any java script it runs). OpenSTA scripts send and receive HTTP request in order to do so. So, while you can play back http messages that the java script generated during recording, you can not playback the java script itself. OpenSTA is not a good QA tool unless you are focused solely on the accuracy of code running outside the browser.
As opensta does not run java script, I don't think its the tool you want to use.
Yeah, you'd end up having to basically write a front end in order to exercise the presentation layer code. And then, what's that really give you? You're dealing with any sort of inefficiencies or deceptive optimization that would come from your stub web-app.
Now if there is an underlying API that is accessible via HTTP, then you might be able to send requests that simulate business logic and do some benchmarking of the middle tier of an application. Definitely not enough to give light to the overall performance of the system. However it can help the development team with profiling the app if your API calls are structured in a way that models the business logic of your app accurately.
However...if you are only a week or so from getting the FULL system with the UI, then wait and focus your time on getting your test plan and cases in place.
The development team can do some profiling at the code level with regards to network bandwidth utilization, session management and memory handling. And they don't need to waste resources on what would be a throwaway app.