Forum Discussion

nchullip's avatar
nchullip
New Contributor
7 years ago
Solved

TestComplete Desktop Script Execution

Hi friends,

  I am new to TestComplete. I have recorded a script to automate my Desktop application. When I rerun the recorded script, I can see that script is waiting for an object after it  has already been executed. This significantly increases the execution Time. Could you please help me with this?

 

  • Do you have Visualizer on Playback turned on?  That might create some overhead.  

5 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    Can you provide us with the problematic code line and several lines that surround it ?

    • nchullip's avatar
      nchullip
      New Contributor

      def getPropertyPageData(short_title, test_purpose, user, feature, subfeature, product,tester_notes):

      integrityClient = Aliases.IntegrityClient

       

      TVIGuiView = integrityClient.Document_Author_ViewSet

      rootPane = TVIGuiView.RootPane

      layeredPane = rootPane.null_layeredPane

      editIssueWindow = TVIGuiView.Test_Design_Property_Page

      editIssueWindow.Test_Design_Short_Title.Keys(short_title)

      HTMLEditorEx_RichEditorPane = editIssueWindow.Test_Design_Purpose

      HTMLEditorEx_RichEditorPane.Click(18, 9)

       

      HTMLEditorEx_RichEditorPane.Keys(test_purpose)

      gradientPanel = editIssueWindow.Edit_Details.Content_Section

      genericModifyItemTabFieldsEntryPanel = gradientPanel.Edit_SubSection

      tabLayoutJPanelBase_GridPanel = genericModifyItemTabFieldsEntryPanel.Details

      tabLayoutJPanelBase_GridPanel.PanelEx2.field_Assigned_User_7.EditFieldComponentMultiValue_1.DataFilterPopup_DFComboBox.ComboBox_arrowButton.Click(8, 7)

       

      textFieldEx = rootPane.TextBox

      textFieldEx.Keys(user) #the script waits for 3 seconds after executing this step

      panel = layeredPane.null_contentPane

      panel2 = panel.Panel

      buttonEx = panel2.Panel.ButtonEx

      listEx = panel2.DataFilterListPanel.Panel.DataFilterCollapsablePanel.PanelEx.ScrollPane.Viewport.ListEx

      listEx.ClickItem("Tester-1")

      tabLayoutJPanelBase_GridPanel.PanelEx5.field_Feature_579.EditFieldComponentMultiValue_1.DataFilterPopup_DFComboBox.ComboBox_arrowButton.Click(10, 8)

      textFieldEx.Keys("Another New Feature")  #the script waits for 3 seconds after executing this step

      listEx.ClickItem("Another New Feature")  #the script waits for 3 seconds after executing this step

       

      • nchullip's avatar
        nchullip
        New Contributor

        It waits for atleast 3 seconds after each ListBox , Textbox item.