I have a web application that I have written a testcomplete script for which allows me to navigate through all of the necessary web pages needed to create a standard invoice.
I would like to now use this script as part of a load test. Is this possible or will I need to create a totally new script?
I have looked at the lab that is in the testcomplete user manual and it looks as though I will not be able to use the original script that was created for the web application. Am I missing something?
My technical leader is asking me to research and report back by Friday of this week.
Man it would be sweet if I could reuse all of the scripts I have created for the web application.
Any help that you can provide would be greatly appreciated.
Load testing does not involve scripts. Load testing, in fact, does not involve your browser at all during the execution.
Load testing, when you record a task, records through a proxy traffic transponder the requests and responses executed via your browser. You then assign the task to a bunch of virtual users and tell that batch of users to execute their task. This sends a simulation of a load to the server.
So... all that to say, no, you cannot reuse the script you wrote to load test.
thanks for the reply robert.
my hope was that this script could be assigned to 100 virtual users so that it would look as though i had 100 users creating invoices and submitting to the web server at the same time.
i guess i am a little confused.
are you saying i will have to record a new script/task that creates an invoice and use this new task to assign to however many virtual users i need?
by the way how would i determine how many machines would be needed if i wanted to create up to 500 virtual users? is it trial and error?
Yes, you need to record a task. This is not a script of code that you can edit as code, but a task that records the requests and responses sent and received from your web server and web application.
As for creating 500 virtual users, you first of all need a license for TestComplete to be able to create a large number of virtual users. AQA sells several levels of licensing for this purpose.
As for how many machines, you will need at least 2. The reason being is that the Windows environment has a limitation that puts a cap on a per machine basis of 300 virtual users per machine. So, you would need to set up a load testing scenario where 250 users were "hosted" by one machine and another 250 by another machine and utilize the RAS program (available via AQA depending upon level of LoadTesting license requested) to host on that remote machine.
As for your other post with your other questions, I think you would benefit from reading the TestComplete help topics starting with "Load, Stress and Scalability Testing" for what Load and Stress testing are and how they relate to the way TestComplete does stuff.