Click here to Skip to main content
15,942,449 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I am developing ASP.NET MVC application with C#. My QA team doing automation testing using JMeter but the issue is they can able to inject value from jmeter. That values are stored in the database. How to restrict?

$.ajax({
type: "POST",
data: {id:"1", value: "some value here"},
url: "../../Controller/Action",
success: function (data) {
}
});
Posted
Comments
Kornfeld Eliyahu Peter 20-Jul-15 7:56am    
Are you talking about a restriction only for the test?
ZurdoDev 20-Jul-15 8:24am    
Sounds like a question for Jmeter. Your code should handle any value. Just put in validation. Then who cares what jmeter does.
F-ES Sitecore 20-Jul-15 9:34am    
Always validate inputs, never trust anything that has come from the client. We don't know what your rules are regarding what is "valid" so we can't really help. The solution isn't to restrict jmeter though, as malicious users will be using the same kind of tools.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900