• <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-06-26來源:作者:點擊數: 標簽:winrunnerWinRunner學習
    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
       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 aclearcase/" target="_blank" >ccess 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

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