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

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

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

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

    WinRunner學習

    發布: 2008-6-26 12:57 | 作者: 網絡轉載 | 來源: IT實驗室 | 查看: 226次 | 進入軟件測試論壇討論

    領測軟件測試網    1,report_msg  :  prints a user-defined string  expression to the test run report

            2,   pause  :     The pause function stops the test run and displays a string expression in a message box on the screen
              report_Msg和pause是在Win下顯示的信息,在UNIX下是printf

            3,   radio_button :  控制按扭屬性是ON還是OFF,如:
            set_window ("Flight Reservation", 3);
            button_set ("{class: radio_button, MSW_class: Button, label: Business}", ON);

            4,    return[expression]  : 返回值

            5,腳本格式 :
             Test Header :
             ---------> Test Name
             ---------> Subject
             ---------> Test Creator
             ---------> Date of creation/Date of revision
             ---------> Purpose of the test
             正式腳本

            6,static const <CONST_NAME> = <const_value>;放在腳本最前面

            7,[static/public] <variable_name> = [<variable_value>];靜態和公共變量

            8, 三種判斷方式
             ------->if (win_exists ("Window_Name") == 0) {
              set_window ("Window_Name");
             --------> if (!win_exists ("Window_Name")) {
               set_window ("Window_Name");
             ---------> if (win_exists ("Window_Name") == E_OK) {
                set_window ("Window_Name");

            9,自己創建錯誤提示代碼的協定
             -------->Error codes should be in capital letters.必須為大寫字母
             -------->Error codes should begin with the letter “E” followed by an underscore   (for example, E_MY_ERROR).
              -------->Error code numbers should include a dash “-” followed by a five digit   value (for example, -31001).
             -------->Error codes should be defined as public in a library or initialization test   or example, public const E_MY_ERROR = -31001).

            10, GUI_Load和GUI_Unload
             GUI_Load(file_name):   加載GUI的MAP文件,加載的是全路徑
             GUI_unload( ): 釋放GUI文件
             如:
            # This loads the GUI file

            GUI_load ("E:\\file1.gui");
            GUI_list_map_buffers(out_file, out_buffer);

            # The out_file contain the loaded gui file file1.gui.

            GUI_unload (file1.gui);

            # This unloads the GUI file

            GUI_list_map_buffers(out_file, out_buffer);
            # Now the out_file array does not contain file1.

            11,tl_step  :  可以輸出一些測試的信息

            12,   Function Header
            The function header is placed above a user defined function. Like the Test
            Header, the function header is enclosed by the "#" symbol and stores
            information about the function:
            >Function Name
            >Descrīption or purpose of the function
            >Input parameters
            >Output parameters
            >Return Values

            For example:
            ################################################################
            # FUNCTION: get_flight_from_table
            # PURPOSE: This function is static only to this file. It selects a flight from the
            # flight table using a given flight number. Also uses split() function to access the
            # flight number from the table.
            #
            # INPUT PARAMS: flight_num   The flight number to be selected.
            # OUTPUT PARAMS:   none
            # RETURN VALUES: Standard return values.
            ###############################################################
            static function get_flight_from_table (in flight_num){...

            13, TSL includes four types of functions:
            >Context Sensitive functions perform specific tasks on GUI objects, such as
            clicking a button or selecting an item from a list. Function names, such as
            button_press and list_select_item, reflect the function’s purpose.
            >Analog functions depict mouse clicks, keyboard input, and the exact
            coordinates traveled by the mouse.
            >tandard functions perform general purpose programming tasks, such as
            sending messages to a report or performing calculations.
            >Customization functions allow you to adapt WinRunner to your testing
            environment.

    延伸閱讀

    文章來源于領測軟件測試網 http://www.kjueaiud.com/

    TAG: winrunner WinRunner 學習


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

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

    老湿亚洲永久精品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>