<ruby id="rxdll"></ruby><strike id="rxdll"></strike>

    <rp id="rxdll"></rp>
      <del id="rxdll"><meter id="rxdll"></meter></del>
      <pre id="rxdll"><font id="rxdll"></font></pre>
        <pre id="rxdll"></pre>
      <p id="rxdll"><thead id="rxdll"></thead></p><dl id="rxdll"><progress id="rxdll"><form id="rxdll"></form></progress></dl>

      <ol id="rxdll"><thead id="rxdll"><track id="rxdll"></track></thead></ol>
      <i id="rxdll"><dfn id="rxdll"></dfn></i>
      <font id="rxdll"><meter id="rxdll"></meter></font>

        <mark id="rxdll"><dfn id="rxdll"></dfn></mark>
        • 軟件測試技術
        • 軟件測試博客
        • 軟件測試視頻
        • 開源軟件測試技術
        • 軟件測試論壇
        • 軟件測試沙龍
        • 軟件測試資料下載
        • 軟件測試雜志
        • 軟件測試人才招聘
          暫時沒有公告

        字號: | 推薦給好友 上一篇 | 下一篇

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

        發布: 2010-5-27 11:15 | 作者: 網絡轉載 | 來源: 領測軟件測試網采編 | 查看: 102次 | 進入軟件測試論壇討論

        領測軟件測試網

        軟件測試工具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("micclass:=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.k11sc111.com/

        TAG: qtp QTP 軟件測試 順序 Identifiers Ordinal


        關于領測軟件測試網 | 領測軟件測試網合作伙伴 | 廣告服務 | 投稿指南 | 聯系我們 | 網站地圖 | 友情鏈接
        版權所有(C) 2003-2010 TestAge(領測軟件測試網)|領測國際科技(北京)有限公司|軟件測試工程師培訓網 All Rights Reserved
        北京市海淀區中關村南大街9號北京理工科技大廈1402室 京ICP備10010545號-5
        技術支持和業務聯系:info@testage.com.cn 電話:010-51297073

        軟件測試 | 領測國際ISTQBISTQB官網TMMiTMMi認證國際軟件測試工程師認證領測軟件測試網

        国产女主播精品_国产片婬乱18一级毛片视频_国产午夜激无码av毛片不卡_国产精品欧美久久久天天影院
          <ruby id="rxdll"></ruby><strike id="rxdll"></strike>

          <rp id="rxdll"></rp>
            <del id="rxdll"><meter id="rxdll"></meter></del>
            <pre id="rxdll"><font id="rxdll"></font></pre>
              <pre id="rxdll"></pre>
            <p id="rxdll"><thead id="rxdll"></thead></p><dl id="rxdll"><progress id="rxdll"><form id="rxdll"></form></progress></dl>

            <ol id="rxdll"><thead id="rxdll"><track id="rxdll"></track></thead></ol>
            <i id="rxdll"><dfn id="rxdll"></dfn></i>
            <font id="rxdll"><meter id="rxdll"></meter></font>

              <mark id="rxdll"><dfn id="rxdll"></dfn></mark>