cancel
Showing results for 
Search instead for 
Did you mean: 

How to kill the test left UI object in C#?

New Contributor

How to kill the test left UI object in C#?

How to kill the test left UI object in C#?

1 REPLY 1
Community Hero

Re: How to kill the test left UI object in C#?

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.

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================