0 Replies Latest reply on Aug 7, 2013 12:25 PM by Kaio NameToUpdate

    SilkTest Classic invoke method

      Hello community,

       

       

      I recorded a script in SilkTest Recorder smoothly when I'll test the script through the SilkTest Classic displays the error "INVOKE METHOD"

       

      # # # # # # #

      CODE FRAME

       

      = const wDynamicMainWindow Start

      Start Control window

        locator "/ Control [@ caption = 'Protheus 8 - Starting parameters']"

        / / The working directory of the application When it is invoked

        const sDir = "E: \ Mp8client"

        / / The command line used to invoke the application

         const sCmdLine = "E: \ Mp8client \ mp8rmt.EXE"

        / / The list of the windows recovery system is to leave open

        / / Const lwLeaveOpenWindows = {?}

        / / Const lsLeaveOpenLocators = {?}

       

      # # # # # # # # #

        testcase Invoke ()

       

        Desktop.Find ("/ Control [@ caption = 'Protheus 8 - Starting parameters'] / / Control [@ caption = 'combo edit'] [3].") Click (1, 135, 2)

        Desktop.Find ("/ Control [@ caption = 'Protheus 8 - Starting parameters'] / / Control [@ caption = 'combo edit'] [3]"). TypeKeys ("<Tab>")

        Desktop.Find ("/ Control [@ caption = 'Protheus 8 - Starting parameters'] / / Control [@ caption = 'combo edit'] [2]"). TypeKeys ("<Capslock> BTDF <3 #> <# 0> <# 9> <# 2>-JOB ")

        Desktop.Find ("/ Control [@ caption = 'Protheus 8 - Starting parameters'] / / Control [@ caption = 'unnamed'] [2].") Click (1, 69, 12)

        Desktop.Find ("/ MainWin [@ caption = 'Control Shops'] / / Control [@ caption = 'unnamed'] [6]"). TypeKeys ("<Tab>")

        Desktop.Find ("/ MainWin [@ caption = 'Control Shops'] / / Control [@ caption = 'unnamed'] [5]"). TypeKeys ("<Tab>")

        Desktop.Find ("/ MainWin [@ caption = 'Control Shops'] / / Control [@ caption = 'unnamed'] [4]"). TypeKeys ("<Tab>")

        Desktop.Find ("/ MainWin [@ caption = 'Control Shops'] / / Control [@ windowClassName = 'QWidget'] [7] / / Control [@ caption = 'unnamed'] [1].") Click ()

        Desktop.Find ("/ MainWin [@ caption = 'Control Shops'] / / Control [@ caption = 'End'] / / Control [@ caption = 'unnamed'] [1].") Click (1, 30 11)