Ask a Question

How to handle dynamic objects in TestComplete?

SOLVED
RajibPradhan
Occasional Contributor

How to handle dynamic objects in TestComplete?

Hi,

 In my .NET application the name of a grid object is dynamic. I want to print the object's value. How can I automate it?



Thanks,

Rajib
1 ACCEPTED SOLUTION

Accepted Solutions
irina_lukina
Super Contributor

RE: How to handle dynamic objects in TestComplete?

Hi Rajib,


Below, are several approaches that you can use in this case:


1. Use wildcards inside the target grid name. For instance, if your grid may have the following names: Grid1, Grid2, and so on, you can use the following mask for the window name - Grid*.


For more information, please refer to the Using Wildcards help topic.


2. Use the Find method to find the target window not by this name, but by the values of its properties.


3. Use wildcards in your name mapping scheme to map the window with the dynamic name. For more information, please refer to the Using Wildcards in Name Mapping help topic.

I’m not a member of the SmartBear Support Team, I’m just helping users in this community. Any views or opinions expressed do not necessarily represent those of SmartBear Software.

View solution in original post

1 REPLY 1
irina_lukina
Super Contributor

RE: How to handle dynamic objects in TestComplete?

Hi Rajib,


Below, are several approaches that you can use in this case:


1. Use wildcards inside the target grid name. For instance, if your grid may have the following names: Grid1, Grid2, and so on, you can use the following mask for the window name - Grid*.


For more information, please refer to the Using Wildcards help topic.


2. Use the Find method to find the target window not by this name, but by the values of its properties.


3. Use wildcards in your name mapping scheme to map the window with the dynamic name. For more information, please refer to the Using Wildcards in Name Mapping help topic.

I’m not a member of the SmartBear Support Team, I’m just helping users in this community. Any views or opinions expressed do not necessarily represent those of SmartBear Software.

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: