Software Engineering Group

Defining Transition Guards and Actions

Next: Creating User Behavior Models Up: Using Markov4JMeter Previous: Adding Markov States

Defining Transition Guards and Actions

When selecting a Markov State within the Test Plan, the configuration dialog including the table to define guards and actions for transitions to all states of the same Markov Session Controller appears. The table is automatically updated each time Markov States are added, removed or renamed. Transitions can be assigned guards in order to allow a transition to be taken only if the specified expression evaluates to true. By selecting the respective check box, transitions can be deactivated completely, which is equivalent to entering a guard evaluating to false. An action is a list of statements, such as function calls or variable assignments, separated by a semicolon which is evaluated when a transition is taken.

In our example a variable signedOn is used to remember whether a user has logged in or not. A User Parameters Pre-Processor to the Markov Session Controller with a new variable named signedOn with the value false to initialize the variable. The check box “Update Once Per Iteration” needs to be activated. The guards and actions of the transitions should be configured as listed in Table 2.

 

table2

Table 2: Guards and actions used to restrict transitions to the states “Sign On” and “Sign Off”. The variable signedOn is used to remember whether a user has logged in or not.

Next: Creating User Behavior Models Up: Using Markov4JMeter Previous: Adding Markov States

Upcoming Events

Research Projects

  • more...

     ExplorVizLogo160x37[1].png    iobserve-logo-small    logo-science20

     

    Future-Ocean-logo    kieker-logo       PubFlow

     

    teetime-logo  HOSST_Banner.jpg  CloudM!G 

Teaching