SanderKOccasional ContributorJoined 8 years ago19 Posts12 LikesLikes received1 SolutionView All Badges
ContributionsMost RecentMost LikesSolutionsRe: 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. Re: 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. Re: 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.html Re: Getting error text in message Does the error dialog contain a child panel or label which in its turn contains the error message itself? Re: 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){ Re: subtraction of two variable Scientific notation is still decimal, not hexadecimal. In Javascript there is a Number.toFixed() function which gets rid of the scientific notation. Your scripting language (is that C++ script or C# script?) probably has a similar feature. Re: 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.html Re: Different fields with same object name It seems like Id and Name can be used to distinguish individual textboxes. I would map them based on their ObjectType and Id. Re: Why TestComplete cannot detect objects n windows security popup (to enter credentials ) in windows10 If you know where the popup is going to open you could try to interact with it by sending clicks to the right coordinates on the desktop. Re: Different fields with same object name Open the checkpoint wizard, choose Object property and drop the crosshair on one of the fields. Then click Next and Advanced and you'll get a list of all the field's properties and their values.