且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Jmeter中的Cas票证发行

更新时间:2023-09-29 11:17:16

有两种方法,

如果您有多个用户名和密码,并且可以将其与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