Ask a Question

Cannot get a picture object from the input parameter, error occurs on region checkpoint tests

ThomasCasserly
Frequent Contributor

Cannot get a picture object from the input parameter, error occurs on region checkpoint tests

Hi all,

 

I am having an issue with Region checkpoints, getting a "Cannot get a picture object from the input parameter", error message and couldn't find anything in the TestComplete help file on this topic. One message here on the community that was related to this issue but did not answer my questions.

 

1) Why is this error occurring?

2) How do I stop it from occurring?

 

NOTE: I'm recording keyword tests, I haven't got a clue about scripting programming etc.

 

Thanks

 

Tom.

 
8 REPLIES 8
shankar_r
Community Hero

Can you post the log message here?


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

All that appears in the test log, on the Additional Info tab,  is the message: "Cannot get a picture object from the input parameter."

 
Is there another log somewhere else?

Hi Shankar,

 

I've already reviewed those links and they don't help me with the issue, there's nothing in them that allows me to find a solution.

 

I have a workaround, I remap the region on which the error occurs. But this does not stop the error from re-occurring in later tests.

 

 

So, the issue here is Cannot get a picture object from the input parameter. which means TestComplete not able to get the picture from the Object which you are trying to compare.

 

This can be come when the object not exists in the UI.

 

I would say manually see whether you are able to access of that object picture using TestComplete Object Browser

 


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

Hi Shankar,

 

when TestComplete is not able to get the picture from the object, I assume this means the object on the webpage that is being tested, is that correct?

 

If that is the case is it possible that if the page is still loading elements, that this might prevent TestComplete from getting the picture of the object?

 

I have had issues with other controls not being found and errors occurring which have stopped tests. For these I had to add in "Exists" steps to allow the page to fully load before the test step was executed.

when TestComplete is not able to get the picture from the object, I assume this means the object on the webpage that is being tested, is that correct?

 

If that is the case is it possible that if the page is still loading elements, that this might prevent TestComplete from getting the picture of the object?

 

Yes, TestComplete cannot get complete when it is loading. It is best practice to have dynamic wait until your page loads successfully

 

I have had issues with other controls not being found and errors occurring which have stopped tests. For these I had to add in "Exists" steps to allow the page to fully load before the test step was executed.

 

It is best practice to have Exists condition when you do the UI actions.


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

Ok,

 

thanks, that  might be the source of the issue. Next time I get that error I will try adding "Exists" condition and see if is solves the problem and prevents it from recurring.

 

Thanks for the help.

cancel
Showing results for 
Search instead for 
Did you mean: