Ranorex Qt property issue

Class library usage, coding and language questions.
gce
Posts: 23
Joined: Mon May 03, 2021 10:31 am

Ranorex Qt property issue

Post by gce » Thu Jul 15, 2021 1:38 pm

Hi guys!

Qt 5.15.3 is used and latest Ranorex version(test with 9.5.3. and today updated to 10 to see if it maybe works).

Q_PROPERTY(qreal duration READ getDuration );

This is a property which I want to extract from Ranorex.
When I start the application under test with Ranorex I can get the property but the value for the property is always zero.
When I start the application by myself then the value of the property is set correctly.

During debugging I saw that ranorex is injecting some dll's into the application (see in the attachments)


Could it be that somehow the dll's from ranorex could break something?
During debugging I made a breakpoint on getDuration and starting the application with ranorex results in that the breakpoint is never reached but with a manual start of the application the breakpoint is reached every time.

I hope someone can help me!
Thanks in advance!
Br
Attachments
ranorex2.PNG
ranorex2.PNG (53.78 KiB) Viewed 637 times
ranorex1.PNG
ranorex1.PNG (11.49 KiB) Viewed 637 times

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7102
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Ranorex Qt property issue

Post by odklizec » Thu Jul 15, 2021 2:10 pm

Hi,

I'm afraid, this kind of issue would be better to discuss directly with Ranorex support. However, have you tried to enable/disable QT Legacy automation mode in Ranorex settings?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

gce
Posts: 23
Joined: Mon May 03, 2021 10:31 am

Re: Ranorex Qt property issue

Post by gce » Thu Jul 15, 2021 2:38 pm

Hi,
yes i tried it but still have this issue.
Will write directly to ranorex support.

Br