Page 1 of 1

How to remove Unnecessary Plugins?

Posted: Mon Jan 21, 2013 2:56 am
by taoyang987
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?

Re: How to remove Unnecessary Plugins?

Posted: Mon Jan 21, 2013 5:14 pm
by Support Team
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)

Re: How to remove Unnecessary Plugins?

Posted: Tue Jan 22, 2013 1:53 am
by taoyang987
thanks i got it

Re: How to remove Unnecessary Plugins?

Posted: Tue Jan 22, 2013 9:01 am
by Support Team
Hello,

You are welcome :-)

Regards,
Markus (T)

Re: How to remove Unnecessary Plugins?

Posted: Thu Jan 24, 2013 8:00 am
by taoyang987
when installing , we can cancel the firefox or chrome plugin, why can't cancel the othe plugins?

Re: How to remove Unnecessary Plugins?

Posted: Thu Jan 24, 2013 9:55 am
by Support Team
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

Re: How to remove Unnecessary Plugins?

Posted: Thu Jan 24, 2013 10:13 am
by taoyang987
thanks ,i got it.

Re: How to remove Unnecessary Plugins?

Posted: Thu Jan 24, 2013 10:14 am
by taoyang987
i used qtp before, so i always think in that way :lol: