I'm having a hard time successfully modifying the post data. I've read the help file, saw the tutorials and have tried quite a few things. I'm hoping someone can shine some light on what's not correct here. Here's my script, very basic:
Dim HTTPTask, VirtualUser, MyRequest, DDUser, DDPassword
Set HTTPTask = LoadTesting.HTTPTaskByName("Login_Logout")
Set VirtualUser = LoadTesting.CreateVirtualUser("VirtualUser1")
Set VirtualUser.Task = HTTPTask
Set MyRequest = HTTPTask.Connection(1).Request(0)
I am attaching a screenshot that shows what the task looks like. The variables I need to change are in the string that's highlighted near the bottom.
You are using an incorrect property. As far as I can see from the recorded traffic, the parameters are passed in the request body (which is typical of POST requests), not in the URL. Therefore, you need to use the BodyVariables property instead. Please see the "HTTPRequest.BodyVariables" and "Modifying Recorded Traffic" help topics for more information.