cancel
Showing results for 
Search instead for 
Did you mean: 

unable to identify the draw image inthe test application

SOLVED
Highlighted
Occasional Contributor

unable to identify the draw image inthe test application

unable to identify the draw image inthe test application

 

Its drawan application contains four layered diagram.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Leader

Re: unable to identify the draw image inthe test application

To access the pixels array of an object, just do that (pseudo code):

  ...

// Get the image of the object
var image = myObject.Picture(Region bounds));

// Accessing individual pixel by
if (image.Pixels(i, j) == MycolorToCheck) 
 ...

// MycolorToCheck could be a predefined Windodws color (clBlack, clAqua, ..) or in RGB format.

 

For more information, type Pixels and Working with color in your TestComplete help (magic F1 key).

 

 

 

Un sourire et ça repart

View solution in original post

7 REPLIES 7
Highlighted
Community Leader

Re: unable to identify the draw image inthe test application

if its directly drawn on windows canvas, its not an object thus not visible by object inspection
Depends of the test goal but perhaps work with pixel colors ?

Un sourire et ça repart

Highlighted
Occasional Contributor

Re: unable to identify the draw image inthe test application

its directly drawn on windows canvas -which i am unable to identify the object using test complete.

 

Could you please explain how to do with pixel color identification?

 

Highlighted
Community Leader

Re: unable to identify the draw image inthe test application

To access the pixels array of an object, just do that (pseudo code):

  ...

// Get the image of the object
var image = myObject.Picture(Region bounds));

// Accessing individual pixel by
if (image.Pixels(i, j) == MycolorToCheck) 
 ...

// MycolorToCheck could be a predefined Windodws color (clBlack, clAqua, ..) or in RGB format.

 

For more information, type Pixels and Working with color in your TestComplete help (magic F1 key).

 

 

 

Un sourire et ça repart

View solution in original post

Highlighted
Community Leader

Re: unable to identify the draw image inthe test application

hi sathish_subrama 

 

What exactly Do You want to do with this picture?

 

1. Compare?

2. Read as obj and use in function?

3. Anything else?

Highlighted
Community Manager

Re: unable to identify the draw image inthe test application

Thank you Benoit and Wamboo! We appreciate your input.

 

@sathish_subrama did you find a way to identify the image using suggestions from this thread or any other way? Please update and let us know if you still need advice on thatSmiley Happy


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

Re: unable to identify the draw image inthe test application

i have used image compare method for validation. its working fine.

Highlighted
Community Manager

Re: unable to identify the draw image inthe test application

@sathish_subrama Great! Thanks for the update!


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
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

Changing options from outside of TestComplete

Participate!

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

Participate!

Comparing content of HTML table with Excel file data

Participate!

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

Participate!