Warn message in report using delphi

Best practices, code snippets for common functionality, examples, and guidelines.
yaro2o
Posts: 67
Joined: Mon Jan 29, 2018 11:19 am

Warn message in report using delphi

Post by yaro2o » Fri Nov 30, 2018 10:57 am

Hi. Does anyone have an idea of what to do to prevent this error? I have installed bad microsoft net framework ?

Could not automate delphi application: Incompatible CLR running in AUT.

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

Re: Warn message in report using delphi

Post by odklizec » Fri Nov 30, 2018 11:08 am

Hi,

What Ranorex version do you use? There was added new Delphi plugin in 8.2.0 and there were released several bugfixes between 8.2 and most recent 8.3.1. So if you are not using most recent 8.3.1, please update Ranorex.
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

yaro2o
Posts: 67
Joined: Mon Jan 29, 2018 11:19 am

Re: Warn message in report using delphi

Post by yaro2o » Fri Nov 30, 2018 11:08 am

I have instaled net framework 4.7 but in project i propertis i heave target framework net 4.6 and i cant change to 4.7

yaro2o
Posts: 67
Joined: Mon Jan 29, 2018 11:19 am

Re: Warn message in report using delphi

Post by yaro2o » Fri Nov 30, 2018 11:08 am

I used 8.3.1

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

Re: Warn message in report using delphi

Post by odklizec » Fri Nov 30, 2018 11:19 am

.Net 4.7 should not be a problem. Another thing you might try is to toggle below Delphi option (to opposite state you are currently using)...
Delphi.png
Delphi.png (16.68 KiB) Viewed 44 times
If this does not help, then I'm afraid, you will have to contact Ranorex support and request a remote session with them. I'm sure they will request access to the the app to be able to analyze the issue.
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

yaro2o
Posts: 67
Joined: Mon Jan 29, 2018 11:19 am

Re: Warn message in report using delphi

Post by yaro2o » Fri Nov 30, 2018 12:06 pm

Ok thx for help but this not solve my problem :(

I have another question if it is possible for the program to see what is in the table above or below the displayed window. Currently, the program can only choose from among visible items ?
Attachments
mstsc_2018-11-30_11-58-02.png
mstsc_2018-11-30_11-58-02.png (385.91 KiB) Viewed 42 times

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

Re: Warn message in report using delphi

Post by odklizec » Fri Nov 30, 2018 1:12 pm

Well, I'm afraid, I can't help you with the CLR issue. From quick qoogle search it looks as if the AUT is simply not fully compatible with some MS dlls/runtimes? Maybe it would help rebuilding it with some other flags? I think this is something you need to discuss both with Delphi app and Ranorex devs.

As for your other problem, I'm not quite sure what exactly you want to do and what's not possible to see/track with Ranorex spy? Could you please post a Ranorex snapshot? Screenshot is not particularly useful here.
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