• <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的3類順序標識(Ordinal Identifiers)

    發表于:2010-05-27來源:作者:點擊數: 標簽:軟件測試qtpQTPIdentifiersOrdinal
    軟件測試工具QTP的3類順序標識(Ordinal Identifiers) 對于順序標識(Ordinal Identifiers), QTP 的幫助文檔是這樣說的: An ordinal identifier assigns a numerical value to a test object that indicates its order or location relative to other ob

    軟件測試工具QTP的3類順序標識(Ordinal Identifiers)

    對于順序標識(Ordinal Identifiers),QTP的幫助文檔是這樣說的:

      An ordinal identifier assigns a numerical value to a test object that indicates its order or location relative to other objects with an otherwise identical description (objects that have the same values for all properties). This ordered value provides a backup mechanism that enables QuickTest to create a unique description to recognize an object when the defined properties are not sufficient to do so.

      總共有3類這樣的順序標識(Ordinal Identifiers):Location, Index 和 CreationTime

      其中CreationTime僅適用于Browser對象。

      順序標識(Ordinal Identifiers)通常在描述性編程時使用。

      例1:location(location順序標識是用上到下進行的)

    MILY: Courier New; BACKGROUND-COLOR: #dddddd" align=center>
    'Text Box 1
    Browser("title:=.*Descriptive.*").Page("miclearcase/" target="_blank" >cclass:=Page").WebEdit("name:=dpTest","location:=0").Set "1"
     
    'Text Box 3
    Browser("title:=.*Descriptive.*").Page("micclass:=Page").WebEdit("name:=dpTest","location:=1").Set "2"
     
    'Text Box 2
    Browser("title:=.*Descriptive.*").Page("micclass:=Page").WebEdit("name:=dpTest","location:=2").Set "3"
     
    'Text Box 4
    Browser("title:=.*Descriptive.*").Page("micclass:=Page").WebEdit("name:=dpTest","location:=3").Set "4"

      例2:index(index順序標識是從左到右進行的)

    'Text Box 1
    Browser("title:=.*Descriptive.*").Page("micclass:=Page").WebEdit("name:=dpTest", "index:=0").Set "1"
     
    'Text Box 2
    Browser("title:=.*Descriptive.*").Page("micclass:=Page").WebEdit("name:=dpTest", "index:=1").Set "2"
     
    'Text Box 3
    Browser("title:=.*Descriptive.*").Page("micclass:=Page").WebEdit("name:=dpTest", "index:=2").Set "3"
     
    'Text Box 4
    Browser("title:=.*Descriptive.*").Page("micclass:=Page").WebEdit("name:=dpTest", "index:=3").Set "4"

      例3:CreationTime(僅對瀏覽器對象生效,按對象產生時間先后順序排列)

    SystemUtil.Run "iexplore.exe", "http://www.HP.com"            'CreationTime 0
    SystemUtil.Run "iexplore.exe", "http://www.AdvancedQTP.com"   'CreationTime 1
    SystemUtil.Run "iexplore.exe", "http://www.LinkedIn.com"      'CreationTime 2
     
    Browser( "creationtime:=" ).Highlight     'Highlight HP.com
    Browser( "creationtime:=1" ).Highlight    'Highlight AdvancedQTP.com
    Browser( "creationtime:=2" ).Highlight    'Highlight LinkedIn.com

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