首页 \ 问答 \ 控制器在请求时卡住并且不循环的Jmeter(Jmeter while controller gets stuck on request and does not loop)

控制器在请求时卡住并且不循环的Jmeter(Jmeter while controller gets stuck on request and does not loop)

我正在编写一个测试,等待使用while控制器的特定响应。 更确切地说,我用jmeter发送消息,然后该消息获得“发送”状态,并且在大约30秒后它将状态改变为“已接收”。 因此,使用while控制器,我会尝试获取该消息需要多长时间才能收到。

  1. 所以我创建了“状态”变量并给了他“尚未设置”的价值
  2. 设置控制器条件为$ {__ javaScript(“$ {State}”。indexOf(“Received”)== -1,)}
  3. 然后在while控制器中,我将http请求项添加到该页面,该页面应该包含更改时的已接收状态
  4. 在http请求中我添加正则表达式提取器,它应该将所有响应文本的reg表达式设置为“(。+)”并将引用名称设置为“State”
  5. 在http请求中添加5秒的常量计时器

当我执行这个测试时,它会在http请求后被卡住,这个请求以绿色执行,接下来没有任何反应,这里有什么问题?

更新------------------------------------------------- --------------------

Siunčiamas=发送

尝试了不同的东西。 控制器值更改为 - 时更改

$ {__ javaScript(“$ {State}”==“Siunčiamas”,)}

和reg表达式提取器值 -

class =“label-primary label”id =“parentSyncState”>(Siunčiamas)<

在控制器之前我给状态变量值“Siunčiamas”

现在它停留在http请求上,但我在它之后添加了调试采样器,所以它每隔5秒就会重复一次。 但它应循环,直到正则表达式提取器找不到所需的值并返回不等于“Siunčiamas”的默认值,因此控制器失败。 我在这里没有得到什么吗?

截图


I am writing a test that waits for a specific response using while controller. To be more precise, I send a message with jmeter, then that message gets state "sending" and after about 30 seconds it state changes to "received". So using while controller I try to get how much time that message needs to get received.

  1. So I create "State" variable and give him value "not set yet"
  2. Set while controllers condition to ${__javaScript("${State}".indexOf("Received") == -1,)}
  3. Then in while controller I add http request item with that page which should contain received state when it changes
  4. In http request I add regex extractor which should take all response text with reg expression set to "(.+)" and reference name to "State"
  5. Add constant timer with 5 sec in http request

When I execute this test, it gets stuck after http request, which is executed in green and nothing happens next, what can be the problem here?

UPDATE ---------------------------------------------------------------------

Siunčiamas=Sending

Tried something different. Changed while controller value to -

${__javaScript("${State}" == "Siunčiamas",)}

and reg expression extractor value to -

class="label-primary label" id="parentSyncState">(Siunčiamas)<

and before while controller I'm giving State variable value "Siunčiamas"

Now it stucks on http request, but I added debug sampler after it, so it keeps repeating every 5 seconds. But it should be looping until regex extractor does not find required value and return default value which is not equal to "Siunčiamas" so while controller fails. Am I not getting something here?

Screenshot


原文:https://stackoverflow.com/questions/39638470
更新时间:2023-06-27 16:06

最满意答案

cmake是一个独立于平台的makefile。 你可以从cmake生成visual studio项目,这可以比导入到visual studio中。 但是您需要在计算机上安装cmake。 要使visual studio项目调用cmake,如下所示:

 cmake -G "Visual Studio 9 2008" 

Cmake Wiki


cmake is an platform independent makefile. You can generate from cmake also visual studio projects, which can than imported into visual studio. But you need to install cmake on your computer. To make a visual studio project call cmake like this:

 cmake -G "Visual Studio 9 2008" 

Cmake Wiki

相关问答

更多
  • CMake采用CMakeList文件,并将其输出到平台特定的构建格式,例如Makefile,Visual Studio等。 你先在CMakeList上运行CMake。 如果您在Visual Studio中,则可以加载输出项目/解决方案。 CMake takes a CMakeList file, and outputs it to a platform-specific build format, e.g. a Makefile, Visual Studio, etc. You run CMake on t ...
  • 通过手动运行脚本来管理它: cmake -DOUTPUT_PATH=c:/opencv/kernels2.cpp -DCL_DIR:PATH=c:/opencv/modules/ocl/src/kernels -P "c:\opencv\modules\ocl\cl2cpp.cmake" 由于某种原因(可能与使nonfree_surf无法处理的原因相同),并非每个必需的函数都以这种方式处理,因此我将nonfree_surf字符串复制粘贴到kernels.cpp中,然后继续构建。 如果有人需要二进制文件, ...
  • 在Visual C ++中,您需要告诉编译器在何处查找OpenCV LIBRARIES和头文件。 看起来编译器找不到这些库。 或根据: http://opencv.willowgarage.com/wiki/VisualC%2B%2B a)OpenCV 2.1在64位配置,升级方面存在问题。 b)如上面的链接所示,使用CMake和Visual Studio以64位模式在您的系统上构建库。 In Visual C++ you need to tell the compiler where to look fo ...
  • 好的,看起来OpenCVConfig.cmake在连续调用FIND_PACKAGE()时被破坏了OpenCV_LIBS变量。 一个快速的解决办法是将FORCE添加到OpenCVConfig.cmake第91-94 OpenCVConfig.cmake : # Provide the libs directories to the caller set(OpenCV_LIB_DIR_OPT "C:/opencv/build2/lib" CACHE PATH "Path where release OpenCV ...
  • 所以,在CMakeVS11FindMake.cmake文件中,我必须更改注册表项的所有引用 HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\11.0 到关键 HKEY_CURRENT_USER\\Software\\Microsoft\\WDExpress\\11.0_Config (只需将它们添加为额外提示即可使用) So, in the file CMakeVS11FindMake.cmake I had to change all re ...
  • 我在https://theprosperousheartblog.wordpress.com/2016/10/20/how-to-setup-dlib-c-in-the-visual-studio-2013/上写了一个教程 我仍然使用CMake,但我用它来创建一个Visual Studio项目。 CMake很棒,一切都是自动的。 使用CMake创建Visual Studio项目后,您可以在Visual Studio中正常处理项目。 I think I found the answer in https:// ...
  • cmake是一个独立于平台的makefile。 你可以从cmake生成visual studio项目,这可以比导入到visual studio中。 但是您需要在计算机上安装cmake。 要使visual studio项目调用cmake,如下所示: cmake -G "Visual Studio 9 2008" Cmake Wiki cmake is an platform independent makefile. You can generate from cmake also visual stu ...
  • 您可以按照此链接在visual studio 2013中设置dlib 。 在Visual Studio 2013中设置Dlib 创建一个空控制台项目,然后按照步骤操作 设置属性 - 在此步骤中,您需要找到物业经理。 然后,你会看到经理将出现在你的右边栏中,也许当它不适合你时,你可以在其他栏中找到它。 打开项目,您将看到两个名为Debug | Win32和Release | Win32的目录 。 因此,在下一步中,您应该使用鼠标右键单击每个以添加新项目属性表 。 在这里,您可以看到我为每个目录创建了工作表, ...
  • 包含位于sources文件夹中,不在build文件夹中(如果您没有Build INSTALL项目)。 Includes located in sources folder, not in build folder (if you did not Build INSTALL project).
  • 您也可以使用Visual Studio编译它。 opencv includepaths已经有opencv2部分。 所以正确的includepath只会是: C:\\opencv2.4.11\\opencv\\build\\include You can compile it with Visual Studio as well. The opencv includepaths already have the opencv2 part of it. So the correct includepath w ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)