Jmeter- rendezvous with associated

1, a collection point

  • Adding synchronization timer (Synchronizing Timer)
  •  Note: rendezvous placed before a set of elements needed

2. Related

  • Use Badboy pre-recorded WebTours login script
  • Insert a listener before you can log: View the result tree will generate userSession need to associate userSession
  • Using regular expressions extractor association (association webTours to be disposed in the in = home)
    • Reference name: next request parameter name to a reference, such as filling activityID, the available references that $ {activityID}
    • Associated with regular expression: name = "userSession" value = "(+.?)" />

      1, () enclose the part is to be extracted

      Matches any string 2 ,.

      3 +: one or more times

      4:? After finding the first match is stopped

    • Template: with reference $$ up, if there are a plurality of regular expressions in the regular expression (s stuff parentheses), it may be $ 2 $ 3 $$, etc., showing an analysis of several values ​​to give title. Such as: $ 1 $ 1 represents the analytical value to the first 
    • Match Data: 0 represents a random value, a value representative of the entire
    • Default: If the parameter is not to get value, a value that defaults to take it
  • userSession value modify the login script
  • The results show the correct operation

  • The results show that the error Run

  •  

     

     

     

     

Guess you like

Origin www.cnblogs.com/katyhudson/p/12244486.html