LoadRunner-遇到的问题及解决方法

LoadRunner常见问题解决方法 1.LR 脚本为空的解决方法如下: 1.去掉ie设置中的第三方支持取消掉 2.在系统属性-高级-性能-数据执行保护中,添加loadrunner安装目录中的vugen.exe文件. 有可能是由于录制的URL地址采用的是localhost的问题,改成分配的IP地址或127.0.0.1试试。 3、插入文本检查点步骤时,使用web_reg_find,通常TextPfx和TextSfx中会包含 阅读详情

用Loadrunner已经有大概半年多的时间了,之前一直忙于项目,没时间整理遇到的问题,现在终于可以来写一写了!


1. 在Loadrunner脚本回放时,所有以put方式发送的request在回放时都失败了,并且报org.xml.sax.SAXParseException: Content is not allowed in prolog的错误.
原因是:
LoadRunner录制时,如果遇到put方式传输的,会在request中把 EncType=application/vnd.ptc.sc+json;version=1给忽略掉,因此你需要在这类request中手动的讲这句话加回去.如下所示:


2. 如果一个URL在replay的时候有redirect,我们需要抓取第一个URL的response值,则通过web_reg_save_param();函数中的LAST属性控制,比如我们需要知道第一个URL的response,则无需加这个属性,如果想知道第二个URL的response,则在函数中要加LAST的属性

3. 在并发时如何控制测试数据
3.1 如果你在新增数据,数据中有个字段必须每次要唯一的,那么可以选择DateTime的类型加入时间戳,可以设置到毫秒级,之前尝试过用秒,但是当并发量比较大时,同一点产生的数据比较大还是会导致不够用,所以尽量设置到毫秒吧!

3.2 如果在模拟网站登入时,如果希望每个用户用自己特有的账号,并且用该账号持续一段时间的重复操作,那么可以将用户名设为unique的类型,并且将重复方式选为once,这样只会在你第一次登入的时候输入这个账号,之后所有的iteration都会用这个账号进行操作,这一如果并发用户有10 个,而你准备的username 只有5个并且你选的是unique的类型时,是会报错的,你必须准备至少10 个账号来实现并发

4. 在LoadRunner Control 运行脚本时遇到“Error: missing newline in C:\LoadRunner...ParameterName.dat."的错误。
原因:在参数化的变量的最后一行应该要以空行结束。可以insert a new row then remove the empty row.

5. 如何在loadrunner controller中查看snapshot
在runtime setting->General->Miscellaneous中,选中Generate snapshot on error,但绝对不能选中Continue on error的选项,然后在result的log folder中



ZLMediaKit源码分析(二)推流创建 ZLMediaKit推流结构体创建是在RtspSession::onRecv()之后。如何触发onRecv()请参考上一篇文章这里不在赘述。 阅读详情

相关推荐

VQGAN实战:从文本到高清图像的保姆级生成教程(含PyTorch代码)

本文详细介绍了VQGAN(Vector Quantized Generative Adversarial Network)在文本到高清图像生成中的应用,提供了从环境配置到模型加载、文本编码及图像生成的完整PyTorch代码教程。通过实战案例和高级调优技巧,帮助开发者快速掌握VQGAN的核心技术,实现百万像素级的高清图像生成。

u8v9w0x1y的博客 649

关于LoadRunner的Snapshots

在LR的树型视图中提供了图形方式展现测试步骤。 A snapshot is a graphical representation of the current step. When working in Tree view, VuGen displays the snapshot of the selected step in the right pane. The snapshot sh

软件质量优化 8655

算法导论之线性规划

线性规划,充斥着运筹学,在图的单源最短路径求解差分约束系统就是用到线性规划。怎么样问题可以建模为线性规划来解决呢?在给定的有限的资源和竞争约束情况下,取得最大化或最小化目标的问题。导论中给出政治竞选问题、航空航线调度问题、钻井采油问题。最大化或最小化目标是函数的因变量,自变量就是资源的约束因素,其函数就是由这些制约因素构成的等式或不等式。下面数学定义下线性规划。 在一般线性规划问题中,最优化一个

医疗影像检索 2万+

LoadRunner12设置文本检查点及图片检查点

LR12跟LR11有很大一部分是不一样的,但是网上的教程多数还是以LR11为主,所以我在进行插入文本检查点练习的时候一直找不到LR11说的,最后去网上找也遍历不到。 LR12设置文本检查点方法: 1、打开Thumbnail Explorer Tools -> Options -> Scripting -> Thumbnails , 勾选 Enable Thumbnail Explorer复选

宋天真的博客 1万+

svn co --depth和svn up --set-depth 只check out下一层文件 只更新指定文件 只更新下一层的用法

svn的工程可能很大 有时我们只需要部分文件即可 这里介绍几个命令 1.svn co(check out) --depth --depth=empty,files,immediates,infinity 假设某svn结构如下 svn://root/PRO/A_dir/a svn://root/PRO/B_dir/b svn://root/PRO/c_file svn co --depth=emptysvn://root/PRO 此时只会在本地check out出 PRO/的空目录。 sv.

cy413026的博客 1万+

k-Wave仿真例程:创建超声换能器并绘制声场分布

k-Wave软件是为了模拟超声波在1D、2D或3D中的传播。应用示例包括:- 均匀和非均匀介质中的传播- 模拟各种类型的传感器- 模拟多普勒效应- 衍射、折射和反射- 光声、超声成像- 波束合成、成像重建- 模拟弹性波。

weixin_38452364的博客 6330

LoadRunner学习笔记——Day1

Day1 一、       什么是性能测试: 1、在线取款:一个人取款2000,成功——功能测试通过 2、在线取款:            1)一个人取款(计时)2000,用时0.5小时——功能测试通过,性能测试结果很差(性能测试考察的一个方面:响应时间过长)            2)1000人共同取款,系统崩溃——性能测试考察的一个方面:多用户支持程度  3、性能测试——必须使用工

Yedday的博客 756

保姆级教程:用SNAP处理哨兵一号数据,5步搞定城区范围提取(附江西晋城案例)

本文提供了一份详细的保姆级教程,介绍如何使用SNAP软件处理哨兵一号数据,通过5个关键步骤快速提取城区范围。以江西晋城为例,教程涵盖数据准备、预处理、核心处理流程、自动化搭建及成果分析,帮助用户轻松掌握SNAP操作技巧,适用于城市规划、环境监测等领域。

weixin_32535389的博客 454

【测试技术-性能测试-实战1】使用Loadrunner自带的系统学习脚本编写和脚本增强。

在该脚本中,所有参数均是固定的,比如订票操作,每次都是订的Denver->Frankfurt,如果想要每次预定都使用不同的出发/到达城市对,则需要进行对响应的数据进行参数化,具体操作参考:https://blog.youkuaiyun.com/weixin_42115131/article/details/124965795。然而登录后,发现预定的数量并没有增加。关联完成后,重新回放,然后登录网站检查,可以看到Itinerary中订单多了一个记录,每回放一次都会多一条,说明关联成功,脚本可以正常完成登录了。

百晓生说测试的博客 2024

ZYNQ PS裸机开发RS485

RS485 是一种通用的通信标准,广泛用于数据采集和控制应用中。它的主要优点之一是它允许将多个 RS485 设备放在同一条总线上,这使得多个节点可以相互连接。RS-485是美国电子工业协会(EIA)在1983年批准了一个新的平衡传输标准(balanced transmission standard),EIA一开始将RS(Recommended Standard)做为标准的前缀,不过后来为了便于识别标准的来源,已将RS改为EIA/TIA。

baidu_34971492的博客 831

innovus:set_clock_latency与insertion_delay

当1ns clock latency设置在capture上,在report_timing报告中体现在other end arrival time以及capture clock path的Arrival Time上。因为-1ns的insertion delay存在,所以skew group报告中显示的Arrival (ns)是减1ns的结果,即1.819-1=0.819 ns。CTS阶段create_ccopt_clock_tree_spec之后,spec中会产生对应的insertion_delay命令。

m0_61544122的博客 1623

LoadRunner出现error问题及解决方法总结

这个好DD是我从一个GG的BLOG里转的,非常受用,尤其新手。。。 嘿嘿LoadRunner出现error问题及解决方法总结一、Step download timeout (120 seconds)这是一个经常会遇到的问题,解决得办法走以下步骤:1、   修改run time setting中的请求超时时间,增加到600s,其中有三项的参数可以一次都修改了,HTTP-request con

yyu0315的专栏 916

基于江协科技STM32创建HAL库工程模板

基于江协科技STM32入门教程创建的HAL库工程模板

2401_82728381的博客 1135

loadrunner常见问题解决方法

1  LoadRunner录制脚本时为什么不弹出IE浏览器? 解决方法: 当一台主机上安装多个浏览器时,LoadRunner录制脚本经常遇到不能打开浏览器的情况,可以用下面的方法来解决。   启动浏览器,打开Internet选项对话框,切换到高级标签,去掉“启用第三方浏览器扩展(需要重启动)”的勾选,然后再次运行VuGen即可解决问题   提示:通常安装Firefox等浏览器后,都会勾选上...

King博客 1679

最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版

Part-E1-SDIO-Specification-Ver4.00-Final-120220.pdf:最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版,包括SDIO 接口的外设,SDIO 接口官方协议等。

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

LoadRunner中文乱码问题解决方法

LoadRunner中文乱码问题解决方法

zhengxiuchen86的博客 212

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

LoadRunner回放脚本常见问题及解决方法

loadrunner回放脚本常见问题及解决方法 LoadRunner超时错误:在录制Web协议脚本回放时超时情况经常出现,产生错误的原因也有很多,解决的方法也不同。 错误现象1:Action.c(16): Error -27728: Step download timeout (120 seconds) has expired when downloading non-resource(s)。...

qq_35913899的博客 1万+

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

安装Loadrunner遇到的一些问题以及解决方法,license,controller,注册表等

**一、点击controller,打开脚本时出现Failed to create Online:无效指针??** 解决方案:我验证成功解决此问题,只限于我的版本和情况。 环境:win7; lr11;无安全软件,如360安全卫士以及一些杀毒软件等。 操作步骤: 1.点击loadrunner11安装程序setup.exe; 2.选择【完全安装】; 3.选择【修复】; 4.下一步,直到成功。

hqq1990的博客 9731

LoadRunner中脚本回放问题及解决方法(上)

在运行脚本回放过程中,有时会出现错误,这在实际测试中是不可避免的,毕竟自动录制生成的脚本难免会有问题,需要运行脚本进行验证,把问题都解决后才加入到场景中进行负载测试。

zjj32的博客 1503

Loadrunner 运行示例遇到的问题及解决方法

当loadrunner安装及破解之后,可以通过测试软件中自带的小程序 根据说明文档的步骤,打开Controler,然后打开安装包中的自带测试文本。\tutorial目录中的demo_scenario.lrs。如果脚本路径显示为红色,表示脚本路径出错。要输入正确的路径,选择脚本并单击向下箭头。单击浏览按钮,并转至 \tutorial目录中的demo_script。 一、如果run

qq_33600396的博客 2833

使用Loadrunner11过程中遇到的一些问题及解决方法

1.录制时事件始终显示为“0” (1)看自己的电脑装的杀毒软件与Loadrunner可冲突,如果冲突就关掉杀毒软件; (2)IE是否为默认浏览器; (3)电脑问题,重启下试试。 2.无法启动IE,录制时事件始终显示为“0”,查看Windows任务管理器-进程,能看到iexplore,且点击停止时Loadrunner卡死 在任务管理器的进程中将iexplore终止掉,Loadru...

dizhen3663的专栏 272

LoadRunner常用问题解决方法

1. Error -27778: SSL protocol error when attempting to connect with host "…" 解决方案: 在run-time settings->preferences->advanced里勾上WININET replay instead of Sockets。

tfxqhy的博客 2800

Loadrunner中文乱码问题解决方法总结

工具版本:loadruner11中文版 Loadrunner录制回放时中文乱码的问题困扰了我一段时间,网上找到了一些解决方法,但是并没有全部试用过,以下是我找到的解决方法的一个汇总,希望对看到博客的同学有所帮助。 PS:我使用的loadrunner11中文版,其他版本没有使用过,所以不清楚会不会有什么不同,大家自己判断。 解决方法1: 打开Virtual User Generator>创...

weixin_34352005的博客 241
上一篇: 笔记本远程连接全屏显示
下一篇: NotePad++比较功能不会着重标识差异点
Bella_Ding
博客等级 码龄17年 1粉丝 6原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值