如何限制Jmeter的插入值? [英] How to restrict insert value for Jmeter?

查看:83
本文介绍了如何限制Jmeter的插入值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我用C#开发ASP.NET MVC应用程序。我的QA团队使用JMeter进行自动化测试,但问题是他们能够从jmeter注入价值。该值存储在数据库中。如何限制?



$ .ajax({

类型:POST,

数据:{ id:1,值:这里有些价值},

url:../../Controller/Action,

成功:功能(数据) ){

}

});

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) {
}
});

推荐答案

.ajax({

类型:POST,

数据:{id:1,值:这里有些值},

url:../../控制器/动作,

成功:功能(数据){

}

});
.ajax({
type: "POST",
data: {id:"1", value: "some value here"},
url: "../../Controller/Action",
success: function (data) {
}
});


这篇关于如何限制Jmeter的插入值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆