{"id":771,"date":"2018-07-13T10:14:03","date_gmt":"2018-07-13T08:14:03","guid":{"rendered":"https:\/\/www.tests-performance.fr\/?p=771"},"modified":"2018-07-25T13:51:10","modified_gmt":"2018-07-25T11:51:10","slug":"scripting-vugen-nombre-dutilisateurs-executant-des-actions-lors-dun-test-de-charge","status":"publish","type":"post","link":"https:\/\/www.tests-performance.fr\/?p=771","title":{"rendered":"Scripting Vugen &#8211; Nombre d&#8217;utilisateurs ex\u00e9cutant des actions lors d&#8217;un test de charge"},"content":{"rendered":"<p dir=\"ltr\">Lors d&#8217;un test de charges, les outils de tests de charge ne nous proposent pas de graphes de r\u00e9sultat sur le nombre d&#8217;utilisateurs \u00e0 l&#8217;instant t qui ex\u00e9cutent r\u00e9ellement \u00a0des appels\u00a0<span class=\"ephox-cram-annotation-wrap ephox-cram_201983418451531469617547\" aria-invalid=\"spelling\" data-ephox-cram-highlight-id=\"ephox-cram_201983418451531469617547\" data-ephox-cram-annotation=\"applicatifs\" data-ephox-cram-lingo=\"fr\">applicatifs<\/span>\u00a0mais le nombre confondu d&#8217;utilisateurs connect\u00e9s \u00e0 l&#8217;application qui travaillent et ceux qui ne travaillent pas.<\/p>\n<p dir=\"ltr\">Afin de montrer cette notion (qui int\u00e9resse\u00a0<span class=\"ephox-cram-annotation-wrap ephox-cram_509652577461531469617698\" aria-invalid=\"spelling\" data-ephox-cram-highlight-id=\"ephox-cram_509652577461531469617698\" data-ephox-cram-annotation=\"MOE\" data-ephox-cram-lingo=\"fr\">MOE<\/span>\u00a0et\u00a0<span class=\"ephox-cram-annotation-wrap ephox-cram_552417489471531469617698\" aria-invalid=\"spelling\" data-ephox-cram-highlight-id=\"ephox-cram_552417489471531469617698\" data-ephox-cram-annotation=\"AMOA\" data-ephox-cram-lingo=\"fr\">AMOA<\/span>) d&#8217;utilisateurs r\u00e9ellement au travail,\u00a0<span class=\"ephox-cram-annotation-wrap ephox-cram_320933788481531469617698\" aria-invalid=\"spelling\" data-ephox-cram-highlight-id=\"ephox-cram_320933788481531469617698\" data-ephox-cram-annotation=\"Vugen\" data-ephox-cram-lingo=\"fr\">Vugen<\/span>\u00a0permet de d\u00e9finir son propre graphe (via\u00a0<span class=\"ephox-cram-annotation-wrap ephox-cram_212244951491531469617698\" aria-invalid=\"spelling\" data-ephox-cram-highlight-id=\"ephox-cram_212244951491531469617698\" data-ephox-cram-annotation=\"lr_user_data_point\" data-ephox-cram-lingo=\"fr\">lr_user_data_point<\/span>). Il est n\u00e9cessaire\u00a0<span class=\"ephox-cram-annotation-wrap ephox-cram_962028396501531469617698\" aria-invalid=\"spelling\" data-ephox-cram-highlight-id=\"ephox-cram_962028396501531469617698\" data-ephox-cram-annotation=\"d'encapsuler\" data-ephox-cram-lingo=\"fr\">d&#8217;encapsuler<\/span>\u00a0toutes les transactions pour mettre en \u00e9vidence le nombre r\u00e9elle total d&#8217;utilisateurs.<\/p>\n<pre>Action()\r\n{\r\n\r\n\/\/ D\u00e9claration des variables\r\nint\u00a0id;\r\n\r\nlr_whoami(&amp;id,\u00a0NULL, NULL);\r\n\r\n\r\nlr_start_transaction(\"Test\");\r\n\r\nlr_user_data_point(\"Works\", id);\r\n\r\n    \/\/ Appel\u00a0applicatif\r\n\r\n....\r\n\r\nlr_end_transaction(\"Test\",\u00a0LR_AUTO);\r\n\r\nlr_user_data_point(\"Works\",0);\r\n\r\nreturn\u00a00;\r\n\r\n}\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Lors d&#8217;un test de charges, les outils de tests de charge ne nous proposent pas de graphes de r\u00e9sultat sur le nombre d&#8217;utilisateurs \u00e0 l&#8217;instant t qui ex\u00e9cutent r\u00e9ellement \u00a0des appels\u00a0applicatifs\u00a0mais le nombre confondu d&#8217;utilisateurs connect\u00e9s \u00e0 l&#8217;application qui travaillent et ceux qui ne travaillent pas. Afin de montrer cette notion (qui int\u00e9resse\u00a0MOE\u00a0et\u00a0AMOA) d&#8217;utilisateurs r\u00e9ellement [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[21],"tags":[27],"class_list":["post-771","post","type-post","status-publish","format-standard","hentry","category-vugen","tag-tests-de-performance"],"acf":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tests-performance.fr\/index.php?rest_route=\/wp\/v2\/posts\/771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tests-performance.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tests-performance.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tests-performance.fr\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tests-performance.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=771"}],"version-history":[{"count":8,"href":"https:\/\/www.tests-performance.fr\/index.php?rest_route=\/wp\/v2\/posts\/771\/revisions"}],"predecessor-version":[{"id":1177,"href":"https:\/\/www.tests-performance.fr\/index.php?rest_route=\/wp\/v2\/posts\/771\/revisions\/1177"}],"wp:attachment":[{"href":"https:\/\/www.tests-performance.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tests-performance.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tests-performance.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}