Forum Discussion
Well, okay, but it would have saved a lot of time if you had just said you can't talk to the developers, right?
TestComplete can work with an .exe because its actions on the screen mimic a user. However, when you start wanting to assert or compare values and your tests are not coming out as expected, then that's beyond user experience and now you have to tell TestComplete what to do.
Why there isn't a wText property where you expect one, I don't know. You said it was in your documentation but perhaps that is wrong. If it's not automatic to add one in whatever code this is, then it's possible that the developer didn't do it. I test all sorts of web pages where there's no Id or Name set up so I have to find another way around to identify the object, or in my case I can ask the developer to add a better identifier.
When you said earlier that you had been through all the Object Spy properties, does that include digging down all the levels using the buttons on the right with ... ? See my attached example.
Actually I could probably talk to the developer if it is really needed but I must know exactly what question to ask.
I dug deeper into the properties as you suggested in your image but couldn't find tooltip text anywhere.
Even the wText shows as blank.
Marsha_R wrote:
Well, okay, but it would have saved a lot of time if you had just said you can't talk to the developers, right?
TestComplete can work with an .exe because its actions on the screen mimic a user. However, when you start wanting to assert or compare values and your tests are not coming out as expected, then that's beyond user experience and now you have to tell TestComplete what to do.
Why there isn't a wText property where you expect one, I don't know. You said it was in your documentation but perhaps that is wrong. If it's not automatic to add one in whatever code this is, then it's possible that the developer didn't do it. I test all sorts of web pages where there's no Id or Name set up so I have to find another way around to identify the object, or in my case I can ask the developer to add a better identifier.
When you said earlier that you had been through all the Object Spy properties, does that include digging down all the levels using the buttons on the right with ... ? See my attached example.
- Marsha_R6 years agoChampion Level 3
Once again, exactly what to ask is what tristaanogre posted before
@tristaanogre said this: "And... if all else fails... contact your developer and ask "Hey, where does that tool-tip reside? I want to be able to validate it in the automation and I'm having a hard time finding it in the component objects."
- tristaanogre6 years agoEsteemed Contributor
Note: wText is a property that TestComplete adds to certain object classes. So, there will not always BE a wText property. This means, rather than looking for that property, you should be looking for the text and, from that, determine which property to use. This is what you need to go to the developer with. Ask them:
1) What object in the application contains the tooltip text?
2) What triggers the instantiation of that object?
3) What property on the object contains the tooltip text?
4) When is that property populated with the text?
etc...
These are just a few questions that I would ask my developer... most of the time, I'd pull up a shared screen, show him/her what I'm trying to do, guide them through the basics of how TestComplete views objects, and then ask them to help me find the text.... this usually takes, probably, about an hour as we spend time, collaboratively, investigating the application under test.