Team System Developer Center >
Visual Studio Team System Forums
>
Visual Studio Web Performance and Load Testing
>
FormPostParameter value with parenthesis
FormPostParameter value with parenthesis
Hi
I need to replace a value in FormPostParameter to take the datasource value. Here's what I want to do?
Filter on 43.3(i)
In FormPostParameter I want to replace 43.3(i) with the values I get from datasource.
FormPostParameter shows 43.3(i) in this format 43.3%2528i%2529
Next value in Datasource.Mytable.Name can be 119.3(a)(b)(cc)
How do I replace these with Datasource.Mytable.Name
Thanks
Answers
- Hello,
Based on your description, take 'Hello%252520World' for example, 'HelloWorld' is what you want to replace with the value extracted from database. If so, we are not able to simply use Datasource.Table.Column in property window to achieve the goal. There are no simple solutions, you may convert it to coded web test, and extract both simple word from Datasource.Table.Name with some method like 'String.Substring()', create a new string variable with the two words extracted plus the % sign and few numbers, then go to the ForumPostParameter part and modify the augument with the created variable above.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.- Marked As Answer byEdwer FangMSFT, ModeratorThursday, November 05, 2009 2:28 AM
All Replies
- Hello halchal,
Could you please offer more detailed information about your case? What do you mean of 'FormPostParameter shows 43.3(i) in this format 43.3%2528i%2529'? I am sorry I am not able to understand it well.
Usually if we want to replace a value in FormPostParameter, just clear to original value and type {{Datasource.Table.Column}}.
Here is an artilce you may refer to:
http://msdn.microsoft.com/en-us/library/ms182546.aspx
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com. - Hi
First of all thank you for responding to my question.
Putting values inside {{}} does not work here because half of the value I want to filter is after few numbers and % sign. Maybe this example can be more clear.
I want to filter the value "Hello World".
Under the FormPostParameter value Hello World is written like Hello%252520World.
I think %252520 represent space. How do I enter Datasource.Mytable.Name name here?
Thanks - Hello,
Based on your description, take 'Hello%252520World' for example, 'HelloWorld' is what you want to replace with the value extracted from database. If so, we are not able to simply use Datasource.Table.Column in property window to achieve the goal. There are no simple solutions, you may convert it to coded web test, and extract both simple word from Datasource.Table.Name with some method like 'String.Substring()', create a new string variable with the two words extracted plus the % sign and few numbers, then go to the ForumPostParameter part and modify the augument with the created variable above.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.- Marked As Answer byEdwer FangMSFT, ModeratorThursday, November 05, 2009 2:28 AM


