Forum Discussion
Oferv
14 years agoSuper Contributor
Well,I think i know what the problem is but i don't know how to deal with it.
what is happen to occur is that the "("DockPanel", "....) object is created dynamically if a document was added to the application(first document)and from then on the object exist.but if the first docuemnt failed to created and so does the missing object,TC won't be able to check weather it exist or not because from TC point of view this objects doesn't exist and therefor it has no properties like the exists property i'm willing to check but,the application might failed adding the first document and the "("DockPanel", "....) might never be exist.i must cover the option where the application won't add the first document as part of my test script.how can i do that?is it possible to ask "if object created" or any other solution?
by the way it works fine if the "("DockPanel", "....) object already exists means,for the second document added and on because the object exist it can be quote for its properties and exists is the property i'n quoting.
thanks
what is happen to occur is that the "("DockPanel", "....) object is created dynamically if a document was added to the application(first document)and from then on the object exist.but if the first docuemnt failed to created and so does the missing object,TC won't be able to check weather it exist or not because from TC point of view this objects doesn't exist and therefor it has no properties like the exists property i'm willing to check but,the application might failed adding the first document and the "("DockPanel", "....) might never be exist.i must cover the option where the application won't add the first document as part of my test script.how can i do that?is it possible to ask "if object created" or any other solution?
by the way it works fine if the "("DockPanel", "....) object already exists means,for the second document added and on because the object exist it can be quote for its properties and exists is the property i'n quoting.
thanks