Performance Issue when Testing NET 6 application

Ask general questions here.
hc123
Posts: 11
Joined: Tue Nov 09, 2021 9:08 am

Performance Issue when Testing NET 6 application

Post by hc123 » Tue Aug 30, 2022 8:00 am

Hello,

Recently, our tested application is having NET Framework update. From previously, NET Framework 4.7.2 to NET6.

Please note that, the things that was upgraded was only the NET Framework. The UI itself, was not changed.

When I'm trying to run Ranorex on the upgraded application, I have found out that Ranorex is having a performance issue (slow to run).

Here's the time comparison:

I'm trying to run a test case to move element on CAD
Image

Using Ranorex 10.2.4:
Before NET 6 applied the test was running in 1.6 minutes
After NET 6 applied the test was running in 3.1 minutes
The test run was approximately 2x slower.

Image

Using Ranorex 9.3.1
Before NET 6 applied the test was running in 1.7 minutes
After NET 6 applied the test was running in 6.3 minutes
Using Ranorex 9 was even slower (approximately 3.5x slower)

Image

I've found this topic also posting the same problem but it doesn't get any replies:
https://www.ranorex.info/viewtopic.php? ... et6#p71428

So, using Ranorex, are there any ways that I'm able to try, to test the NET6 application without getting performance hit?
If it's possible, I want the test to stay running at 1.7 minutes.

User avatar
doke
Posts: 112
Joined: Fri Mar 29, 2019 2:33 pm

Re: Performance Issue when Testing NET 6 application

Post by doke » Tue Aug 30, 2022 3:17 pm

hi Hc,

Could you zoom into the real problematic items in editdesignlayer (which goes from 20 to 50 seconds )?

Possibly you need adjust the repo items so regconition is faster with the new framework

regards,
Don

hc123
Posts: 11
Joined: Tue Nov 09, 2021 9:08 am

Re: Performance Issue when Testing NET 6 application

Post by hc123 » Wed Aug 31, 2022 7:50 am

Hello Doke,

Here's the content of the EditDesignLayer recording:
Image

Basically the recording will click Edit context menu of the corresponding Design File Layer.
Imagephoto uploader for forums

I have tried to set the RanorexXPath setting to Speed, and modify the corresponding Repository item XPath.

In the post-NET6 application, running the EditDesignLayer recording with Speed setting will get me 38 seconds, from previously modified XPath 44 seconds.

But, I still can't make the recording run faster like pre-NET6, which I can get 13 seconds.

Here's the time comparison:

Image

User avatar
doke
Posts: 112
Joined: Fri Mar 29, 2019 2:33 pm

Re: Performance Issue when Testing NET 6 application

Post by doke » Wed Aug 31, 2022 3:55 pm

Hi,
1 Is there another way to do the edit action ( press E, if context menu is open) ?
2 how fast is the recognition of the context menu itself and does this differ from the edit item ?
3 it would help if you could show the repo path for the edit item of the context menu, and if possible the live spy result for the context edit item ?

Regards,
Don

hc123
Posts: 11
Joined: Tue Nov 09, 2021 9:08 am

Re: Performance Issue when Testing NET 6 application

Post by hc123 » Thu Sep 01, 2022 3:24 am

Hello,

1. AFAIK, right click mouse is the only way to display context menu
2. Both the recognition of BLANK item (item to right click) & clicking Edit context menu suffers the same performance issue
3. Here's the repo screenshot
Image

User avatar
doke
Posts: 112
Joined: Fri Mar 29, 2019 2:33 pm

Re: Performance Issue when Testing NET 6 application

Post by doke » Thu Sep 08, 2022 3:06 pm

Hi,

If recognition of the recorded elements in the live-spy is much faster as the recognition during runtime/test execution, I advice you to contact support.

Have look at the added solution, for some idea's about keeping your repo clean & lean.

User avatar
doke
Posts: 112
Joined: Fri Mar 29, 2019 2:33 pm

Re: Performance Issue when Testing NET 6 application

Post by doke » Thu Sep 08, 2022 3:09 pm

solution
You do not have the required permissions to view the files attached to this post.