How to remove Unnecessary Plugins?

Ask general questions here.
User avatar
taoyang987
Posts: 19
Joined: Sun Jan 06, 2013 8:43 am

How to remove Unnecessary Plugins?

Post by taoyang987 » Mon Jan 21, 2013 2:56 am

I only test webSites,so i don't need other plugins.how can i remove unNecessary Plugins. In the Solution, I remove the unusing References Plugin. After rebuilding, the removed Plugin is still there. i try to not install the plugins when install ing ranorex, but failed.
with the unNecessary Plugins .the buiding process is very slow .process of finding elements is also very slow.
so any way?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: How to remove Unnecessary Plugins?

Post by Support Team » Mon Jan 21, 2013 5:14 pm

Hello,

Basically, the number of enabled Ranorex flavors (technologies) should have only a very minor impact on performance. Consequently, disabling a flavor will most probably not speed up your automation, simply because the flavor was not used anyway if the AUT does not use that technology.

Performance problems usually have other causes, e.g. RanoreXPaths that are not specific enough or search too many elements. Could you post the code/RanoreXPath you use and a snapshot of the elements that cause trouble?
Do you get any warnings in the Ranorex report?

Anyway, just for completeness, you could disable a specific Plugin in User Code as shown below:
Ranorex.Plugin.Win32Flavor.Instance.Enabled = false;  
Ranorex.Plugin.JavaFlavor.Instance.Enabled = false;
Ranorex.Plugin.MsaaFlavor.Instance.Enabled = false;
Ranorex.Plugin.WebFlavor.Instance.Enabled = false;
Ranorex.Plugin.ChromeWebFlavor.Instance.Enabled = false;
Ranorex.Plugin.FlexFlavor.Instance.Enabled = false;
Ranorex.Plugin.RawTextFlavor.Instance.Enabled = false;
Ranorex.Plugin.WinFormsFlavor.Instance.Enabled = false;
Ranorex.Plugin.WpfFlavor.Instance.Enabled = false;
Ranorex.Plugin.MozillaWebFlavor.Instance.Enabled = false;
Warning:
Disabling a flavor can have unwanted side effects. Many applications do not use a single technology; in other words, multiple Ranorex flavors are needed to automate a single application. For example:
The Win32Flavor is a base flavor and disabling it will basically render all other flavors useless.
The MsaaFlavor is used by nearly all technologies, especially in Win32, WinForms, and Web applications. So if you disable that flavor, some elements in such application will not be identified any more.

Regards,
Markus (T)

User avatar
taoyang987
Posts: 19
Joined: Sun Jan 06, 2013 8:43 am

Re: How to remove Unnecessary Plugins?

Post by taoyang987 » Tue Jan 22, 2013 1:53 am

thanks i got it

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: How to remove Unnecessary Plugins?

Post by Support Team » Tue Jan 22, 2013 9:01 am

Hello,

You are welcome :-)

Regards,
Markus (T)

User avatar
taoyang987
Posts: 19
Joined: Sun Jan 06, 2013 8:43 am

Re: How to remove Unnecessary Plugins?

Post by taoyang987 » Thu Jan 24, 2013 8:00 am

when installing , we can cancel the firefox or chrome plugin, why can't cancel the othe plugins?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: How to remove Unnecessary Plugins?

Post by Support Team » Thu Jan 24, 2013 9:55 am

taoyang987 wrote:when installing , we can cancel the firefox or chrome plugin, why can't cancel the othe plugins?
I think you are mixing up Ranorex Plug-ins and browser Add-ons.
All Ranorex plug-ins are always installed and you cannot deselect those plug-ins (listed under "Ranorex Main Components" in the setup). The plug-ins are DLLs that are placed in the .NET Global Assembly Cache (GAC).
You can however choose to not install specific browser add-ons (e.g. for Firefox, Chrome, IE) if you do not want to automate these browsers.

As Markus tried to explain before, there is usually little sense in not installing or disabling a Ranorex plug-in/flavor (=technology), because performance problems are only very rarely solved that way.

Regards,
Alex
Ranorex Team

User avatar
taoyang987
Posts: 19
Joined: Sun Jan 06, 2013 8:43 am

Re: How to remove Unnecessary Plugins?

Post by taoyang987 » Thu Jan 24, 2013 10:13 am

thanks ,i got it.

User avatar
taoyang987
Posts: 19
Joined: Sun Jan 06, 2013 8:43 am

Re: How to remove Unnecessary Plugins?

Post by taoyang987 » Thu Jan 24, 2013 10:14 am

i used qtp before, so i always think in that way :lol: