Forum Discussion

odedma's avatar
odedma
Contributor
13 years ago
Solved

waiting along time for the autocomplete ....

Hi,



when i use the autocompletes word (Crtl + Space Bar) or press "."

it takes like for ever till i see the options ... (1-3 min) 

is there anything to do about it ?





thank's 



Oded
  • Hi,

     

    proper Name Mapping to ensure that it defaults to the Aliases

    Well, there is some architecture that is good to be aware of:

    -- Tested application contains some object that you'd like to interact with in test code. This (let's call it physical) tested object contains some properties with their corresponding values. Also this object is located at some level within the objects' hierarchy that exists in the tested application. This is the lowest layer;

    -- Next NameMapping goes. NameMapping may be considered as a table that specifies the rule(s) that let test code to find the tested physical object. The proper set of rules (unique and stable identifiers, depth of search, conditional search, whether or not try to search down the objects' hierarchy) makes it possible for test code to find the tested object when the internal structure of the tested application changes (to some extent) during development or when the values of the properties that are used for object's identification change (for example, when testing on different environments). However the NameMapping itself is not perfect: it depends on the physical objects' hierarchy and might be changed when this hierarchy changes during development (for example, if tested objects are moved from one parent to another or some parents are added or removed). NameMapping is at the middle layer;

    -- Aliases are at the highest level and their purpose it to make your test code to be as independent from the tested objects' hierarchy changes as possible. Aliases are located on top of NameMapping and are linked to it. You can adjust the structure of the Aliases tree very significantly but every element of Aliases tree remains to be linked to its corresponding NameMapping element. Which, in its turn is 'linked' to the physical tested object. So you may consider NameMapping as a translation table between Aliases (that correspond to the tested objects' hierarchy that is convenient to you as a user) and physical tested objects in the application. Note, that, for example, if because of changes in the objects' hierarchy in the tested application NameMapping must be changed (some NameMapping elements must be moved up or down the hierarchy or some new elements must be inserted in-between or removed), those changes will not alter Aliases tree and thus your test code will remain unchanged. Actually, there is no need to use NameMapping object in test code and Aliases one should be preferred one.

     

    With the above in mind, the best strategy with automation with TestComplete is to investigate your tested application before test recording and create NameMapping and Aliases elements that identify the elements you will interact with during recording. In this case TestComplete will use Aliases elements during recording. Also with manual preliminary Aliases design you will get more clean and clear objects tree that better corresponds to the tested objects' hierarchy from the end-user point of view (more flat structure, absence of not necessary intermediate panels, more descriptive names, etc.)

     

5 Replies


  • Hi Oded,


     


    Please answer the following questions:


    1. What TestComplete version are you using? 


    2. What script language are you using?


    3. Give us a sample script line where this happens.


     

  • Hi Tanya,



    thank you for your fast replay.



    regarding your questions here are the answers :

    1.Im using Test Complete version 9.1

    2.Im using VB script

    3.it happens in every line nothing special in a certain line or another ... 



    Oded

  • Hi Oded,


     


    First of all, I'd recommend that you update to TestComplete 9.20. If the problem persists, please follow the steps below to help our R&D team figure the problem out:


     


    1. Run the Report Generator tool located in <TestComplete>\Bin\ReportGenerator.exe.


    2. Select the "Launch/attach to TestComplete" option.


    3. Reproduce the problem.


    4. Click the "Generate..." button in the Report Generator tool and save the report to a local folder.


    5. Send the report to our Support team with the description of the problem.


    Thanks!

  • nick_fess's avatar
    nick_fess
    Occasional Contributor
    Hi!



    I have the same exasperating problem with my TestComplete 9.20.2460.7 in JS script with "dot"-expressions.



    P.S. And tell Sergey Lukashenko that it's the BIG problem and that found issues should be fixed!



    thx

  • Hi Nick,


     


    Sergey asked me to clear up the issue. Please answer the following questions:


    1. Does the issue occur every time?


    2. Is the issue reproduced with the newly created script unit?


    3. Can you post the problematic line here? Also, specify where the mouse cursor is located in it when the issue occurs.