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

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

  • <strong id="5koa6"></strong>
  • 軟件測試工具中QTP檢查鏈接對象的兩種方法

    發表于:2010-03-03來源:作者:點擊數: 標簽:軟件測試工具qtpQTP對象
    軟件測試工具 中 QTP 檢查鏈接對象的兩種方法 在QTP中,對于網頁鏈接的測試可以使用Link對象,例如下面的腳本用于對鏈接的地址進行檢查: ‘ 對鏈接的地址進行檢查 Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").Link("REGISTER").Chec

    軟件測試工具QTP檢查鏈接對象的兩種方法

    在QTP中,對于網頁鏈接的測試可以使用Link對象,例如下面的腳本用于對鏈接的地址進行檢查:
    ‘ 對鏈接的地址進行檢查
    Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").Link("REGISTER").CheckProperty ("url",http://newtours.demoaut.com/mercuryregister.php)
    其中使用了CheckProperty方法,用于對比Link對象的URL屬性是否等于指定的地址。也可以使用Link對象的Object屬性中的href屬性來進行比較,例如下面的代碼所示:
    href = Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").Link("REGISTER").Object.href
    ‘ 如果地址不正確,則報告錯誤
    If NOT Then
    Reporter.ReportEvent micFail,"Link Error",href
    ExitAction
    End If

    原文轉自: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>