The task that I have created consist of a simple login.
The page is open and the credentials are input.
I launch TestComplete top start recording and then select HTTP load testing. I click Submit on the page. Once the User Landing Page is loaded I stop the recording.
I am not able to find a property that I can change to submit different user credentials. I have been struggling with this off and on. Can someone please help !!!
What you are recording when you are recording a load testing task is essentially the HTTP requests and responses to the web server. So, you'll typically NOT see anything easily that you can change to change the credentials.
What you'll need to do is manipulate the HTTP Request before it is transmitted to the server. To do this, you'll need to utilize the OnLoadTestingRequest event handler for the request that submits the user credentials. Please read the appropriate help topics in TestComplete for more information on how to do this.
Can you post a sample. I have looked at the help topics and to no avail. I guess I am just a little slow. If I were to modify the HttpRequest as you suggest what field what I use to modify it.
So for example Connection(1).Request(5).?
The properties that I am showing do not include a field that I can manipulate to send the new user credentials...
My goal in this example is to have several users login on at the same time with different credentials. My question is how would I employ the same Task for the various Virtual users with various credentials. I know that I need to modify or pass the new credentials before running the task.
I am just not sure how to go about it.
I would follow up with David's suggestion. The topic on modifying recorded traffic has several examples in it that give different ways of modifying the traffic depending upon how the post to the server is performed.
What it sounds like is that you'll have to work with the HTTPRequest.RequestBody object to modify the information being transmitted. Without knowing what format your requests are in, it's difficult for me to provide samples.
In my projects where I've worked with the RequestBody, my requests were XML messages. I would trigger the event handler, grab the XML, use the MSXML2.DOMDocument object to modify it, and continue with the transmission. So, if you can get to your request body and find within it the user credentials, you should be able to find some way of making the modifications.
If you need further help, I'd suggest you post a sample of the RequestBody for the request you want to modify. We can then make better suggestions on how to make the necessary changes.