2012-04-24 13 views
1

私はコンボボックスと要素のテーブルを持つWebアプリケーションを持っています。私は、コンボボックスの要素を選択する、または要素の "名前"が可能なパラメータとして渡すテーブルから、codedUIを使用してメソッドを記述する必要がありますか?CodedUIを使用してコンボボックスまたはテーブル内の特定の値を選択する

より多くの情報が必要な場合は、あなたがテストし、必要なコントロールを選択するためにUIMap.Designer.csファイル内に自動生成されたコードをカスタマイズしたいアクションを記録することができ、私に

おかげ

答えて

0

にお問い合わせください。テストを記録する際に使用する各コントロールに対して、CodedUi Test Builderはこのファイル内に新しいクラスを作成します。あなたのコントロールは似ている(例えばCONTROL1、CONTROL2 ...。)このコントロールのSearch Propertiesにパラメータ名を割り当てた場合:

:あなたはこれらのリンクをチェックCodedUIテストにパラメータを渡すことができますどのように確認するには

public class UIItemWindow : WinWindow 
{ 

    public UIItemWindow() 
    { 
     #region Search Criteria 
     //Here assign the paramter to the search properties of the control 
     this.SearchProperties[WinWindow.PropertyNames.Name] = parameterName; 
     #endregion 
    } 

    #region Properties 
    public UIItemWindow1 UIItemWindow1 
    { 
     get 
     { 
      if ((this.mUIItemWindow1 == null)) 
      { 
       this.mUIItemWindow1 = new UIItemWindow1(this); 
      } 
      return this.mUIItemWindow1; 
     } 
    } 
    #endregion 

    #region Fields 
    private UIItemWindow1 mUIItemWindow1; 
    #endregion 
} 

関連する問題