内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

LoadRunner關(guān)聯(lián)函數(shù)的使用loadruner關(guān)聯(lián)web_reg_save_param

以下事例介紹了LoadRunner 關(guān)聯(lián)函數(shù)的使用,希望對大家有所幫助。

創(chuàng)新互聯(lián)是一家專業(yè)提供莘縣企業(yè)網(wǎng)站建設(shè),專注與做網(wǎng)站、成都網(wǎng)站制作、HTML5建站、小程序制作等業(yè)務(wù)。10年已為莘縣眾多企業(yè)、政府機(jī)構(gòu)等服務(wù)。創(chuàng)新互聯(lián)專業(yè)網(wǎng)站設(shè)計(jì)公司優(yōu)惠進(jìn)行中。

web_reg_save_param 和關(guān)聯(lián)的使用

1. 作用:保存動(dòng)態(tài)數(shù)據(jù)。該數(shù)據(jù)的來源為html源碼。
2.使用
順序:web_reg_save_param(); 
          web_submit_data(); 
          lr_message(); 

3.web_reg_save_param()的屬性
1)在尋找動(dòng)態(tài)數(shù)據(jù)時(shí),可以對該數(shù)據(jù)的范圍進(jìn)行限制,通過左邊界和右邊界進(jìn)行限制。即:LB,RB兩個(gè)屬性。

Portion of string to save to parameter

LB

RB

entire string

empty

empty

a string delimited by boundaries

boundary

boundary

the beginning of a string until the first right boundary

empty

boundary

the last left boundary until the end

boundary

empty


來源loadrunner幫助文檔
其中LB/IC 是忽略字符的大小寫。

2)ORD屬性
是將找到的動(dòng)態(tài)變量保存到數(shù)組中。默認(rèn)是ord=1.如果搜索到的字符是多個(gè),并想將他保存在數(shù)組里,則ord=all;他們分別保存到pr_1 pr_2 .....。其中pr_count為內(nèi)部函數(shù),統(tǒng)計(jì)數(shù)組的個(gè)數(shù)。

3)search 屬性
設(shè)置搜索的范圍,可以是header,body,header and body,html body。

4)SaveOffset屬性
偏移量。從搜索到的字符串中,取子串。默認(rèn)saveoffset=0.
5) SaveLen 屬性
取串的長度。也是從搜索到的字符串中,取子串。


4.例子:
1)
char *pr;
web_reg_save_param("pr","LB=pr","RB="<br>",LAST); 
web_submit_data("pr.php 
                          "url=http://" 
                           "TargerFrame="  
                            ...... 
                            LAST); 
lr_message("value: %s",lr_eval_string("{pr}"));

然后你就可以在運(yùn)行的log中看到結(jié)果。
2)關(guān)聯(lián)的例子

char *pr;
web_reg_save_param("pr","LB=pr","RB="<br>",LAST); 
web_submit_data("pr.php 
                          "url=http://" 
                           "TargerFrame="  
                            ...... 
                            LAST); 

i=atoi(pr_count)

這個(gè)函數(shù)的作用還是蠻大的。希望能得到大家的關(guān)注。

web_reg_save_param 和關(guān)聯(lián)的使用

1. 作用:保存動(dòng)態(tài)數(shù)據(jù)。該數(shù)據(jù)的來源為html源碼。
2.使用
順序:web_reg_save_param(); 
          web_submit_data(); 
          lr_message(); 

3.web_reg_save_param()的屬性
1)在尋找動(dòng)態(tài)數(shù)據(jù)時(shí),可以對該數(shù)據(jù)的范圍進(jìn)行限制,通過左邊界和右邊界進(jìn)行限制。即:LB,RB兩個(gè)屬性。

Portion of string to save to parameter

LB

RB

entire string

empty

empty

a string delimited by boundaries

boundary

boundary

the beginning of a string until the first right boundary

empty

boundary

the last left boundary until the end

boundary

empty


來源loadrunner幫助文檔
其中LB/IC 是忽略字符的大小寫。

2)ORD屬性
是將找到的動(dòng)態(tài)變量保存到數(shù)組中。默認(rèn)是ord=1.如果搜索到的字符是多個(gè),并想將他保存在數(shù)組里,則ord=all;他們分別保存到pr_1 pr_2 .....。其中pr_count為內(nèi)部函數(shù),統(tǒng)計(jì)數(shù)組的個(gè)數(shù)。

3)search 屬性
設(shè)置搜索的范圍,可以是header,body,header and body,html body。

4)SaveOffset屬性
偏移量。從搜索到的字符串中,取子串。默認(rèn)saveoffset=0.
5) SaveLen 屬性
取串的長度。也是從搜索到的字符串中,取子串。


4.例子:
1)
char *pr;
web_reg_save_param("pr","LB=pr","RB="<br>",LAST); 
web_submit_data("pr.php 
                          "url=http://" 
                           "TargerFrame="  
                            ...... 
                            LAST); 
lr_message("value: %s",lr_eval_string("{pr}"));

然后你就可以在運(yùn)行的log中看到結(jié)果。
2)關(guān)聯(lián)的例子

char *pr;
web_reg_save_param("pr","LB=pr","RB="<br>",LAST); 
web_submit_data("pr.php 
                          "url=http://" 
                           "TargerFrame="  
                            ...... 
                            LAST); 

i=atoi(pr_count)

這個(gè)函數(shù)的作用還是蠻大的。希望能得到大家的關(guān)注。

 

網(wǎng)站欄目:LoadRunner關(guān)聯(lián)函數(shù)的使用loadruner關(guān)聯(lián)web_reg_save_param
網(wǎng)站鏈接:http://www.rwnh.cn/article46/jippeg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供Google標(biāo)簽優(yōu)化、網(wǎng)站改版App開發(fā)、定制網(wǎng)站、自適應(yīng)網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)公司
庄河市| 保德县| 汉中市| 凌源市| 铁力市| 崇仁县| 华安县| 儋州市| 怀仁县| 富阳市| 铜山县| 邯郸县| 玉屏| 绥化市| 诸城市| 西畴县| 资溪县| 田阳县| 大庆市| 井研县| 太白县| 涟源市| 常熟市| 乌苏市| 阿拉善右旗| 剑川县| 扎赉特旗| 广安市| 山东省| 德令哈市| 嘉祥县| 鸡泽县| 广水市| 仁怀市| 南岸区| 凤冈县| 乌拉特后旗| 来宾市| 新巴尔虎左旗| 威远县| 博罗县|