• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 如何用好LoadRunner中的檢查點(3)

    發表于:2012-01-20來源:未知作者:xql00163com點擊數: 標簽:
    Snapshot=t4.inf, Mode=HTML, LAST); return 0; } Global.h: #ifndef _GLOBALS_H #define _GLOBALS_H //-------------------------------------------------------------------- // Include Files #include lrun.h

      "Snapshot=t4.inf",

      "Mode=HTML",

      LAST);

      return 0;

      }

      Global.h:

      #ifndef _GLOBALS_H

      #define _GLOBALS_H

      //--------------------------------------------------------------------

      // Include Files

      #include "lrun.h"

      #include "web_api.h"

      #include "lrw_custom_body.h"

      //--------------------------------------------------------------------

      // Global Variables

      #endif // _GLOBALS_H

      Replay Log常見信息說明

      1、web_find()和web_image_check()函數的日志信息(這兩個日志信息實際上是一樣的,只是輸出的函數名和參數不同)

      1)信息1Action.c(22): Verification checks not enabled. web_image_check is skipped. See the 'Run-time settings/Preferences/Checks'

      [MsgId: MMSG-27197]

      Action.c(22): web_image_check was successful

      [MsgId: MMSG-26392]

      出現該信息,說明沒有勾選Enable Image and text check

      2)信息2Action.c(22): "web_image_check" succeeded (1 occurrence(s) found. Alt="", Src="/xjcost/jsp/images/index1/edit_01.gif")

      [MsgId: MMSG-27192]

      Action.c(22): web_image_check was successful

      [MsgId: MMSG-26392]

      出現該信息,說明檢查點設置成功,且已經查找到信息

      3)信息3Action.c(22): Error -27191: "web_image_check" failed (0 occurrence(s) found. Alt="", Src="/xjcost/jsp/images/index1/edit_1.gif")

      [MsgId: MERR-27191]

      Action.c(22): web_image_check highest severity level was "ERROR"

      [MsgId: MMSG-26391]

      出現該信息,說明要查找的內容沒有找到。這時依次嘗試以下操作:

      (1)檢查參數的信息是否寫錯;

      (2)如果是web_find(),檢查函數的位置是否在要查找內容的后面;

      (3)如果是web_image_check(),查看該圖片的源代碼,看其是否是這個頁面上的圖片,很可能是圖片選擇錯誤,即所選圖片不屬于該頁面。

      2、web_reg_find()函數的日志信息

      1)信息1Action.c(15): Registering web_reg_find was successful

      [MsgId: MMSG-26390]

      出現該信息,說明內容已查找到

      2)信息2Action.c(27): Error -26366: "Text=ABC" not found for web_reg_find

      [MsgId: MERR-26366]

      Action.c(27): web_submit_data("userLogin.struts") highest severity level was "ERROR", 18364 body bytes, 918 header bytes, 13 chunking overhead bytes

      [MsgId: MMSG-26387]

      該信息在replay log頁面是紅色顯示的,說明沒有找到內容,出現此情況嘗試以下兩個操作:

      (1)參數的信息是否正確;

      (2)查看該函數是否在查找內容的前面。

      插入函數的方法:

      1、 手工寫入,在需要插入函數的位置手工寫入該函數;

      2、 光標停留在要插入函數的位置,在INSERT菜單中,選擇new step,在列表中選擇或查找要插入的函數,根據提示填寫必要的參數;

      3、 在tree view模式下,在樹狀菜單中選中要插入函數的位置,右鍵,選擇insert after或insert before,根據提示填寫必要的參數;

      總結:

      1、 這兩個函數函數類型不同,WEB_FIND是普通函數,WEB_REG_FIND是注冊函數;

      2、 WEB_FIND使用時必須開啟內容檢查選項,而WEB_REG_FIND則不沒有此限制;

      3、 WEB_FIND只能用在基于HTML模式錄制的腳本中,而WEB_REG_FIND沒有此限制;

      4、 WEB_FIND是在返回的頁面中進行內容查找,WEB_REG_FIND是在緩存中進行查找;

      5、 WEB_FIND在執行效率上不如WEB_REG_FIND;

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>