Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) object (FlowChartX) recognition in TestPartner (Read 13195 times)
JanWil
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Nov 23rd, 2009
object (FlowChartX) recognition in TestPartner
Nov 23rd, 2009 at 4:51pm
Print Post  
Hello,

I'm interested to see all properties of the FlowChartX OCX (which is used in our application) with the help of a GUI testing tool (TestPartner).

When I use the online demo (as available on your homepage) and I create a 'property check' in TestPartner, all properties of the ActiveX (=FlowChartX) become visible: all boxes, flows, etc, etc. This is exactly the way I want to interact with the ActiveX.
On the other hand, if I use the "Run Demo" program from the Start Menu, no ActiveX can be recognized by TestPartner (shows a "GUIObject" which means the test tool cannot see any properties of this object).

Do you have an idea what causes this different behavior and more importantly, what can I do to have object recognition on this "Run Demo" program - I suppose if it works on this Demo it will work for our application as well.

Thanks, Jan Willem
« Last Edit: Nov 23rd, 2009 at 7:49pm by JanWil »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: object (FlowChartX) recognition in TestPartner
Reply #1 - Nov 23rd, 2009 at 7:34pm
Print Post  
Hi,

What FlowchartX version are you using? In older versions the control was activated in windowless mode by default, for OLE containers that support it, and so this tool might not be recognizing it if it expects to get the COM control through a HWND.

Stoyan
  
Back to top
 
IP Logged
 
JanWil
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Nov 23rd, 2009
Re: object (FlowChartX) recognition in TestPartner
Reply #2 - Nov 23rd, 2009 at 7:52pm
Print Post  
Hi Stoyo,

we're using the last version (4.2)

Jan Willem
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: object (FlowChartX) recognition in TestPartner
Reply #3 - Nov 24th, 2009 at 8:57am
Print Post  
Ok, we'll check it with the trial version of TestPartner if MicroFocus send us a download link...
  
Back to top
 
IP Logged
 
JanWil
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Nov 23rd, 2009
Re: object (FlowChartX) recognition in TestPartner
Reply #4 - Nov 24th, 2009 at 9:17am
Print Post  
Hi Stoyo,

I've found the following link: http://www.microfocus.com/products/Testpartner/tryitform.asp

Great that you want to try this yourself!

Thanks, Jan Willem
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: object (FlowChartX) recognition in TestPartner
Reply #5 - Nov 24th, 2009 at 11:11am
Print Post  
Yes, we've already requested a trial there, but haven't received a download link yet.
  
Back to top
 
IP Logged
 
JanWil
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Nov 23rd, 2009
Re: object (FlowChartX) recognition in TestPartner
Reply #6 - Dec 3rd, 2009 at 9:09am
Print Post  
Hi Stoyo,

any progress? Did you receive anything from MicroFocus? Should I ask them again?

Regards, Jan Willem
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: object (FlowChartX) recognition in TestPartner
Reply #7 - Dec 3rd, 2009 at 9:19am
Print Post  
Hi,

Nope, their sales representative was supposed to contact us and give us a download link but never did. If you keep your trial copy, can't you upload it somewhere for us to download? I suppose MicroFocus wouldn't mind 8)

Stoyan
  
Back to top
 
IP Logged
 
JanWil
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Nov 23rd, 2009
Re: object (FlowChartX) recognition in TestPartner
Reply #8 - Dec 3rd, 2009 at 9:37pm
Print Post  
Hi Stoyo,

first I'll contact MicroFocus about this and ask them to deliver this download link to you - I've contacted them about this anyway. If that doesn't help: we have a TestPartner download (as zip file), so that's not the problem but probably the trial license is expired - I'll ask MicroFocus in the same thread.

Something else in the meantime while we're waiting for MicroFocus to move: are there any commandline tools out there with which properties of a running FlowChartX ActiveX object in a running application can be obtained (and possibly manipulated)? Or do you have an example how to code this in C/C++ or Delphi? If I would have something like that, I could still do what I would like to do with the 'direct' connection - perhaps have this commandline tool/(self-coded) program write to a txt file which can be read in TestPartner.

Do you have any ideas about this?

Thanks, Jan Willem
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: object (FlowChartX) recognition in TestPartner
Reply #9 - Dec 4th, 2009 at 8:47am
Print Post  
It should be possible to get a reference to the running flowchart through the OLE/COM API, but you will have to register your application as an OLE server. We'll try to create a sample project showing that next week.

Stoyan
  
Back to top
 
IP Logged
 
JanWil
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Nov 23rd, 2009
Re: object (FlowChartX) recognition in TestPartner
Reply #10 - Dec 16th, 2009 at 12:56pm
Print Post  
Hi Stoyo,

I've had some contact with microfocus and I hope soon they'll provide you with a trial version of TestPartner.

Registering as an OLE server. Interesting ...  Smiley
Is this the reason why object recognition works for Internet Explorer? IE is "default" registered as OLE server, isn't it?

I'll see what we can do about this here; in the meantime a small example from you (for example in Delphi?) might help!

Thanks, Jan Willem
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: object (FlowChartX) recognition in TestPartner
Reply #11 - Dec 18th, 2009 at 2:47pm
Print Post  
Hi Jan,

Ok, I have received the link and our developer will check this next week.

Noone here know enough Delphi to create an automation server, we could try to create an example in VB6.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: object (FlowChartX) recognition in TestPartner
Reply #12 - Dec 21st, 2009 at 2:44pm
Print Post  
Hi,

We have recorded some tests for the online demo and a VB6 test app of ours. How can we create that 'property check' in TestPartner you mentioned?

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: object (FlowChartX) recognition in TestPartner
Reply #13 - Dec 21st, 2009 at 3:08pm
Print Post  
I've noticed that TestPartner recognizes the flowchart as ActiveX when it's in IE or a VB app, but as GuiObject when in MFC application. Searching for MFC in the TestPartner help yields the following:

"Notes: ActiveX controls within an MFC environment do not allow access to its methods and properties without additional source code instrumentation. For more information, browse the contents of the TPAccessible folder in the TestPartner install directory."

So, I guess TestPartner relies on some features of the runtime to get the control instance from the window handle it detects clicks upon. For IE and VB it can get the control automatically, but not for MFC.

That TPAccessible directory contains a C++ header that defines the "registerWnd" function that supposedly will let you make the control accessible to TestPartner. From what I remember about MFC, I guess the call should look like this:

#include <TPAccessibleAPI.h>
...
registerWnd(m_flowchart.getHWnd(), "flowchart", m_flowchart.m_lpDispatch);

assuming your flowchartx instance is called m_flowchart.

I hope that helps,
Stoyan

Edit: in the "TPAccessible\Sample MFC Application" folder you can find a sample project that registers some ActiveX controls this way.
  
Back to top
 
IP Logged
 
JanWil
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Nov 23rd, 2009
Re: object (FlowChartX) recognition in TestPartner
Reply #14 - Dec 22nd, 2009 at 11:07am
Print Post  
Hi Stoyo,

OK, thanks. I'm not sure if we use MFC. I'll discuss this with our development department to see what we can do about this.

Thanks, happy holidays to you,
Jan Willem
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint