Forum Discussion

Paki's avatar
Paki
Occasional Contributor
16 years ago

Running Tests on different versions of my application

Dear All,

I have watched the videos for testcomplete but they all show how to record a keyword test or a script unit for an application that has everything properly running to be our basline then showing us how to force failures in this properly running application, So I couldn't understand how to benefit from the tool.

Thus I recorded a keyword test for a properly running application with no faults

Then I had to copy the application, add some faults in it and created an exe file out of it (lets call it version 2)

The point is  I want to run this keyword test on the second version of the application which contains faults so I tried to change the Aliases in the test actions of the keyword test to the name of the version 2 application and added under the tested applications the 2 versions and then I run the test to find the test complete open the version 2 as I want BUT it then keeps searching for the controls until time outs and nothing happens

What can I do ???

4 Replies


  • Hi Pakinam,





    I am guessing that you modified the Name Mapping scheme incorrectly. Please reproduce the problem, pack the entire project suite folder and send us the archive directly using the Contact Support form. We will look into your project and the log of the failed execution.
  • Paki's avatar
    Paki
    Occasional Contributor
    I think my problem is that I didn't use what you have called "Name Mapping scheme".

    How can I do so Please?
  • Paki's avatar
    Paki
    Occasional Contributor
    Hi David I tried to sent it to the link you have given me but I didn't recieve a Customer ID

    Here is the problem again in a simpler way



    I have 2 simple projects one called SchoolCorrect (lets call it version 1) and the other called School (version 2)

    The First I have used to record a keyword test called test1 then I want to run this test1 on the version 2 so I have changed in the test actions of the keyword test only the items that you will find a circle around them in the attached screenshot.



    Kindly find attached file called "theproblem"

    I have also attached another screenshot showing the log

    Also you will find the project suite



    Thanks in advance

  • Hi Pakinam,





    I think my problem is that I didn't use what you have called "Name Mapping scheme".

    How can I do so Please?
    The Name Mapping feature is enabled in TestComplete by default. You can find information on it in the Name Mapping help topic.





    I tried to sent it to the link you have given me but I didn't recieve a Customer ID 

    Here is the problem again in a simpler way
    If you are not a registered customer and you are using a trial version of TestComplete, you can specify the e-mail address used when you requested the trial.





    I have also attached another screenshot showing the log
    As you can see in this image, the content of the Remarks pane for the first error says that this object cannot be found (Missing Object): NameMapping.Sys.SchoolCorrect.





    This means that this object does not exist or its Name Mapping scheme does not provide unique and reliable identification of the corresponding object. Let's open the Name Mapping editor in your project and find this object. It is mapped by these properties:





    ProcessName: SchoolCorrect

    Index: 2





    As you can see, TestComplete tries to work with the second instance of the process for some reason. To fix the problem, you need to change the value of the 'Index' mapping property to '1' or just remove this property. Also, you need to make sure that you have a single instance of the SchoolCorrect process running in your system when you are working with the application from TestComplete.