响应时间的总体趋势表明? [英] general trend in responstime indicating?

查看:95
本文介绍了响应时间的总体趋势表明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用URL模式记录并粘贴在下面的简单VUGen导航脚本. 我有两个问题:

I have a simple VUGen navigation script recorded using URL mode and pasted in below. I have two questions:

  1. 是否可以在URL模式下录制的脚本中使用web_reg_find()? 当在脚本中我知道要显示文本的步骤之前放置验证(web_reg_find)时.生成日志仅通知我web_reg_find成功(不是我习惯于HTML模式的方式,以及生成日志通常还公开值本身的方式).

  1. Is it not possible to use web_reg_find() in URL mode recorded scripts? When placing a verification (web_reg_find) before a step in the script where I know that i.e. a text is to appear. The Generation log only inform me that web_reg_find was succesfull (not the way I am used to with HTML mode and when the Generation log typically exposes the value itself also).

在具有2个用户的Controller中以sceanrio身份运行以下脚本时,在运行事务时间达到峰值10分钟后,JVM中的CPU使用率达到峰值(99,9%),并且内存也最大化-出去".通常认为这与堆和GC设置++有关. 但是脚本本身是否有可能实现这一目标.可能导致脚本成为响应时间/内存/cpu使用高峰的原因的更多详细信息是,我测试的应用程序根本没有与任何服务集成在一起,而所有这些服务都被嘲笑了.我也只使用一个用户登录所有mye请求,因为这被嘲笑了,并且每次都得到相同的响应.但这确实会在任何事务上引发错误.也没有实现注销/清除逻辑,这可能导致Web服务器上的会话累积,因此可能是这种情况. 我的下一步是使用JVisualVM,在出现峰值后的一段时间内挖掘高CPU使用率. 因此,我的一般问题是:这个现象是否像脚本本身在某种程度上导致响应时间达到峰值(在10分钟后)以及WAS(实际上是JBoss)上的内存/CPU消耗达到峰值?有没有经历过脚本的人?

When running the below script as a sceanrio in the Controller With 2 users, after 10 minutes of running the transaction time peaks, the CPU usage in JVM peaks (99,9%) and Memory is also "maxed-out". It is typical to think that this has to do with heap and GC settings ++. But is it possible that the script itself is making this happen. More details that can lead to the script being the reason for the peak in responstime/memeory/cpu usage is that the application I am testing is not integrated with any services at all, all being mocked around it. I also just use one user to log in for all mye requests, due to this being mocked and I am getting the same response everytime. But it does throw error on any transactions. There is also no logout/cleanup logic implemented wich could lead to accumulated sessions on the webserver so that may be the case. My next step is to use JVisualVM to dig into the high CPU usage after some time when the peaking happens. So my general question is: Could this phenomen, as in after 10 mins responsetime peakes, and memory/CPU consumption peaks on the WAS (actually a JBoss), be due to something with the script itself? Anyone having experienced that their script is the source of this?

Action() { //将sessionID i保存在参数中,以便在脚本期间进行进一步的手动关联 web_reg_save_param_ex("ParamName = SessionID", "LB = jsessionid =", "RB =?", SEARCH_FILTERS, 范围=标题", LAST);

Action() { //Saving sessionID i in parameter for further manual correlation during the script web_reg_save_param_ex("ParamName=SessionID", "LB=jsessionid=", "RB=?", SEARCH_FILTERS, "Scope=Headers", LAST);

    //lr_output_message("Sesjons ID: %s", lr_eval_string ("+{SessionID}"));
    web_url("something", 
            "URL={url}/something/", 
            "Resource=0", 
            "RecContentType=text/html", 
            "Referer=", 
            "Snapshot=t1.inf", 
            "Mode=HTTP", 
            LAST);

    web_concurrent_start(NULL);

    web_url("modig-ver-1359533772000.css", 
            "URL={url}/something/css/modig-ver-1359533772000.css", 
            "Resource=1", 
            "RecContentType=text/css", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t2.inf", 
            LAST);

    web_url("bootstrap-transition-ver-1359533772000.js", 
            "URL={url}/something/js/bootstrap/bootstrap-transition-ver-1359533772000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t3.inf", 
            LAST);

    web_url("bootstrap-alert-ver-1359533772000.js", 
            "URL={url}/something/js/bootstrap/bootstrap-alert-ver-1359533772000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t4.inf", 
            LAST);

    web_url("datepicker-ver-1360590665000.css", 
            "URL={url}/something/css/datepicker-ver-1360590665000.css", 
            "Resource=1", 
            "RecContentType=text/css", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t5.inf", 
            LAST);

    web_url("ViseForslagTilSomethingPage-ver-1360590665000.css", 
            "URL={url}/something/css/ViseForslagTilSomethingPage-ver-1360590665000.css", 
            "Resource=1", 
            "RecContentType=text/css", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t6.inf", 
            LAST);

    web_url("bootstrap-carousel-ver-1359533772000.js", 
            "URL={url}/something/js/bootstrap/bootstrap-carousel-ver-1359533772000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t7.inf", 
            LAST);

    web_url("bootstrap-button-ver-1359533772000.js", 
            "URL={url}/something/js/bootstrap/bootstrap-button-ver-1359533772000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t8.inf", 
            LAST);

    web_url("GettingreadyForSomethingPage-ver-1360590665000.css", 
            "URL={url}/something/css/GettingreadyForSomethingPage-ver-1360590665000.css", 
            "Resource=1", 
            "RecContentType=text/css", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t9.inf", 
            LAST);

    web_url("bootstrap-collapse-ver-1359533772000.js", 
            "URL={url}/something/js/bootstrap/bootstrap-collapse-ver-1359533772000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t10.inf", 
            LAST);

    web_url("bootstrap-tooltip-ver-1359533772000.js", 
            "URL={url}/something/js/bootstrap/bootstrap-tooltip-ver-1359533772000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t11.inf", 
            LAST);

    web_url("bootstrap-dropdown-ver-1359533772000.js", 
            "URL={url}/something/js/bootstrap/bootstrap-dropdown-ver-1359533772000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t12.inf", 
            LAST);

    web_url("bootstrap-modal-ver-1359533772000.js", 
            "URL={url}/something/js/bootstrap/bootstrap-modal-ver-1359533772000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t13.inf", 
            LAST);

    web_url("VurderePiceofshitListePanel-ver-1360590665000.css", 
            "URL={url}/something/css/VurderePiceofshitListePanel-ver-1360590665000.css", 
            "Resource=1", 
            "RecContentType=text/css", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t14.inf", 
            LAST);

    web_url("bootstrap-popover-ver-1359533772000.js", 
            "URL={url}/something/js/bootstrap/bootstrap-popover-ver-1359533772000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t15.inf", 
            LAST);

    web_url("bootstrap-scrollspy-ver-1359533772000.js", 
            "URL={url}/something/js/bootstrap/bootstrap-scrollspy-ver-1359533772000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t16.inf", 
            LAST);

    web_url("bootstrap-tab-ver-1359533772000.js", 
            "URL={url}/something/js/bootstrap/bootstrap-tab-ver-1359533772000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t17.inf", 
            LAST);

    web_url("bootstrap-affix-ver-1359533772000.js", 
            "URL={url}/something/js/bootstrap/bootstrap-affix-ver-1359533772000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t18.inf", 
            LAST);

    web_url("bootstrap-datepicker-ver-1360590665000.js", 
            "URL={url}/something/js/bootstrap-datepicker-ver-1360590665000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t19.inf", 
            LAST);

    web_url("BasePage-ver-1360590665000.css", 
            "URL={url}/something/css/BasePage-ver-1360590665000.css", 
            "Resource=1", 
            "RecContentType=text/css", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t20.inf", 
            LAST);

    web_url("jquery.placeholder-local-modernisering-version-ver-1360590665000.js", 
            "URL={url}/something/js/jquery.placeholder-local-modernisering-version-ver-1360590665000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t21.inf", 
            LAST);

    web_url("bootstrap-typeahead-ver-1359533772000.js", 
            "URL={url}/something/js/bootstrap/bootstrap-typeahead-ver-1359533772000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t22.inf", 
            LAST);

    web_url("BasePage-ver-1360590665000.js", 
            "URL={url}/something/js/BasePage-ver-1360590665000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t23.inf", 
            LAST);

    web_url("GettingreadyForSomethingPage-ver-1360590665000.js", 
            "URL={url}/something/js/GettingreadyForSomethingPage-ver-1360590665000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t24.inf", 
            LAST);

    web_url("BstreetPanel-ver-1360590665000.js", 
            "URL={url}/something/js/BstreetPanel-ver-1360590665000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t25.inf", 
            LAST);

    web_url("wicket-debugbar-ver-1355500350000.css", 
            "URL={url}/something/wicket/resource/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar-ver-1355500350000.css", 
            "Resource=1", 
            "RecContentType=text/css", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t26.inf", 
            LAST);

    web_url("BstreetPanel-ver-1360590665000.css", 
            "URL={url}/something/css/BstreetPanel-ver-1360590665000.css", 
            "Resource=1", 
            "RecContentType=text/css", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t27.inf", 
            LAST);

    web_url("wicket-debugbar-ver-1355500350000.js", 
            "URL={url}/something/wicket/resource/org.apache.wicket.devutils.debugbar.DebugBar/wicket-debugbar-ver-1355500350000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t28.inf", 
            LAST);

    web_url("FatteSomethingPage-ver-1360590665000.css", 
            "URL={url}/something/css/FatteSomethingPage-ver-1360590665000.css", 
            "Resource=1", 
            "RecContentType=text/css", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t29.inf", 
            LAST);

    web_url("PiceofshitPanel-ver-1360590665000.js", 
            "URL={url}/something/js/PiceofshitPanel-ver-1360590665000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t30.inf", 
            LAST);

    web_url("wicket-ver-1355500350000.png", 
            "URL={url}/something/wicket/resource/org.apache.wicket.devutils.debugbar.DebugBar/wicket-ver-1355500350000.png", 
            "Resource=1", 
            "RecContentType=image/png", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t31.inf", 
            LAST);

    web_url("bug-ver-1355500350000.png", 
            "URL={url}/something/wicket/resource/org.apache.wicket.devutils.inspector.InspectorPage/bug-ver-1355500350000.png", 
            "Resource=1", 
            "RecContentType=image/png", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t32.inf", 
            LAST);

    web_url("remove-ver-1355500350000.png", 
            "URL={url}/something/wicket/resource/org.apache.wicket.devutils.debugbar.DebugBar/remove-ver-1355500350000.png", 
            "Resource=1", 
            "RecContentType=image/png", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t33.inf", 
            LAST);

    web_url("jquery-1.8.2-ver-1359533772000.js", 
            "URL={url}/something/js/jquery/jquery-1.8.2-ver-1359533772000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t34.inf", 
            LAST);

    web_url("harddrive-ver-1355500350000.png", 
            "URL={url}/something/wicket/resource/org.apache.wicket.devutils.debugbar.SessionSizeDebugPanel/harddrive-ver-1355500350000.png", 
            "Resource=1", 
            "RecContentType=image/png", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t35.inf", 
            LAST);

    web_concurrent_end(NULL);

    web_concurrent_start(NULL);

    web_url("prosessteg_gettingready.png", 
            "URL={url}/something/css/images/prosessteg_gettingready.png", 
            "Resource=1", 
            "RecContentType=image/png", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t36.inf", 
            LAST);

    web_url("somelogo.jpg", 
            "URL={url}/something/css/images/somelogo.jpg", 
            "Resource=1", 
            "RecContentType=image/jpeg", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t37.inf", 
            LAST);

    web_url("glyphicons-halflings-white.png", 
            "URL={url}/something/img/glyphicons-halflings-white.png", 
            "Resource=1", 
            "RecContentType=image/png", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t38.inf", 
            LAST);

    web_concurrent_end(NULL);

    web_reg_save_param_ex(
            "ParamName=someOtherThingsId",
            "LB=something/someOtherThing/",
            "RB=/gettingready",
            SEARCH_FILTERS,
            "Scope=Headers",
            LAST);

    //lr_output_message("SomeOtherThings ID:", lr_eval_string ("{someOtherThingsId}"));

    lr_think_time(3);

    lr_start_transaction("Logg inn");

    web_submit_data("create;jsessionid=+{SessionID}", 
            "Action={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0-1.IFormSubmitListener-createeSomeOtherThingForm", 
            "Method=POST", 
            "RecContentType=text/html", 
            "Referer={url}/something/someOtherThing/create;jsessionid=+{SessionID}?0", 
            "Snapshot=t39.inf", 
            "Mode=HTTP", 
            ITEMDATA, 
            "Name=neste", "Value=x", ENDITEM, 
            "Name=fnr", "Value={fnr}", ENDITEM, 
            "Name=someOtherThingsidbuse", "Value=", ENDITEM, 
            "Name=userId", "Value=P114818", ENDITEM, 
            "Name=authenticationLevel", "Value=3", ENDITEM, 
            "Name=identType", "Value=internal", ENDITEM, 
            "Name=consumerId", "Value=something", ENDITEM, 
            LAST);

    web_concurrent_start(NULL);

    web_url("modal-ver-1355500286000.js", 
            "URL={url}/something/wicket/resource/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal-ver-1355500286000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/gettingready?3", 
            "Snapshot=t40.inf", 
            LAST);

    web_url("wicket-ajax-jquery-ver-1355500070000.js", 
            "URL={url}/something/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-ver-1355500070000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/gettingready?3", 
            "Snapshot=t41.inf", 
            LAST);

    web_url("wicket-event-jquery-ver-1355500070000.js", 
            "URL={url}/something/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1355500070000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/gettingready?3", 
            "Snapshot=t42.inf", 
            LAST);

    web_url("modal-ver-1355500286000.css", 
            "URL={url}/something/wicket/resource/org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/modal-ver-1355500286000.css", 
            "Resource=1", 
            "RecContentType=text/css", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/gettingready?3", 
            "Snapshot=t43.inf", 
            LAST);

    web_url("wicket-ajax-jquery-debug-ver-1355500070000.js", 
            "URL={url}/something/wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-ajax-jquery-debug-ver-1355500070000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/gettingready?3", 
            "Snapshot=t44.inf", 
            LAST);

    web_concurrent_end(NULL);

    web_url("glyphicons-halflings.png", 
            "URL={url}/something/img/glyphicons-halflings.png", 
            "Resource=1", 
            "RecContentType=image/png", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/gettingready?3", 
            "Snapshot=t45.inf", 
            LAST);

    lr_end_transaction("Logg inn",LR_AUTO);

    lr_think_time(5);

    lr_start_transaction("Neste Gettingready something");

    web_url("gettingready", 
            "URL={url}/something/someOtherThing/{someOtherThingsId}/gettingready?2-1.IBehaviorListener.0-neste&_=1361189220848", 
            "Resource=0", 
            "RecContentType=text/xml", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/gettingready?3", 
            "Snapshot=t46.inf", 
            "Mode=HTTP", 
            LAST);

    web_url("vurderepiceofshit", 
            "URL={url}/something/someOtherThing/{someOtherThingsId}/vurderepiceofshit", 
            "Resource=0", 
            "RecContentType=text/html", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/gettingready?3", 
            "Snapshot=t47.inf", 
            "Mode=HTTP", 
            LAST);

    web_url("AjaxFormChoiceComponentUpdatingBehavior-ver-1355500070000.js", 
            "URL={url}/something/wicket/resource/org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior/AjaxFormChoiceComponentUpdatingBehavior-ver-1355500070000.js", 
            "Resource=1", 
            "RecContentType=text/javascript", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/vurderepiceofshit?5", 
            "Snapshot=t48.inf", 
            LAST);

    web_concurrent_start(NULL);

    web_url("icon_ikke_ok.png", 
            "URL={url}/something/css/images/icon_ikke_ok.png", 
            "Resource=1", 
            "RecContentType=image/png", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/vurderepiceofshit?5", 
            "Snapshot=t49.inf", 
            LAST);

    web_url("icon_ok.png", 
            "URL={url}/something/css/images/icon_ok.png", 
            "Resource=1", 
            "RecContentType=image/png", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/vurderepiceofshit?5", 
            "Snapshot=t50.inf", 
            LAST);

    web_url("Prosessteg_vurdere_piceofshit.png", 
            "URL={url}/something/css/images/Prosessteg_vurdere_piceofshit.png", 
            "Resource=1", 
            "RecContentType=image/png", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/vurderepiceofshit?5", 
            "Snapshot=t51.inf", 
            LAST);

    web_url("icon_vurderes.png", 
            "URL={url}/something/css/images/icon_vurderes.png", 
            "Resource=1", 
            "RecContentType=image/png", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/vurderepiceofshit?5", 
            "Snapshot=t52.inf", 
            LAST);

    web_concurrent_end(NULL);

    lr_end_transaction("Neste Gettingready something",LR_AUTO);

    lr_think_time(5);

    lr_start_transaction("Velg Oppfyllt og trykk lagre");

    web_submit_data("vurderepiceofshit_2", 
            "Action={url}/something/someOtherThing/{someOtherThingsId}/vurderepiceofshit?3-1.IBehaviorListener.0-vurderePiceofshitListe-vurderePiceofshitRepeater-4-vurderePiceofshitListItem-piceofshitHoved-innerPanel-piceofshitDetaljer-piceofshitForm-piceofshitsregelValg", 
            "Method=POST", 
            "RecContentType=text/xml", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/vurderepiceofshit?5", 
            "Snapshot=t53.inf", 
            "Mode=HTTP", 
            ITEMDATA, 
            "Name=piceofshitsregelValg", "Value=OPPFYLT", ENDITEM, 
            LAST);

    web_submit_data("vurderepiceofshit_3", 
            "Action={url}/something/someOtherThing/{someOtherThingsId}/vurderepiceofshit?4-1.IFormSubmitListener-vurderePiceofshitListe-vurderePiceofshitRepeater-4-vurderePiceofshitListItem-piceofshitHoved-innerPanel-piceofshitDetaljer-piceofshitForm", 
            "Method=POST", 
            "RecContentType=text/html", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/vurderepiceofshit?5", 
            "Snapshot=t54.inf", 
            "Mode=HTTP", 
            ITEMDATA, 
            "Name=piceofshitForm33_hf_0", "Value=", ENDITEM, 
            "Name=piceofshitsregelValg", "Value=OPPFYLT", ENDITEM, 
            LAST);

    lr_end_transaction("Velg Oppfyllt og trykk lagre",LR_AUTO);

    lr_think_time(5);

    lr_start_transaction("Velg neste etter Oppfyllt Uttak av pensjon");

    web_url("Neste", 
            "URL={url}/something/someOtherThing/{someOtherThingsId}/vurderepiceofshit?7-1.ILinkListener-neste", 
            "Resource=0", 
            "RecContentType=text/html", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/vurderepiceofshit?7", 
            "Snapshot=t55.inf", 
            "Mode=HTTP", 
            LAST);

    lr_end_transaction("Velg neste etter Oppfyllt Uttak av pensjon",LR_AUTO);

    lr_think_time(5);

    lr_start_transaction("Send til beslutning");

    web_url("Send til beslutning", 
            "URL={url}/something/someOtherThing/{someOtherThingsId}/forslagsomething?8-1.ILinkListener-neste", 
            "Resource=0", 
            "RecContentType=text/html", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/forslagsomething?8", 
            "Snapshot=t56.inf", 
            "Mode=HTTP", 
            LAST);

    lr_end_transaction("Send til beslutning",LR_AUTO);

    lr_think_time(5);

    lr_start_transaction("Huk av for godkjent beslutning");

    web_submit_data("fattesomething", 
            "Action={url}/something/someOtherThing/{someOtherThingsId}/fattesomething?9-1.IBehaviorListener.0-tabbedPanel-content-panels-0-panel-tableBody-kontrollpunkter-0-kontrollpunkt-beslutningForm-valgtBeslutning", 
            "Method=POST", 
            "RecContentType=text/xml", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/fattesomething?9", 
            "Snapshot=t57.inf", 
            "Mode=HTTP", 
            ITEMDATA, 
            "Name=valgtBeslutning", "Value=0", ENDITEM, 
            LAST);

    lr_end_transaction("Huk av for godkjent beslutning",LR_AUTO);

    lr_think_time(5);

    lr_start_transaction("Godkjenn og iverksett");

    web_url("fattesomething_2", 
            "URL={url}/something/someOtherThing/{someOtherThingsId}/fattesomething?9-1.ILinkListener-godkjenn", 
            "Resource=0", 
            "RecContentType=text/html", 
            "Referer={url}/something/someOtherThing/{someOtherThingsId}/fattesomething?9", 
            "Snapshot=t58.inf", 
            "Mode=HTTP", 
            LAST);

    web_url("thatsallfolks.jpg", 
            "URL={url}/something/css/images/thatsallfolks.jpg", 
            "Resource=1", 
            "RecContentType=image/jpeg", 
            "Referer={url}/something/wicket/bookmarkable/no.nav.something.web.pages.terminus.TerminusPage?someOtherThingId={someOtherThingsId}", 
            "Snapshot=t59.inf", 
            LAST);

    lr_end_transaction("Godkjenn og iverksett",LR_AUTO);

    return 0;

推荐答案

web_reg_find()上下文是下一个调用.在HTML模式下,调用包括子调用.您需要非常小心在URL模式下放置web_reg _ *()调用,以确保您具有适当的上下文.是的,即使没有找到值,web_reg_find()也会每次成功执行.您将需要手动检入代码以查看在调用中找到了多少个文本实例.

web_reg_find() context is the next call. With HTML mode that call made include subcalls. You need to be very careful on placement of web_reg_*() calls in URL mode to ensure that you have the proper context. And yes, web_reg_find() will execute successfully every single time even if it does not find the value. You will need to manually check in your code for how many instances of the text were found in the call.

当您遇到更大的问题时,脚本会导致错误吗?通常,可以.如果您使用的接口超出其预期用途的规格,则很可能会产生错误错误.常见原因有哪些,对多个用户使用相同的登录凭据,其中所有用户在生产中都是不同的,用户对同一组数据进行操作会导致锁定和阻塞问题,而在生产中,每个数据集都是不同的,具有没有思考时间或迭代时间(基本上是爆炸界面),等等...

As you your larger question, can a script cause an error. In general, yes it can. If you are exercising an interface in an out of spec fashion from its intended use then the likelihood is high for false errors to be generated. What are some of the common causes, using the same login credentials for multiple users where all users would be distinct in production, users operating against the same set of data causing locking and blocking issues where in production each of the datasets would be distinct, having no think time or iteration time (essentially blasting the interface), etc...

如果您以一种特殊的方式来使用有问题的界面,就像用户使用该界面时所使用的方式一样,并且发现了错误,则这些错误与服务器上使用的代码直接相关.我建议利用任何数量的商业或开源JVM诊断实用程序来查看资源的消耗位置,并将这些信息传回给开发人员.

If you exercise the interface in question in an in-spec manner, the same way in which a user will be exercising the interface, and you find errors then the errors are directly related to the code in use on the server. I would recommend leveraging any number of commercial or open source JVM diagnostic utilities to see where the resources are being consumed and pass that information back to the developers.

这篇关于响应时间的总体趋势表明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆