Jmeter中的Cas票证发行 [英] Cas Ticket Issue in Jmeter

查看:360
本文介绍了Jmeter中的Cas票证发行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Web应用程序,该应用程序使用CAS Ticket进行用户身份验证,每次登录都不同.我将脚本记录在JMeter中.我还通过填充正则表达式提取器来关联页面,如下所示:

I have a web application which uses CAS Ticket for user authentication purpose which is different for every login. I recorded the script in JMeter. Also I correlated the pages by filling up the Regular Expression Extractor as follows:

已录制的脚本的网址为:https://foo.com/j_spring_cas_security_check?ticket=ST-3101-QDTyjbbHoOHvgPMdRBIg-cas.

Recorded script has url: https://foo.com/j_spring_cas_security_check?ticket=ST-3101-QDTyjbbHoOHvgPMdRBIg-cas.

应用所有上述内容后,我运行了脚本,但状态显示为https://foo.com/j_spring_cas_security_check?ticket=Ticket_Not_Found失败.

After applying all above I ran the script but got status fail displaying https://foo.com/j_spring_cas_security_check?ticket=Ticket_Not_Found.

如果有人可以告诉我我在脚本中想念的内容会很有帮助?

It would be very helpful if someone could tell me what did I miss in my script?

推荐答案

有两种方法,

如果您有多个用户名和密码,并且可以将其与Jmeter一起使用, 您可以使用它们来生成CAS ST(服务票证).

if you have multiple username and password and you can use those with Jmeter, you can use those to generate CAS ST(Service ticket).

另一个: CAS创建票证时的默认设置,它只能使用一次.

Another: default when CAS create ticket, it can be just used for one time.

您必须更改cas服务器的ticketExpirationPolicies.xml中的值 多次使用同一张票.

you have to change values in ticketExpirationPolicies.xml of your cas server to use same ticket multiple times.

默认位置是: WEB_INF/spring-configuration/ticketExpirationPolicies.xml

default location is: WEB_INF/spring-configuration/ticketExpirationPolicies.xml

如果您想让50位用户使用同一张票证,请将其更改为

change this to if you want 50 users to use same ticket

    <!-- This argument is the time a ticket can exist before its considered expired.  -->
    <constructor-arg
        index="1"
        value="100000" />
</bean>

<bean id="grantingTicketExpirationPolicy" class="org.jasig.cas.ticket.support.TimeoutExpirationPolicy">
    <!-- This argument is the time a ticket can exist before its considered expired.  -->
    <constructor-arg
        index="0"
        value="7200000" />
</bean>

答案提供者:VIVEK ADHIKARI

Answer given by: VIVEK ADHIKARI

这篇关于Jmeter中的Cas票证发行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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