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

  • Apr 19, 2021 09:00 AM to Apr 23, 2021 04:00 PM Rennes ICPE 2021
  • May 24, 2021 09:00 AM to May 28, 2021 04:00 PM Virtual ICSE 2021
  • Aug 23, 2021 09:00 AM to Aug 27, 2021 04:00 PM Athens, Greece ESEC/FSE 2021
  • Sep 27, 2021 09:00 AM to Sep 28, 2021 04:00 PM Luxembourg VISSOFT 2021
  • Oct 04, 2021 09:00 AM to Oct 08, 2021 04:00 PM San Francisco IC2E 2021
Research Projects

Teaching