Repository: False Search Results via 'Find All Code Refs'

Bug reports.
RanoTester
Posts: 18
Joined: Mon Jan 14, 2013 7:16 pm

Repository: False Search Results via 'Find All Code Refs'

Post by RanoTester » Thu Oct 17, 2013 4:52 pm

PROBLEM SUMMARY: Repository - Search Results: The 'Find Code References > Find All Code References' feature is resulting in 0 items found for numerous Repo items that are in fact confirmed to be in use. This problem was not observed until we upgraded to Ranorex 4.1.0. Yet, the Repository - Cleanup feature seems to much more accurately state what Repo Items are not in use and are therefore safe to delete.

DESIRED BEHAVIOR: Repository – The 'Find Code References > Find All Code References' function should be just as trustworthy as the Repository – Cleanup function in regard to judging if a given Repo item is in use.

EXAMPLE SCENARIO: In Ranorex 4.1.0, we've opened our Smoke Test. Within that Smoke Test, we've opened a given .rxlog file. One of the action lines (Action = Mouse - Click) is mapped to a given Repo item. We open that repository file in Ranorex, right-click it, and perform the above-stated 'Find Code References > Find All Code References' action on that Repo item. The result is that about half the time, the correct search result will occur stating what files this Repo item is referenced in. However, there are numerous instances where 0 results are found. This '0 results found' is a problem / fail of the 'Find All Code References' feature in cases where in fact the selected Repo item is in use (by an existing .rxlog or usercode.cs file). Numerous instances of this problem type have been found.

BUSINESS IMPACT: The customer may then be inclined to Delete the Repo Item if this problem is encountered. If this is done (like our organization did), the script will fail to compile (due to being mapped to no longer existing repo items), and the customer will have to create new repo items / map these new repo items to the failed scripts. This process can come at a great expense in regard to both productivity and function. This can result in the loss of numerous man-hours to correct the problem, loss in the ability to run the Ranorex automation that will no longer compile due to the missing Repo Item references, etc. We deleted about 20 - 30 good, in-use Repo Items due to this problem, and had to re-create them and update the affected scripts to map to them. This took hours. Also, this problem can lead to loss in confidence in how accurrate the 'Find All Code References' feature is.

SYSTEM INFO:
Ranorex Studio Version 4.1.0.25227
Internet Explorer 8 Version 8.0.7601.17514
Java Version 7 Update 25 (build 1.7.0_25-b17)
Flash Player 11.8.800.94
Windows 7 Ultimate N Service Pack 1 64-bit Operating System - Installed Memory: 4.00 GB - Processor - Intel(R) Core(TM @ 2.67GHz)
10_17_13 - Get Problem - Repo - False Search Result.JPG
Get Problem - This Repo Item is in fact in use, it is mapped to this step in the script, but a 'Find All Code References' on this Repo Item has deemed it not to be in use. This is totally false. Get same result if we close this .rxlog file, open the Repository, select this same Repo Item, and run another 'Find All Code References' on it. This '0 results found in search' can lead us to deem this Repo item as delete-able. If this Repo item is deleted, this script will fail to compile!
10_17_13 - Get Problem - Repo - False Search Result.JPG (392.42 KiB) Viewed 1286 times
10_17_13 - Get Problem - Repo - False Search Result.JPG
Get Problem - This Repo Item is in fact in use, it is mapped to this step in the script, but a 'Find All Code References' on this Repo Item has deemed it not to be in use. This is totally false. Get same result if we close this .rxlog file, open the Repository, select this same Repo Item, and run another 'Find All Code References' on it. This '0 results found in search' can lead us to deem this Repo item as delete-able. If this Repo item is deleted, this script will fail to compile!
10_17_13 - Get Problem - Repo - False Search Result.JPG (392.42 KiB) Viewed 1286 times
Attachments
10_17_13 - Good - Repo - Correct Search Result.jpg
Good - This Repo item is in use - A 'Find All Code References' search on it has deemed it to be in use - This is correct given this Repo Item is in use for these files.
10_17_13 - Good - Repo - Correct Search Result.jpg (464.98 KiB) Viewed 1286 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Repository: False Search Results via 'Find All Code Refs'

Post by Support Team » Fri Oct 18, 2013 11:58 am

Hello RanoTester,

Thank you for reporting the issue.
Unfortunately I cannot reproduce the issue on my machine using Ranorex 4.1.1.
How did you upgrade Ranorex?
Could you please try to uninstall Ranorex completely, start you computer and install Ranorex again.
If this will not help solving the issue please send us a little example solution in order to analyze the issue in more detail on our machines.

Regards,
Bernhard
.
Image