控制器在请求时卡住并且不循环的Jmeter(Jmeter while controller gets stuck on request and does not loop)
我正在编写一个测试,等待使用while控制器的特定响应。 更确切地说,我用jmeter发送消息,然后该消息获得“发送”状态,并且在大约30秒后它将状态改变为“已接收”。 因此,使用while控制器,我会尝试获取该消息需要多长时间才能收到。
- 所以我创建了“状态”变量并给了他“尚未设置”的价值
- 设置控制器条件为$ {__ javaScript(“$ {State}”。indexOf(“Received”)== -1,)}
- 然后在while控制器中,我将http请求项添加到该页面,该页面应该包含更改时的已接收状态
- 在http请求中我添加正则表达式提取器,它应该将所有响应文本的reg表达式设置为“(。+)”并将引用名称设置为“State”
- 在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.
- So I create "State" variable and give him value "not set yet"
- Set while controllers condition to ${__javaScript("${State}".indexOf("Received") == -1,)}
- Then in while controller I add http request item with that page which should contain received state when it changes
- In http request I add regex extractor which should take all response text with reg expression set to "(.+)" and reference name to "State"
- 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?
原文:https://stackoverflow.com/questions/39638470
最满意答案
cmake是一个独立于平台的makefile。 你可以从cmake生成visual studio项目,这可以比导入到visual studio中。 但是您需要在计算机上安装cmake。 要使visual studio项目调用cmake,如下所示:
cmake -G "Visual Studio 9 2008"
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?(How do I use CMake?)[2023-05-04]
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 ...
-
如何在没有CMake的情况下使用Visual Studio 2013设置Dlib?(How to setup Dlib with Visual Studio 2013 without CMake?)[2022-04-24]
我在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的情况下使用visual studio编译opencv(How to compile opencv with visual studio without CMake)[2023-12-08]
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 ... -
如何在没有CMake的情况下使用Visual Studio 2013设置Dlib?(How to setup Dlib with Visual Studio 2013 without CMake? i)[2023-10-09]
您可以按照此链接在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).
-
必须用Mingw编译Opencv才能在Windows下的QT中使用?(Must compile Opencv with Mingw in order to use in QT under Windows?)[2022-03-26]
您也可以使用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 ...