• <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-10來源:作者:點擊數: 標簽:qtpQTP對象鏈接檢查
    QTP檢查鏈接對象的兩種方法 軟件測試 在QTP中,對于網頁鏈接的測試可以使用Link對象,例如下面的腳本用于對鏈接的地址進行檢查: ‘ 對鏈接的地址進行檢查 Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").Link("REGISTER").CheckPropert

      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>