JMeter学习-013-JMeter 逻辑控制器之-如果(If)控制器

JMeter学习-013-JMeter 逻辑控制器之-如果(If)控制器

 


前文简述了 JMeter 如何通过 HTTP Cookie管理器,实现了在不执行登录操作的情况下,通过 Cookie 实现登录态的操作,具体请参阅:JMeter学习-012-JMeter 配置元件之-HTTP Cookie管理器-实现 Cookie 登录。
 
我们在日常的自动化测试脚本编写过程中,通常会有需要进行判断的逻辑,从而根据判断条件的真假,控制是否进行相应的操作。JMeter 提供了一些逻辑控制器(例如:ForEach控制器、事务控制器、如果(If)控制器、循环控制器等),以供我们在自动化脚本中进行逻辑控制,下面就以易迅网App收藏接口测试用例为例,通过其相应的操作,对 如果(If)控制器 进行简单的应用演示。演示操作内容如下所示:
 1.通过商品编号搜索商品,获取对应的商品系统编号。
 2.通过商品系统编号在收藏列表中查询对应的收藏编号。
 3.判断收藏编号是否存在。若存在,则删除,并验证是否删除成功。
 4.收藏商品。
 5.验证商品收藏是否成功。
 6.再次收藏商品,验证重复收藏的提示信息是否正确。
 7.从收藏列表中删除收藏商品。
 8.验证是否成功删除了收藏商品。
 
下面针对第三步,简单描述一下 逻辑控制器 中 如果(If)控制器 的使用方法。添加 如果(If)控制器 的步骤为:【添加 / 逻辑控制器 / 如果(If)控制器】,控制器的界面如下所示:


•名称:IF逻辑控制器的简述。
 •注释:对逻辑控制器的详细描述。
 •条件:判断条件,可以引用变量。当为 true 时,执行响应的操作。
 
第三步配置的 IF逻辑控制器 如下所示:
 


最终脚本执行结果,如下所示:
 


 
 
附录一:
 

 

   1
   2
   3  
   4    
   5      
   6       false
   7       false
   8      
   9        
  10      

  11      
  12    

  13    
  14      
  15         ,
  16         UTF-8
  17         ./userCookie.txt
  18         false
  19         true
  20         shareMode.all
  21         false
  22         appSource,appVersion,channelId,deviceId,districtid,userSkey,token,uid,version,wsid
  23      

  24      
  25      
  26         continue
  27        
  28           false
  29           1
  30        

  31         1
  32         1
  33         1419563153000
  34         1419563153000
  35         false
  36        
  37        
  38      

  39      
  40        
  41          
  42            
  43              
  44                 false
  45                 uid
  46                 ${uid}
  47                 =
  48                 true
  49              

  50              
  51                 false
  52                 page
  53                 0
  54                 =
  55                 true
  56              

  57              
  58                 false
  59                 exAppTag
  60                 2045191607
  61                 =
  62                 true
  63              

  64            

  65          

  66           mb.51buy.com
  67          
  68          
  69          
  70           http
  71           GB2312
  72           /json.php?mod=myfavor&act=get&appSource=android&appVersion=${appVersion}
  73           POST
  74           true
  75           false
  76           true
  77           false
  78           false
  79          
  80           从收藏列表中获取对应收藏商品的收藏 ID
  81        

  82        
  83          
  84            
  85              
  86                 Charset
  87                 UTF-8
  88              

  89              
  90                 Content-Type
  91                 application/x-www-form-urlencoded
  92              

  93              
  94                 Accept-Encoding
  95                 gzip
  96              

  97              
  98                 User-Agent
  99                 Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9502 Build/KOT49H)
 100              

 101            

 102          

 103          
 104          
 105            
 106              
 107                 ${appSource}
 108                 .51buy.com
 109                
 110                 false
 111                 0
 112                 true
 113                 true
 114              

 115              
 116                 ${appVersion}
 117                 .51buy.com
 118                
 119                 false
 120                 0
 121                 true
 122                 true
 123              

 124              
 125                 ${channelId}
 126                 .51buy.com
 127                
 128                 false
 129                 0
 130                 true
 131                 true
 132              

 133              
 134                 ${deviceId}
 135                 .51buy.com
 136                
 137                 false
 138                 0
 139                 true
 140                 true
 141              

 142              
 143                 ${districtid}
 144                 .51buy.com
 145                
 146                 false
 147                 0
 148                 true
 149                 true
 150              

 151              
 152                 ${userSkey}
 153                 .51buy.com
 154                
 155                 false
 156                 0
 157                 true
 158                 true
 159              

 160              
 161                 ${token}
 162                 .51buy.com
 163                
 164                 false
 165                 0
 166                 true
 167                 true
 168              

 169              
 170                 ${uid}
 171                 .51buy.com
 172                
 173                 false
 174                 0
 175                 true
 176                 true
 177              

 178              
 179                 ${version}
 180                 .51buy.com
 181                
 182                 false
 183                 0
 184                 true
 185                 true
 186              

 187              
 188                 ${wsid}
 189                 .51buy.com
 190                
 191                 false
 192                 0
 193                 true
 194                 true
 195              

 196            

 197             true
 198          

 199          
 200        

 201      

 202      
 203         continue
 204        
 205           false
 206           1
 207        

 208         1
 209         1
 210         1419563153000
 211         1419563153000
 212         false
 213        
 214        
 215      

 216      
 217        
 218           ./Favor_Good_Info.txt
 219           UTF-8
 220           productID,districtId,areacode,repeatAddInfo
 221           ,
 222           false
 223           true
 224           false
 225           shareMode.all
 226        

 227        
 228        
 229          
 230            
 231              
 232                 false
 233                 ${productID}
 234                 =
 235                 true
 236                 q
 237              

 238              
 239                 false
 240                 ${districtId}
 241                 =
 242                 true
 243                 districtId
 244              

 245              
 246                 false
 247                 ${areacode}
 248                 =
 249                 true
 250                 areacode
 251              

 252              
 253                 false
 254                 list|page|classes
 255                 =
 256                 true
 257                 dtype
 258              

 259              
 260                 false
 261                 districtId
 262                 ${districtId}
 263                 =
 264                 true
 265              

 266              
 267                 false
 268                 exAppTag
 269                 2045191607
 270                 =
 271                 true
 272              

 273              
 274                 false
 275                 android
 276                 =
 277                 true
 278                 appSource
 279              

 280              
 281                 false
 282                 ${appVersion}
 283                 =
 284                 true
 285                 appVersion
 286              

 287            

 288          

 289           mb.51buy.com
 290          
 291          
 292          
 293           http
 294           GB2312
 295           /json.php?mod=Search&act=page&p=1&pp=20
 296           POST
 297           true
 298           false
 299           true
 300           false
 301           false
 302          
 303        

 304        
 305          
 306            
 307              
 308                 Charset
 309                 UTF-8
 310              

 311              
 312                 Content-Type
 313                 application/x-www-form-urlencoded
 314              

 315              
 316                 Accept-Encoding
 317                 gzip
 318              

 319              
 320                 User-Agent
 321                 Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9502 Build/KOT49H)
 322              

 323            

 324          

 325          
 326          
 327            
 328              
 329                 ${appSource}
 330                 .51buy.com
 331                
 332                 false
 333                 0
 334                 true
 335                 true
 336              

 337              
 338                 ${appVersion}
 339                 .51buy.com
 340                
 341                 false
 342                 0
 343                 true
 344                 true
 345              

 346              
 347                 ${channelId}
 348                 .51buy.com
 349                
 350                 false
 351                 0
 352                 true
 353                 true
 354              

 355              
 356                 ${deviceId}
 357                 .51buy.com
 358                
 359                 false
 360                 0
 361                 true
 362                 true
 363              

 364              
 365                 ${districtid}
 366                 .51buy.com
 367                
 368                 false
 369                 0
 370                 true
 371                 true
 372              

 373              
 374                 ${userSkey}
 375                 .51buy.com
 376                
 377                 false
 378                 0
 379                 true
 380                 true
 381              

 382              
 383                 ${token}
 384                 .51buy.com
 385                
 386                 false
 387                 0
 388                 true
 389                 true
 390              

 391              
 392                 ${uid}
 393                 .51buy.com
 394                
 395                 false
 396                 0
 397                 true
 398                 true
 399              

 400              
 401                 ${version}
 402                 .51buy.com
 403                
 404                 false
 405                 0
 406                 true
 407                 true
 408              

 409              
 410                 ${wsid}
 411                 .51buy.com
 412                
 413                 false
 414                 0
 415                 true
 416                 true
 417              

 418            

 419             true
 420          

 421          
 422          
 423             获取商品的系统编号
 424             false
 425             target_product_ids
 426             sysNo":"(.*?)"
 427             $1$
 428             ERROR
 429             1
 430          

 431          
 432          
 433            
 434               ${productID}
 435            

 436             Assertion.response_data
 437             false
 438             16
 439          

 440          
 441        

 442        
 443          
 444            
 445              
 446                 false
 447                 uid
 448                 ${uid}
 449                 =
 450                 true
 451              

 452              
 453                 false
 454                 page
 455                 0
 456                 =
 457                 true
 458              

 459              
 460                 false
 461                 exAppTag
 462                 2045191607
 463                 =
 464                 true
 465              

 466            

 467          

 468           mb.51buy.com
 469          
 470          
 471          
 472           http
 473           GB2312
 474           /json.php?mod=myfavor&act=get&appSource=android&appVersion=${appVersion}
 475           POST
 476           true
 477           false
 478           true
 479           false
 480           false
 481          
 482           从收藏列表中获取对应收藏商品的收藏 ID
 483        

 484        
 485          
 486            
 487              
 488                 Charset
 489                 UTF-8
 490              

 491              
 492                 Content-Type
 493                 application/x-www-form-urlencoded
 494              

 495              
 496                 Accept-Encoding
 497                 gzip
 498              

 499              
 500                 User-Agent
 501                 Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9502 Build/KOT49H)
 502              

 503            

 504          

 505          
 506          
 507            
 508              
 509                 ${appSource}
 510                 .51buy.com
 511                
 512                 false
 513                 0
 514                 true
 515                 true
 516              

 517              
 518                 ${appVersion}
 519                 .51buy.com
 520                
 521                 false
 522                 0
 523                 true
 524                 true
 525              

 526              
 527                 ${channelId}
 528                 .51buy.com
 529                
 530                 false
 531                 0
 532                 true
 533                 true
 534              

 535              
 536                 ${deviceId}
 537                 .51buy.com
 538                
 539                 false
 540                 0
 541                 true
 542                 true
 543              

 544              
 545                 ${districtid}
 546                 .51buy.com
 547                
 548                 false
 549                 0
 550                 true
 551                 true
 552              

 553              
 554                 ${userSkey}
 555                 .51buy.com
 556                
 557                 false
 558                 0
 559                 true
 560                 true
 561              

 562              
 563                 ${token}
 564                 .51buy.com
 565                
 566                 false
 567                 0
 568                 true
 569                 true
 570              

 571              
 572                 ${uid}
 573                 .51buy.com
 574                
 575                 false
 576                 0
 577                 true
 578                 true
 579              

 580              
 581                 ${version}
 582                 .51buy.com
 583                
 584                 false
 585                 0
 586                 true
 587                 true
 588              

 589              
 590                 ${wsid}
 591                 .51buy.com
 592                
 593                 false
 594                 0
 595                 true
 596                 true
 597              

 598            

 599             true
 600          

 601          
 602          
 603             通过商品编号查询收藏列表中商品对应的收藏编号
 604             false
 605             assert_getFavorID
 606             "product_id":"(${target_product_ids})","(.+?)","favor_id":(.+?),"sale_type":
 607             $3$
 608             ERROR
 609             1
 610          

 611          
 612          
 613            
 614               errno":0
 615            

 616             Assertion.response_data
 617             false
 618             2
 619          

 620          
 621        

 622        
 623           "${assert_getFavorID}" != "ERROR"
 624           false
 625        

 626        
 627          
 628            
 629              
 630                
 631                   false
 632                   uid
 633                   ${uid}
 634                   =
 635                   true
 636                

 637                
 638                   false
 639                   product_ids
 640                   ${target_product_ids}
 641                   =
 642                   true
 643                

 644                
 645                   false
 646                   favor_ids
 647                   ${assert_getFavorID}
 648                   =
 649                   true
 650                

 651                
 652                   false
 653                   exAppTag
 654                   2045191607
 655                   =
 656                   true
 657                

 658              

 659            

 660             mb.51buy.com
 661            
 662            
 663            
 664             http
 665             GB2312
 666             /json.php?mod=myfavor&act=remove&appSource=android&appVersion=${appVersion}
 667             POST
 668             true
 669             false
 670             true
 671             false
 672             false
 673            
 674          

 675          
 676            
 677              
 678                
 679                   Charset
 680                   UTF-8
 681                

 682                
 683                   Content-Type
 684                   application/x-www-form-urlencoded
 685                

 686                
 687                   Accept-Encoding
 688                   gzip
 689                

 690                
 691                   User-Agent
 692                   Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9502 Build/KOT49H)
 693                

 694              

 695            

 696            
 697            
 698              
 699                 errno":0
 700              

 701               Assertion.response_data
 702               false
 703               16
 704            

 705            
 706            
 707              
 708                
 709                   ${appSource}
 710                   .51buy.com
 711                  
 712                   false
 713                   0
 714                   true
 715                   true
 716                

 717                
 718                   ${appVersion}
 719                   .51buy.com
 720                  
 721                   false
 722                   0
 723                   true
 724                   true
 725                

 726                
 727                   ${channelId}
 728                   .51buy.com
 729                  
 730                   false
 731                   0
 732                   true
 733                   true
 734                

 735                
 736                   ${deviceId}
 737                   .51buy.com
 738                  
 739                   false
 740                   0
 741                   true
 742                   true
 743                

 744                
 745                   ${districtid}
 746                   .51buy.com
 747                  
 748                   false
 749                   0
 750                   true
 751                   true
 752                

 753                
 754                   ${userSkey}
 755                   .51buy.com
 756                  
 757                   false
 758                   0
 759                   true
 760                   true
 761                

 762                
 763                   ${token}
 764                   .51buy.com
 765                  
 766                   false
 767                   0
 768                   true
 769                   true
 770                

 771                
 772                   ${uid}
 773                   .51buy.com
 774                  
 775                   false
 776                   0
 777                   true
 778                   true
 779                

 780                
 781                   ${version}
 782                   .51buy.com
 783                  
 784                   false
 785                   0
 786                   true
 787                   true
 788                

 789                
 790                   ${wsid}
 791                   .51buy.com
 792                  
 793                   false
 794                   0
 795                   true
 796                   true
 797                

 798              

 799               true
 800            

 801            
 802          

 803          
 804            
 805              
 806                
 807                   false
 808                   uid
 809                   ${uid}
 810                   =
 811                   true
 812                

 813                
 814                   false
 815                   page
 816                   0
 817                   =
 818                   true
 819                

 820                
 821                   false
 822                   exAppTag
 823                   2045191607
 824                   =
 825                   true
 826                

 827              

 828            

 829             mb.51buy.com
 830            
 831            
 832            
 833             http
 834             GB2312
 835             /json.php?mod=myfavor&act=get&appSource=android&appVersion=${appVersion}
 836             POST
 837             true
 838             false
 839             true
 840             false
 841             false
 842            
 843          

 844          
 845            
 846              
 847                
 848                   Charset
 849                   UTF-8
 850                

 851                
 852                   Content-Type
 853                   application/x-www-form-urlencoded
 854                

 855                
 856                   Accept-Encoding
 857                   gzip
 858                

 859                
 860                   User-Agent
 861                   Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9502 Build/KOT49H)
 862                

 863              

 864            

 865            
 866            
 867              
 868                 errno":0
 869              

 870               Assertion.response_data
 871               false
 872               2
 873            

 874            
 875            
 876              
 877                 ${target_product_ids}
 878              

 879               Assertion.response_data
 880               false
 881               6
 882            

 883            
 884            
 885              
 886                 ${assert_getFavorID}
 887              

 888               Assertion.response_data
 889               false
 890               6
 891               若存在,则说明之前的删除操作失败
 892            

 893            
 894            
 895              
 896                
 897                   ${appSource}
 898                   .51buy.com
 899                  
 900                   false
 901                   0
 902                   true
 903                   true
 904                

 905                
 906                   ${appVersion}
 907                   .51buy.com
 908                  
 909                   false
 910                   0
 911                   true
 912                   true
 913                

 914                
 915                   ${channelId}
 916                   .51buy.com
 917                  
 918                   false
 919                   0
 920                   true
 921                   true
 922                

 923                
 924                   ${deviceId}
 925                   .51buy.com
 926                  
 927                   false
 928                   0
 929                   true
 930                   true
 931                

 932                
 933                   ${districtid}
 934                   .51buy.com
 935                  
 936                   false
 937                   0
 938                   true
 939                   true
 940                

 941                
 942                   ${userSkey}
 943                   .51buy.com
 944                  
 945                   false
 946                   0
 947                   true
 948                   true
 949                

 950                
 951                   ${token}
 952                   .51buy.com
 953                  
 954                   false
 955                   0
 956                   true
 957                   true
 958                

 959                
 960                   ${uid}
 961                   .51buy.com
 962                  
 963                   false
 964                   0
 965                   true
 966                   true
 967                

 968                
 969                   ${version}
 970                   .51buy.com
 971                  
 972                   false
 973                   0
 974                   true
 975                   true
 976                

 977                
 978                   ${wsid}
 979                   .51buy.com
 980                  
 981                   false
 982                   0
 983                   true
 984                   true
 985                

 986              

 987               true
 988            

 989            
 990          

 991        

 992        
 993          
 994            
 995              
 996                 false
 997                 uid
 998                 ${uid}
 999                 =
1000                 true
1001              

1002              
1003                 false
1004                 pid
1005                 ${target_product_ids}
1006                 =
1007                 true
1008              

1009              
1010                 false
1011                 exAppTag
1012                 2045191607
1013                 =
1014                 true
1015              

1016            

1017          

1018           mb.51buy.com
1019          
1020          
1021          
1022           http
1023           GB2312
1024           /json.php?mod=myfavor&act=add&appSource=android&appVersion=${appVersion}
1025           POST
1026           true
1027           false
1028           true
1029           false
1030           false
1031          
1032        

1033        
1034          
1035            
1036              
1037                 Charset
1038                 UTF-8
1039              

1040              
1041                 Content-Type
1042                 application/x-www-form-urlencoded
1043              

1044              
1045                 Accept-Encoding
1046                 gzip
1047              

1048              
1049                 User-Agent
1050                 Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9502 Build/KOT49H)
1051              

1052            

1053          

1054          
1055          
1056            
1057              
1058                 ${appSource}
1059                 .51buy.com
1060                
1061                 false
1062                 0
1063                 true
1064                 true
1065              

1066              
1067                 ${appVersion}
1068                 .51buy.com
1069                
1070                 false
1071                 0
1072                 true
1073                 true
1074              

1075              
1076                 ${channelId}
1077                 .51buy.com
1078                
1079                 false
1080                 0
1081                 true
1082                 true
1083              

1084              
1085                 ${deviceId}
1086                 .51buy.com
1087                
1088                 false
1089                 0
1090                 true
1091                 true
1092              

1093              
1094                 ${districtid}
1095                 .51buy.com
1096                
1097                 false
1098                 0
1099                 true
1100                 true
1101              

1102              
1103                 ${userSkey}
1104                 .51buy.com
1105                
1106                 false
1107                 0
1108                 true
1109                 true
1110              

1111              
1112                 ${token}
1113                 .51buy.com
1114                
1115                 false
1116                 0
1117                 true
1118                 true
1119              

1120              
1121                 ${uid}
1122                 .51buy.com
1123                
1124                 false
1125                 0
1126                 true
1127                 true
1128              

1129              
1130                 ${version}
1131                 .51buy.com
1132                
1133                 false
1134                 0
1135                 true
1136                 true
1137              

1138              
1139                 ${wsid}
1140                 .51buy.com
1141                
1142                 false
1143                 0
1144                 true
1145                 true
1146              

1147            

1148             true
1149          

1150          
1151          
1152             获取查询结果数量的页面数
1153             false
1154             newFavorID
1155             favor_id":(.*?)}
1156             $1$
1157             ERROR
1158             1
1159          

1160          
1161          
1162            
1163               "errno":0
1164            

1165             Assertion.response_data
1166             false
1167             2
1168          

1169          
1170        

1171        
1172          
1173            
1174              
1175                 false
1176                 uid
1177                 ${uid}
1178                 =
1179                 true
1180              

1181              
1182                 false
1183                 page
1184                 0
1185                 =
1186                 true
1187              

1188              
1189                 false
1190                 exAppTag
1191                 2045191607
1192                 =
1193                 true
1194              

1195            

1196          

1197           mb.51buy.com
1198          
1199          
1200          
1201           http
1202           GB2312
1203           /json.php?mod=myfavor&act=get&appSource=android&appVersion=${appVersion}
1204           POST
1205           true
1206           false
1207           true
1208           false
1209           false
1210          
1211        

1212        
1213          
1214            
1215              
1216                 Charset
1217                 UTF-8
1218              

1219              
1220                 Content-Type
1221                 application/x-www-form-urlencoded
1222              

1223              
1224                 Accept-Encoding
1225                 gzip
1226              

1227              
1228                 User-Agent
1229                 Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9502 Build/KOT49H)
1230              

1231            

1232          

1233          
1234          
1235            
1236              
1237                 ${appSource}
1238                 .51buy.com
1239                
1240                 false
1241                 0
1242                 true
1243                 true
1244              

1245              
1246                 ${appVersion}
1247                 .51buy.com
1248                
1249                 false
1250                 0
1251                 true
1252                 true
1253              

1254              
1255                 ${channelId}
1256                 .51buy.com
1257                
1258                 false
1259                 0
1260                 true
1261                 true
1262              

1263              
1264                 ${deviceId}
1265                 .51buy.com
1266                
1267                 false
1268                 0
1269                 true
1270                 true
1271              

1272              
1273                 ${districtid}
1274                 .51buy.com
1275                
1276                 false
1277                 0
1278                 true
1279                 true
1280              

1281              
1282                 ${userSkey}
1283                 .51buy.com
1284                
1285                 false
1286                 0
1287                 true
1288                 true
1289              

1290              
1291                 ${token}
1292                 .51buy.com
1293                
1294                 false
1295                 0
1296                 true
1297                 true
1298              

1299              
1300                 ${uid}
1301                 .51buy.com
1302                
1303                 false
1304                 0
1305                 true
1306                 true
1307              

1308              
1309                 ${version}
1310                 .51buy.com
1311                
1312                 false
1313                 0
1314                 true
1315                 true
1316              

1317              
1318                 ${wsid}
1319                 .51buy.com
1320                
1321                 false
1322                 0
1323                 true
1324                 true
1325              

1326            

1327             true
1328          

1329          
1330          
1331            
1332               ${newFavorID}
1333            

1334             Assertion.response_data
1335             false
1336             2
1337          

1338          
1339        

1340        
1341          
1342            
1343              
1344                 false
1345                 uid
1346                 ${uid}
1347                 =
1348                 true
1349              

1350              
1351                 false
1352                 pid
1353                 ${target_product_ids}
1354                 =
1355                 true
1356              

1357              
1358                 false
1359                 exAppTag
1360                 2045191607
1361                 =
1362                 true
1363              

1364            

1365          

1366           mb.51buy.com
1367          
1368          
1369          
1370           http
1371           GB2312
1372           /json.php?mod=myfavor&act=add&appSource=android&appVersion=${appVersion}
1373           POST
1374           true
1375           false
1376           true
1377           false
1378           false
1379          
1380        

1381        
1382          
1383            
1384              
1385                 Charset
1386                 UTF-8
1387              

1388              
1389                 Content-Type
1390                 application/x-www-form-urlencoded
1391              

1392              
1393                 Accept-Encoding
1394                 gzip
1395              

1396              
1397                 User-Agent
1398                 Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9502 Build/KOT49H)
1399              

1400            

1401          

1402          
1403          
1404            
1405              
1406                 ${appSource}
1407                 .51buy.com
1408                
1409                 false
1410                 0
1411                 true
1412                 true
1413              

1414              
1415                 ${appVersion}
1416                 .51buy.com
1417                
1418                 false
1419                 0
1420                 true
1421                 true
1422              

1423              
1424                 ${channelId}
1425                 .51buy.com
1426                
1427                 false
1428                 0
1429                 true
1430                 true
1431              

1432              
1433                 ${deviceId}
1434                 .51buy.com
1435                
1436                 false
1437                 0
1438                 true
1439                 true
1440              

1441              
1442                 ${districtid}
1443                 .51buy.com
1444                
1445                 false
1446                 0
1447                 true
1448                 true
1449              

1450              
1451                 ${userSkey}
1452                 .51buy.com
1453                
1454                 false
1455                 0
1456                 true
1457                 true
1458              

1459              
1460                 ${token}
1461                 .51buy.com
1462                
1463                 false
1464                 0
1465                 true
1466                 true
1467              

1468              
1469                 ${uid}
1470                 .51buy.com
1471                
1472                 false
1473                 0
1474                 true
1475                 true
1476              

1477              
1478                 ${version}
1479                 .51buy.com
1480                
1481                 false
1482                 0
1483                 true
1484                 true
1485              

1486              
1487                 ${wsid}
1488                 .51buy.com
1489                
1490                 false
1491                 0
1492                 true
1493                 true
1494              

1495            

1496             true
1497          

1498          
1499          
1500            
1501               ${repeatAddInfo}
1502            

1503             Assertion.response_data
1504             false
1505             2
1506          

1507          
1508        

1509        
1510          
1511            
1512              
1513                 false
1514                 uid
1515                 ${uid}
1516                 =
1517                 true
1518              

1519              
1520                 false
1521                 product_ids
1522                 ${target_product_ids}
1523                 =
1524                 true
1525              

1526              
1527                 false
1528                 favor_ids
1529                 ${newFavorID}
1530                 =
1531                 true
1532              

1533              
1534                 false
1535                 exAppTag
1536                 2045191607
1537                 =
1538                 true
1539              

1540            

1541          

1542           mb.51buy.com
1543          
1544          
1545          
1546           http
1547           GB2312
1548           /json.php?mod=myfavor&act=remove&appSource=android&appVersion=${appVersion}
1549           POST
1550           true
1551           false
1552           true
1553           false
1554           false
1555          
1556        

1557        
1558          
1559            
1560              
1561                 Charset
1562                 UTF-8
1563              

1564              
1565                 Content-Type
1566                 application/x-www-form-urlencoded
1567              

1568              
1569                 Accept-Encoding
1570                 gzip
1571              

1572              
1573                 User-Agent
1574                 Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9502 Build/KOT49H)
1575              

1576            

1577          

1578          
1579          
1580            
1581              
1582                 ${appSource}
1583                 .51buy.com
1584                
1585                 false
1586                 0
1587                 true
1588                 true
1589              

1590              
1591                 ${appVersion}
1592                 .51buy.com
1593                
1594                 false
1595                 0
1596                 true
1597                 true
1598              

1599              
1600                 ${channelId}
1601                 .51buy.com
1602                
1603                 false
1604                 0
1605                 true
1606                 true
1607              

1608              
1609                 ${deviceId}
1610                 .51buy.com
1611                
1612                 false
1613                 0
1614                 true
1615                 true
1616              

1617              
1618                 ${districtid}
1619                 .51buy.com
1620                
1621                 false
1622                 0
1623                 true
1624                 true
1625              

1626              
1627                 ${userSkey}
1628                 .51buy.com
1629                
1630                 false
1631                 0
1632                 true
1633                 true
1634              

1635              
1636                 ${token}
1637                 .51buy.com
1638                
1639                 false
1640                 0
1641                 true
1642                 true
1643              

1644              
1645                 ${uid}
1646                 .51buy.com
1647                
1648                 false
1649                 0
1650                 true
1651                 true
1652              

1653              
1654                 ${version}
1655                 .51buy.com
1656                
1657                 false
1658                 0
1659                 true
1660                 true
1661              

1662              
1663                 ${wsid}
1664                 .51buy.com
1665                
1666                 false
1667                 0
1668                 true
1669                 true
1670              

1671            

1672             true
1673          

1674          
1675          
1676            
1677               errno":0
1678            

1679             Assertion.response_data
1680             false
1681             16
1682          

1683          
1684        

1685        
1686          
1687            
1688              
1689                 false
1690                 uid
1691                 ${uid}
1692                 =
1693                 true
1694              

1695              
1696                 false
1697                 page
1698                 0
1699                 =
1700                 true
1701              

1702              
1703                 false
1704                 exAppTag
1705                 2045191607
1706                 =
1707                 true
1708              

1709            

1710          

1711           mb.51buy.com
1712          
1713          
1714          
1715           http
1716           GB2312
1717           /json.php?mod=myfavor&act=get&appSource=android&appVersion=${appVersion}
1718           POST
1719           true
1720           false
1721           true
1722           false
1723           false
1724          
1725        

1726        
1727          
1728            
1729              
1730                 Charset
1731                 UTF-8
1732              

1733              
1734                 Content-Type
1735                 application/x-www-form-urlencoded
1736              

1737              
1738                 Accept-Encoding
1739                 gzip
1740              

1741              
1742                 User-Agent
1743                 Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9502 Build/KOT49H)
1744              

1745            

1746          

1747          
1748          
1749            
1750              
1751                 ${appSource}
1752                 .51buy.com
1753                
1754                 false
1755                 0
1756                 true
1757                 true
1758              

1759              
1760                 ${appVersion}
1761                 .51buy.com
1762                
1763                 false
1764                 0
1765                 true
1766                 true
1767              

1768              
1769                 ${channelId}
1770                 .51buy.com
1771                
1772                 false
1773                 0
1774                 true
1775                 true
1776              

1777              
1778                 ${deviceId}
1779                 .51buy.com
1780                
1781                 false
1782                 0
1783                 true
1784                 true
1785              

1786              
1787                 ${districtid}
1788                 .51buy.com
1789                
1790                 false
1791                 0
1792                 true
1793                 true
1794              

1795              
1796                 ${userSkey}
1797                 .51buy.com
1798                
1799                 false
1800                 0
1801                 true
1802                 true
1803              

1804              
1805                 ${token}
1806                 .51buy.com
1807                
1808                 false
1809                 0
1810                 true
1811                 true
1812              

1813              
1814                 ${uid}
1815                 .51buy.com
1816                
1817                 false
1818                 0
1819                 true
1820                 true
1821              

1822              
1823                 ${version}
1824                 .51buy.com
1825                
1826                 false
1827                 0
1828                 true
1829                 true
1830              

1831              
1832                 ${wsid}
1833                 .51buy.com
1834                
1835                 false
1836                 0
1837                 true
1838                 true
1839              

1840            

1841             true
1842          

1843          
1844          
1845            
1846               errno":0
1847            

1848             Assertion.response_data
1849             false
1850             2
1851          

1852          
1853          
1854            
1855               ${target_product_ids}
1856               ${newFavorID}
1857            

1858             Assertion.response_data
1859             false
1860             6
1861          

1862          
1863        

1864      

1865      
1866         false
1867        
1868           saveConfig
1869          
1870            
1871             true
1872             true
1873             true
1874            
1875             true
1876             true
1877             true
1878             true
1879             false
1880             true
1881             true
1882             false
1883             false
1884             false
1885             false
1886             false
1887             false
1888             false
1889             false
1890             0
1891             true
1892             true
1893          

1894        

1895        
1896      

1897      
1898    

1899  

1900


 
 
至此, JMeter学习-013-JMeter 逻辑控制器之-如果(If)控制器 顺利完结,希望此文能够给初学 JMeter 的您一份参考。
 
最后,非常感谢亲的驻足,希望此文能对亲有所帮助。热烈欢迎亲一起探讨,共同进步。非常感谢! ^_^
 
 

我本渺小,但山峰,我一次次绝顶!


PS:若有错误,敬请告知,不胜感激!
Copyright @范丰平 版权所有,如需转载请标明本文原始链接出处,严禁商业用途! 我的个人博客链接地址:http://www.cnblogs.com/fengpingfan

你可能感兴趣的:(jmeter)