How to kill the test left UI object in C#?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to kill the test left UI object in C#?
How to kill the test left UI object in C#?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Could you please clarify what do you mean?
If you are wondering about the lifetime of the variables in your C# test code, it is following regular rules for .Net.
If you are wondering about UI objects of the tested application, then the flow is like this:
-- Tested application creates its UI objects as it is implemented by developers;
-- TestLeft's runtime engine monitors these objects and maintains its internal objects tree;
-- When your test code searches for an UI object, the reference to the object from the above objects tree is returned;
-- When the tested application destroys the referenced UI object, TestLeft's runtime engine invalidates it in the objects tree and this is (automatically) reflected in your test code.
https://support.smartbear.com/testleft/docs/using/creating-tests/searching-for-objects.html and https://support.smartbear.com/testleft/docs/using/creating-tests/object-identification/understanding... might help further.
/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
================================
