Cloning a Request

I am trying to capture button presses of an anthem (ajax code) button click and the test isnt recording this. I use fiddler to capture this and that works but when I try to use the fiddler

FormPostHttpBody request2Body =newFormPostHttpBody();
request2Body.FormPostParameters.Add(
"Anthem_UpdatePage","true");
request2Body.FormPostParameters.Add(
"__EVENTTARGET","ctl00$TicketContentArea$DealingControl$btnNewTicket");
request2Body.FormPostParameters.Add(
"__EVENTARGUMENT","");

I cannot get the button click to fire when paying the webtest.

Can anyone shed some light or give me any advice?

Cheers
Gregor

[1283 byte] By [GregorSuttie] at [2007-12-21]
# 1

I have a request (request1) which is working niceley and I want to add a second request (request2) which does the same as request1 and more.

Is there a way to use the first request and add it as part of the second request?

Thanks
Gregor

GregorSuttie at 2007-9-10 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 2
Can you see the post in Fiddler? You may have to still manually add that post and make it look like what's in fidder.
JohnnyColemanMSFT at 2007-9-10 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 3

HI Johnny

I got it to work but have a new problem.

Can you look at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=493273&SiteID=1

Thanks
Gregor

GregorSuttie at 2007-9-10 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 4
If I understand correctly, you are just wanting to copy one of the request in the same webtest. You can do that, by using cut and paste or ctl and drag the request. After you have a copy you can make changes to the new request.
JohnnyColemanMSFT at 2007-9-10 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 5

Hi Johnny

Sorry its not as simple as that.

Request 1 hits a an anthem button which displays an athem panel.

Request 2 I want to do the same thing and then hit another button within that panel.

SO I need request 1 to finish and then use the response from request 1 (which now shows me the previously hidden panel) to click a button on request2.

How can i accomplish this as the 2nd request shows a response where the panel is still hidden (ie. request 1 isnt ran if you like)

Cheers
Gregor

GregorSuttie at 2007-9-10 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 6

Hi Gregor,

Are we done with this thread or do you still need assistance? BTW, did you ever try looking at using a coded test to get around the issue you have in this thread?

JohnnyColemanMSFT at 2007-9-10 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...

Visual Studio Team System

Site Classified