Welcome to the new Ranorex Support Portal

重み付けルールの共有

チームで作業している場合、重み付けルールを共有しておくことで、チーム メンバーも動的な ID を避けた堅牢な RanoreXPath 式を生成することができ、非常に便利です。

このセクションでは、ルールの共有方法、および、デフォルトの重み付けルールについて説明します。

重み付けルールのコピー&ペースト

Ranorex Studio は、重み付けルールを XML ファイルとして保存します。重み付けルールを共有するには、属性の重み付けの編集ダイアログで、重み付けルールの内容をコピー&ペーストします。

属性の重み付けの編集ダイアログで、共有したい重み付けルールを選択します。
右メニューからコピーをクリックします。
任意のテキスト エディターにペーストし、ファイルを保存します。このファイルを対象のマシンに転送します。

対象のマシンで、ファイルの内容をコピーします。属性の重み付けの編集ダイアログのルール リストにペーストします。

デフォルトの重み付けルール

RxWinForms ControlNet11 Classnames

<rule  
name="RxWinForms ControlNet11 Classnames"  
enabled="True"  
capability="nativewindow"  
attribute="class"  
setweight="0"  
conditionsoperator="and">  
    <condition  
    source="self"  
    attribute="class"  
    match="^WindowsForms10.Window"  
    negate="False">  

RxWeb YUI (Yahoo User Interface Library)

<rule  
name="RxWeb YUI (Yahoo User Interface Library)"  
enabled="True"  
capability="webelement"  
attribute="id"  
setweight="0"  
conditionsoperator="or">  
    <condition  
    source="self"  
    attribute="id"  
    match="^yui(_d+)"  
    negate="False">  
    <condition  
    source="self"  
    attribute="id"  
    match="^yui-gen.*"  
    negate="False">  

RxWeb JS Frameworks (ExtJS, Sencha, Ozone Widget ,…)

<rule  
name="RxWeb JS Frameworks (ExtJS, Sencha, Ozone Widget ,...)"  
enabled="True"  
capability="webelement"  
attribute="id"  
setweight="0"  
conditionsoperator="or">  
    <condition  
    source="self"  
    attribute="id"  
    match="^ext-.*d+.*"  
    negate="False">  
    <condition  
    source="self"  
    attribute="id"  
    match="^[a-z]+-d{4}(-[a-z]*(-d*)?)?"  
    negate="False">  

RxWeb jQuery

<rule  
name="RxWeb jQuery"  
enabled="True"  
capability="webelement"  
attribute="id"  
setweight="0"  
conditionsoperator="or">  
    <condition  
    source="self"  
    attribute="id"  
    match="^ui-id-d+"  
    negate="False">  

RxWeb ASP.net

<rule  
name="RxWeb ASP.net"  
enabled="False"  
capability="webelement"  
attribute="id"  
setweight="0"  
conditionsoperator="or">  
    <condition  
    source="self"  
    attribute="id"  
    match="^ctl00($|_)(.*($|_))"  
    negate="False">  

RxWeb GWT

<rule  
name="RxWeb GWT"  
enabled="True"  
capability="webelement"  
attribute="id"  
setweight="0"  
conditionsoperator="or">  
    <condition  
    source="self"  
    attribute="id"  
    match="^gwt-uid-d+.*"  
    negate="False">  
    <condition  
    source="self"  
    attribute="id"  
    match="^isc_.+"  
    negate="False">  

RxWeb MS Dynamics CRM

<rule  
name="RxWeb MS Dynamics CRM"  
enabled="True"  
capability="webelement"  
attribute="id"  
setweight="0"  
conditionsoperator="or">  
    <condition  
    source="self"  
    attribute="id"  
    match="[a-zA-Z_]+_{([0-9 A-F]+(-)?)+}_d+"  
    negate="False">  

RxWin32 Random Control IDs

<rule  
name="RxWin32 Random ControlIds"  
enabled="False"  
capability="nativewindow"  
attribute="controlid"  
setweight="0"  
conditionsoperator="or">