Forum Discussion

tim_faron's avatar
tim_faron
Contributor
10 years ago

Losing object interation during execution .NET Application

I am testing a .NET Windows Desktop application and during the execution I start getting failures on accessing a Property of a particular object.



So for example, i test 'A' will use the object and pass, Test 'B' will goto use the object and then it will fail getting the Items.Count property in this case. If i kill the test and bring up the object spy i see the property and it's value.



Are there any indepth logs that i might be able to look into or any other suggestion?

1 Reply

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Hi Tim,



    I would suggest you to check the value of the .Exists property of the problematic object in test B where the problem occurs.

    The most probable reason for this problem is that test B tries to use the reference to the object that was obtained in test A and the object was recreated after test A obtained a reference to it.

    If the value of .Exists property is False in test B this will mean that the object was recreated and test B must obtain a reference to it (to the object) anew.