Contributions
Re: check fields visiblility
This should get you on your way: https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/checking-existence.html Using the methods described there you could check whether said 20 fields exist on your form. To see if there are additional fields you could search for all fields of a certain type and see how many are returned. Keep in mind that a field can exist while being invisible. Therefore, it is wise to check the "Visible" or "VisibleOnScreen" property of each existing field.950Views2likes0CommentsRe: How to map objects during run time?
So basically you want to map your application? Why not just use the namemapping then? I imagine that if your application changes to such extent as you describe that you'd have to constantly modify your test scripts anyway. It's probably not that much of an additional effort to update your name mapping as well.2.2KViews0likes1CommentRe: How to map objects during run time?
If you at least know some of the identifying properties of the objects you're going to interact with you could look for all of them during your test with the FindChild()-method. https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-all/findchild-method.html2.2KViews0likes0CommentsRe: On .Click() Action Computer enteres PowerSafeMode. Why?
Could the problem be that calling SetText with null as an argument causes weird behaviour? The reason I'm asking is because line 4 in your screenshot will never evaluate to true. So, if userName or userPassword are null they will never be set to the supervisor login information you defined. What you want line 4 to look like is: if(userName == null || userPassword == null){2KViews1like1CommentRe: Different fields with same object name
No, what I meant was to map the text fields based on their ObjectType and Id or Name properties. See the documentation linked below if you don't know how to use the Name Mapping. Once a field is mapped (it saves you the trouble of having the test search for it everytime you need it) you can just call the Text-property of it in your test and check if it is correct. https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/index.html3.4KViews1like0Comments