cancel
Showing results for 
Search instead for 
Did you mean: 

Error dlg popup: Could not convert variant of type (Dispatch) into type (OleStr)

SOLVED
Occasional Contributor

Error dlg popup: Could not convert variant of type (Dispatch) into type (OleStr)

Hi Guys,

  When I want to map a object, the dlg always pop up, and search the same issue, I know it maybe has a relationship with VS. But I want to know the right solve ways. By the way, I use TC12.6. Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Occasional Contributor

Re: Error dlg popup: Could not convert variant of type (Dispatch) into type (OleStr)

Hi, @tristaanogre ,  

    I have summit this issue to customercare team , and this is a solve way:

   1. Uninstall TestComplete 12.
   2. Delete the "<Program Files>\SmartBear\TestComplete 12" folder.
   3. Restart the machine.
   4. Install TestComplete 12.

It's valid for my issue.

Very thanks!

8 REPLIES 8
Community Hero

Re: Error dlg popup: Could not convert variant of type (Dispatch) into type (OleStr)

What are you trying to map?  Can you give us anything from the Object Spy?  what properties are you trying to use?

 

Basically, what you are seeing is that you're trying to utilize a property that is an object and not a string or integer.  So, your property selection is incorrect.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Occasional Contributor

Re: Error dlg popup: Could not convert variant of type (Dispatch) into type (OleStr)

Thanks Robert, It is a Path of Wpf object, I can spy it but can't map it on the comuter with Vs, but another computer it works normally.

 

Community Hero

Re: Error dlg popup: Could not convert variant of type (Dispatch) into type (OleStr)

We will still need to see how TestComplete views the object on your workstation that is having the problem.  Using Object Spy, can you get us the list of properties and methods?


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Occasional Contributor

Re: Error dlg popup: Could not convert variant of type (Dispatch) into type (OleStr)

Yes, it can spy the object and get the properties. 

Community Hero

Re: Error dlg popup: Could not convert variant of type (Dispatch) into type (OleStr)

Please pass them along.  Also, please indicate which property you're trying to use to map the object.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Occasional Contributor

Re: Error dlg popup: Could not convert variant of type (Dispatch) into type (OleStr)

No, I can't enter the step, when I use Map object tool to spy the object, the error dlg will pop up and testcomplete has no response.  So I can't find what property it is.

Community Hero

Re: Error dlg popup: Could not convert variant of type (Dispatch) into type (OleStr)

This sounds like something you need to bring up with TestComplete support.  Message them at https://support.smartbear.com/message/?prod=TestComplete


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Occasional Contributor

Re: Error dlg popup: Could not convert variant of type (Dispatch) into type (OleStr)

Hi, @tristaanogre ,  

    I have summit this issue to customercare team , and this is a solve way:

   1. Uninstall TestComplete 12.
   2. Delete the "<Program Files>\SmartBear\TestComplete 12" folder.
   3. Restart the machine.
   4. Install TestComplete 12.

It's valid for my issue.

Very thanks!

New Here?
Join us and watch the welcome video:
Join the September Hub-bub to show off, learn and win