Forum Discussion
I think it is possible, you can create dummy objects in the NameMapping and modify them in-order to use it as descriptive way.
Like below,
- nimishbhuta7 years agoFrequent Contributor
Hello Shankar,
Thanks for your reply. I am not sure why we need to create a dummy object instead why can't we use the mapped or named object hierarchy and use regular expression to achieve the desired result.
Also,creating the dummy objects and working on it will be additional task and time consuming. I require a good solution on this.
Apart from this, I was evaluation the option to pass the object to the function ClickButton but that is also not working.
I tried to create the object as Set obj= Aliases.browser.page.button and pass obj in to the ClickButton Sub routine with a statement to click the object but that is also not working. I tried using the map object : Set obj=Sys.browser.page.button but that is also not working.
Right now, I am clueless on how to create custom sub routines for basic task such as click button, set the text box value etc.
Regards,
Nimish
- shankar_r7 years agoCommunity Hero
I guess, you want your descriptive programming without having any NameMapping predefined.
I personally would not recommend to go without NameMapping since you can not achieve 100% without NameMapping.
Also, TestComplete provide massive options in the NameMapping which ease our automation.
- nimishbhuta7 years agoFrequent Contributor
Yes. I dont want to use the NameMapping but the example you should involves NameMapping for creating a dummy object.
I don't want to go through NameMapping or Mapped object just directly referring to the object through it's property.
Please let me know if it can be achieved or not.
Regards,
Nimish
Related Content
- 5 months ago
- 7 years ago
Recent Discussions
- 19 hours ago
- 19 hours ago
- 5 days ago