Ask a Question

The object "Sys" does not exist

SOLVED
JackalNZZ
New Contributor

The object "Sys" does not exist

Hi,

 

I have developed a simple keyword test that is working except for one line. It is clicking a Yes button on a window dialog rather than the No button.

So I changed the test to click the No button. I had to map the No button in the NameMapping object and save the change.

When the test is rerun I keep getting the following

 

JackalNZZ_0-1600728846844.png

 

If I restore the original NameMapping object without the newly mapped No button everything goes back to working.

 

Now I know the process LabWare-prePROD exists because the immediate prior message is 

JackalNZZ_1-1600729165140.png

because of the below script code

Set p = Sys.WaitProcess(processName)
While not p.Exists
    Call Log.Message("Waiting for " + processName + " to start", "", pmNormal, logAttributes)
    Set p = Sys.WaitProcess(processName)
Wend
Call Log.Message(processName + " exists", "", pmNormal, logAttributes)

 

What would make the Sys object not found?

 

regards

3 REPLIES 3
sonya_m
SmartBear Alumni (Retired)

Thank you for posting your question @JackalNZZ !

I can recommend taking the following learning course that is specifically designed to help deal with the object not found errors - https://academy.smartbear.com/store/727583-testcomplete-handling-the-object-not-found-errors 

 

In the meantime, let's see if the Community has ideas!

Any thoughts @Wamboo @Reshail @tristaanogre @BenoitB ?

 

 


Sonya Mihaljova
Community and Education Specialist

Thank you for your reply. Unfortunately it does not address the question.

 

I know how to handle object missing errors, that's fairly trivial.

 

The problem is I get a Sys object missing when I map a simple button object and add it to the NameMapping object and I want to know why.

AlexKaras
Champion Level 3

Hi,

 

It might help if you post here a screenshot of your keyword test and indicate what line/operation throws the error.

I also assume that you followed the procedure (https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/add/...https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/how-...) when you modified NameMapping.

You may also consider to create a Support ticket via the https://support.smartbear.com/message/?prod=TestComplete form.

 

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
cancel
Showing results for 
Search instead for 
Did you mean: