The object "Sys" does not exist
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
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
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
/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
================================
