cancel
Showing results for 
Search instead for 
Did you mean: 

Content Container

SOLVED
Highlighted
Occasional Contributor

Content Container

Hi,

 

Anyone here who have worked on validating the WinFormsObject("ContentContainer") Object? I need to validate the values in the ContentContainer object. I cannot find the Properties to use.

 

Please help.

Thank  you in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Hi,

 

It contains a summary table grid. I’m nit sure how to get the properties and check if the values are correct.

As it was already said by Benoit, Object Browser / Object Spy is the primary tool that should be used to investigate internals of the tested application and to search for the properties / methods that can provide you the information that you need.

For the web applications, the contentText property of some container control contains all text displayed by this container and all its child controls. Sometimes this helps, sometimes does not.

For desktop applications, container controls usually do not have a property that contains the content of all child controls. This means that you need to find the needed controls and their relevant properties that contain values that you are looking for. In the case of table, usually you need to iterate through its cells and read cell values one by one.

.Net applications provide access to some set of native .Net methods through the metadata. These methods can be seen in the Object Browser on the Methods pane of the highlighted object. You may talk with developers and ask them if some method that can provide you with the data displayed by control (table in your case) exists. If such method exists, you may check if it is accessible to TestComplete (this method will be displayed on the Methods pane for this given object) and try to call it from your test code.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

8 REPLIES 8
Contributor

Hi,

Can you provide me with more information, what do you want about validating in Containers?

Highlighted
Community Manager

Thank you for willingness to help MadGrb!

@avin Please provide us with more details so the Community could help you figure this out, or post you solution if you managed to find answers on your own🙂


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
Occasional Contributor

Hi,

Thank you for your help.

I want to Validate the content like the calculation. It contains a summary table grid. I’m nit sure how to get the properties and check if the values are correct.
Highlighted
Occasional Contributor

Hi,
Sorry for the late response.
Highlighted
Community Leader

Hello,

 

Validating the content of a container is one of the primary task of tester,  .... it covers so much things ...

 

If you find a special difficulty or if yo are convinced that a optimized version of what you have done could be attended, we are here to discuss, help and improve. But before that you must do your part of the way.

 

Take the object spy, introspect and check the structure and values of your container.

 

If not familiar with object spy, follow the Smartbear course 101 first.

 

 

 

 

 

Un sourire et ça repart

Highlighted
Occasional Contributor

Hi,

Thank you for your suggestion. I will check the Smartbear Object spy 101. I have a lot to learn. Can you also give me some topic or some tips in asking question here. Like what information I can provide so people can better help me. I want to learn more and be a better community member here.

Thank You in advance!
Highlighted
Community Hero

Hi,

 

It contains a summary table grid. I’m nit sure how to get the properties and check if the values are correct.

As it was already said by Benoit, Object Browser / Object Spy is the primary tool that should be used to investigate internals of the tested application and to search for the properties / methods that can provide you the information that you need.

For the web applications, the contentText property of some container control contains all text displayed by this container and all its child controls. Sometimes this helps, sometimes does not.

For desktop applications, container controls usually do not have a property that contains the content of all child controls. This means that you need to find the needed controls and their relevant properties that contain values that you are looking for. In the case of table, usually you need to iterate through its cells and read cell values one by one.

.Net applications provide access to some set of native .Net methods through the metadata. These methods can be seen in the Object Browser on the Methods pane of the highlighted object. You may talk with developers and ask them if some method that can provide you with the data displayed by control (table in your case) exists. If such method exists, you may check if it is accessible to TestComplete (this method will be displayed on the Methods pane for this given object) and try to call it from your test code.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

Highlighted
Occasional Contributor

Thank you for your very informative explanation. I will talk to the developer and explore more
about the content container.
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get properties of a web page element

See replies!

Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file

Participate!

How to execute remote test and obtain results via Test Runner REST API

Participate!
Top Kudoed Authors