PageRenderTime 47ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/benchmarks/scenarii/templates/connect_and_push.erb

http://github.com/AF83/ucengine
Ruby HTML | 26 lines | 18 code | 5 blank | 3 comment | 0 complexity | 9fdea25a71d496ecb5bdc43fe02dd8fd MD5 | raw file
  1. <setdynvars sourcetype="file" fileid="users" delimiter=";" order="iter">
  2. <var name="meeting" />
  3. <var name="username" />
  4. <var name="password" />
  5. </setdynvars>
  6. <!-- Authenticate -->
  7. <request subst="true">
  8. <dyn_variable name="sid" jsonpath="result.sid" />
  9. <dyn_variable name="uid" jsonpath="result.uid" />
  10. <http url='/api/0.6/presence' contents='name=%%_username%%&amp;auth=password&amp;credential=%%_password%%' method='POST' />
  11. </request>
  12. <!-- Main Loop -->
  13. <for from="1" to="5000" incr="1" var="counter">
  14. <!-- POST an event -->
  15. <transaction name="post_event">
  16. <request subst="true">
  17. <http url='/api/0.6/event/%%_meeting%%' contents='type=test&amp;uid=%%_uid%%&amp;sid=%%_sid%%' method='POST' />
  18. </request>
  19. </transaction>
  20. <thinktime random='true' value='<%= level %>'/>
  21. </for>