当前位置:网站首页>Failed to virtualize table with JMeter
Failed to virtualize table with JMeter
2022-07-05 18:03:00 【Ben returns from flying goose treading the snow】
We often use Jmeter Tools , Put the manual operation of East and West points on the browser , Write a script , convenient CI/CD Test the new version in the process , In this way, you can avoid manual operation for each version iteration .
Recently in automation IBM Of CP4D Of Data Virtualization When this function , Encountered a problem that took a lot of effort to find the root , Record here , Also share with you .
problem : In the brand new cluster Up operation Jmeter Script , Often in virtualize table An error occurred in this step , An error is as follows .
{
"code": 500,
"message": "Error: CHECK TABLE EXISTENCE -- DB2 SQL Error: SQLCODE=-552, SQLSTATE=42502, SQLERRMC=USER101;IMPLICIT CREATE SCHEMA, DRIVER=4.31.10"
}When the script reports an error , I will carefully observe the errors in the script first , Also look at the wrong one request Previous request See if there is something wrong ; Without a clue, I'll do the same operation on the same data in the browser , See if there is no problem on the browser . In this way, I can judge whether it is a script problem or cluster There is a problem .
First , Check the script for errors http request, Include sampler result,request body,request header,response body. especially request body and request header, Make sure nothing is wrong . How to ensure that nothing is wrong ? The most direct way , It is when you do the same operation on the browser that you open the browser Inspect function , Go to the Network This column , You can observe the specific content when operating on the browser . I use it Firefox browser , Pictured , Right click on the browser page , choice Inspect, Then select Network. From this point on , All operations on the browser will be recorded in Network in . So I can see the details in virtualize table All the details of this step , So I can compare it with the script , To ensure accuracy .

Check it out , Nothing different , That is to say, these details are all right . It also shows that there is no problem in browser operation , explain cluster That's all right. , The problem must be in the script . What's the problem ?
I tried to run the script again , Found no problem ! Then delete all data , Include connection、virtualized data、data asset, Run the script again , No problem ! I feel confused .
I want to delete DV instance Start over again , Because creating DV instance It takes a lot of time , It usually takes more than an hour to ready. However, in order to verify the script, I deleted DV instance, Run the script again from the beginning , Including the creation of DV instance.
Okay , The problem arises again ... I feel puzzled and feel puzzled , But I suspect that my operation on the browser may leave something behind , And this thing happens to be sending virtualize table This http request When you need it . How to verify ?
I opened the browser again Inspect, do virtualize table The operation of , Then check it out Network One by one request. I found one create schema Of request, This is a POST, But I didn't create it manually in the browser schema. That is to say , When the browser does not find the autofill schema When , Automatically sent a POST request To create schema. Is it the mistake caused by missing this step ? Look at the error report ,IMPLICIT CREATE SCHEMA, It's true schema of .
therefore , I quickly in Jmeter Add a judgment to the script , Such as schema Nonexistence POST request To create schema. After adjustment , Delete DV instance, Run script , Sure enough, there is no mistake .


Looking back , This kind of problem is actually quite secret , Because when writing scripts , Generally, it is combined with browser , Operate on the browser , then request Moved to Jmeter in , It is likely that some hidden automatic operation will be missed , And after missing, in the same cluster I can't see the problem in the script , This is the deepest place to hide . therefore , The best way is , In the brand new cluster in , When operating on the browser for the first time , Just use Jmeter Recording function of , Put all the request All recorded , Then select relevant and meaningful ones one by one request. Next I'll talk about how to use Jmeter Recording script .
边栏推荐
- What are the requirements for PMP certification? How much is it?
- Generate XML schema from class
- 使用Jmeter虚拟化table失败
- pytorch yolov5 训练自定义数据
- Privacy computing helps secure data circulation and sharing
- Wu Enda team 2022 machine learning course, coming
- Numerical calculation method chapter8 Numerical solutions of ordinary differential equations
- Ten capabilities that cyber threat analysts should have
- ISPRS2022/云检测:Cloud detection with boundary nets基于边界网的云检测
- Redis基础
猜你喜欢

Redis基础

Leetcode exercise - 206 Reverse linked list

Why is all (()) true and any (()) false?

“12306” 的架构到底有多牛逼?

Mask wearing detection based on yolov3

JVM third talk -- JVM performance tuning practice and high-frequency interview question record

模拟百囚徒问题

Anaconda中配置PyTorch环境——win10系统(小白包会)

华夏基金:基金行业数字化转型实践成果分享

图扑软件数字孪生 | 基于 BIM 技术的可视化管理系统
随机推荐
FCN: Fully Convolutional Networks for Semantic Segmentation
tkinter窗口预加载
数值计算方法 Chapter8. 常微分方程的数值解
Size_ T is unsigned
Cmake tutorial step5 (add system self-test)
Why is all (()) true and any (()) false?
访问数据库使用redis作为mysql的缓存(redis和mysql结合)
Six bad safety habits in the development of enterprise digitalization, each of which is very dangerous!
小林coding的内存管理章节
Which platform of outer disk gold is regular and safe, and how to distinguish it?
神经网络自我认知模型
图扑软件数字孪生 | 基于 BIM 技术的可视化管理系统
华夏基金:基金行业数字化转型实践成果分享
[performance test] full link voltage test
检查命名空间和类
How to modify MySQL fields as self growing fields
Redis基础
Nanjing University: Discussion on the training program of digital talents in the new era
ISPRS2022/雲檢測:Cloud detection with boundary nets基於邊界網的雲檢測
Matlab built-in function how different colors, matlab subsection function different colors drawing