// ------------------------------------------------------------------------------ | |
// <auto-generated> | |
// This code was generated by coded UI test builder. | |
// Version: 14.0.0.0 | |
// | |
// Changes to this file may cause incorrect behavior and will be lost if | |
// the code is regenerated. | |
// </auto-generated> | |
// ------------------------------------------------------------------------------ | |
namespace CodedUITestProject1 | |
{ | |
using System; | |
using System.CodeDom.Compiler; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Text.RegularExpressions; | |
using System.Windows.Input; | |
using Microsoft.VisualStudio.TestTools.UITest.Extension; | |
using Microsoft.VisualStudio.TestTools.UITesting; | |
using Microsoft.VisualStudio.TestTools.UITesting.WinControls; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using Keyboard = Microsoft.VisualStudio.TestTools.UITesting.Keyboard; | |
using Mouse = Microsoft.VisualStudio.TestTools.UITesting.Mouse; | |
using MouseButtons = System.Windows.Forms.MouseButtons; | |
[GeneratedCode("Coded UITest Builder", "14.0.23107.0")] | |
public partial class UIMap | |
{ | |
/// <summary> | |
/// RecordedMethod1 - Use 'RecordedMethod1Params' to pass parameters into this method. | |
/// </summary> | |
public void RecordedMethod1() | |
{ | |
#region Variable Declarations | |
WinButton uINewEmailButton = this.UIInboxoutlooktest01yeWindow.UIItemWindow.UINewToolBar.UINewEmailButton; | |
WinEdit uITOEdit = this.UIUntitledMessageHTMLWindow.UIItemWindow.UITOEdit; | |
WinEdit uICCEdit = this.UIUntitledMessageHTMLWindow.UIItemWindow1.UICCEdit; | |
WinEdit uISubjectEdit = this.UIUntitledMessageHTMLWindow.UIItemWindow2.UISubjectEdit; | |
WinClient uIMessageClient = this.UIUntitledMessageHTMLWindow.UIDocument1Window.UIDocument1Client.UIMessageClient; | |
WinButton uISendButton = this.UIUntitledMessageHTMLWindow.UISendWindow.UISendButton; | |
#endregion | |
// Launch '%ProgramFiles%\Microsoft Office\Office14\OUTLOOK.EXE' | |
ApplicationUnderTest oUTLOOKApplication = ApplicationUnderTest.Launch(this.RecordedMethod1Params.ExePath, this.RecordedMethod1Params.AlternateExePath); | |
// Click 'New E-mail' button | |
Mouse.Click(uINewEmailButton, new Point(13, 37)); | |
// Type 'someone@examples.com' in 'To' text box | |
uITOEdit.Text = this.RecordedMethod1Params.UITOEditText; | |
// Type '{Tab}' in 'To' text box | |
Keyboard.SendKeys(uITOEdit, this.RecordedMethod1Params.UITOEditSendKeys, ModifierKeys.None); | |
// Type '{Tab}' in 'Cc' text box | |
Keyboard.SendKeys(uICCEdit, this.RecordedMethod1Params.UICCEditSendKeys, ModifierKeys.None); | |
// Type 'hi' in 'Subject:' text box | |
uISubjectEdit.Text = this.RecordedMethod1Params.UISubjectEditText; | |
// Type 'hlo' in 'Message' client | |
Keyboard.SendKeys(uIMessageClient, this.RecordedMethod1Params.UIMessageClientSendKeys, ModifierKeys.None); | |
// Click '&Send' button | |
Mouse.Click(uISendButton, new Point(29, 65)); | |
} | |
#region Properties | |
public virtual RecordedMethod1Params RecordedMethod1Params | |
{ | |
get | |
{ | |
if ((this.mRecordedMethod1Params == null)) | |
{ | |
this.mRecordedMethod1Params = new RecordedMethod1Params(); | |
} | |
return this.mRecordedMethod1Params; | |
} | |
} | |
public UIInboxoutlooktest01yeWindow UIInboxoutlooktest01yeWindow | |
{ | |
get | |
{ | |
if ((this.mUIInboxoutlooktest01yeWindow == null)) | |
{ | |
this.mUIInboxoutlooktest01yeWindow = new UIInboxoutlooktest01yeWindow(); | |
} | |
return this.mUIInboxoutlooktest01yeWindow; | |
} | |
} | |
public UIUntitledMessageHTMLWindow UIUntitledMessageHTMLWindow | |
{ | |
get | |
{ | |
if ((this.mUIUntitledMessageHTMLWindow == null)) | |
{ | |
this.mUIUntitledMessageHTMLWindow = new UIUntitledMessageHTMLWindow(); | |
} | |
return this.mUIUntitledMessageHTMLWindow; | |
} | |
} | |
#endregion | |
#region Fields | |
private RecordedMethod1Params mRecordedMethod1Params; | |
private UIInboxoutlooktest01yeWindow mUIInboxoutlooktest01yeWindow; | |
private UIUntitledMessageHTMLWindow mUIUntitledMessageHTMLWindow; | |
#endregion | |
} | |
/// <summary> | |
/// Parameters to be passed into 'RecordedMethod1' | |
/// </summary> | |
[GeneratedCode("Coded UITest Builder", "14.0.23107.0")] | |
public class RecordedMethod1Params | |
{ | |
#region Fields | |
/// <summary> | |
/// Launch '%ProgramFiles%\Microsoft Office\Office14\OUTLOOK.EXE' | |
/// </summary> | |
public string ExePath = "C:\\Program Files (x86)\\Microsoft Office\\Office14\\OUTLOOK.EXE"; | |
/// <summary> | |
/// Launch '%ProgramFiles%\Microsoft Office\Office14\OUTLOOK.EXE' | |
/// </summary> | |
public string AlternateExePath = "%ProgramFiles%\\Microsoft Office\\Office14\\OUTLOOK.EXE"; | |
/// <summary> | |
/// Type 'someone@examples.com' in 'To' text box | |
/// </summary> | |
public string UITOEditText = "someone@examples.com"; | |
/// <summary> | |
/// Type '{Tab}' in 'To' text box | |
/// </summary> | |
public string UITOEditSendKeys = "{Tab}"; | |
/// <summary> | |
/// Type '{Tab}' in 'Cc' text box | |
/// </summary> | |
public string UICCEditSendKeys = "{Tab}"; | |
/// <summary> | |
/// Type 'hi' in 'Subject:' text box | |
/// </summary> | |
public string UISubjectEditText = "hi"; | |
/// <summary> | |
/// Type 'hlo' in 'Message' client | |
/// </summary> | |
public string UIMessageClientSendKeys = "hlo"; | |
#endregion | |
} | |
[GeneratedCode("Coded UITest Builder", "14.0.23107.0")] | |
public class UIInboxoutlooktest01yeWindow : WinWindow | |
{ | |
public UIInboxoutlooktest01yeWindow() | |
{ | |
#region Search Criteria | |
this.SearchProperties[WinWindow.PropertyNames.Name] = "Inbox - outlooktest01@yesware.com - Microsoft Outlook"; | |
this.SearchProperties[WinWindow.PropertyNames.ClassName] = "rctrl_renwnd32"; | |
this.WindowTitles.Add("Inbox - outlooktest01@yesware.com - Microsoft Outlook"); | |
#endregion | |
} | |
#region Properties | |
public UIItemWindow UIItemWindow | |
{ | |
get | |
{ | |
if ((this.mUIItemWindow == null)) | |
{ | |
this.mUIItemWindow = new UIItemWindow(this); | |
} | |
return this.mUIItemWindow; | |
} | |
} | |
#endregion | |
#region Fields | |
private UIItemWindow mUIItemWindow; | |
#endregion | |
} | |
[GeneratedCode("Coded UITest Builder", "14.0.23107.0")] | |
public class UIItemWindow : WinWindow | |
{ | |
public UIItemWindow(UITestControl searchLimitContainer) : | |
base(searchLimitContainer) | |
{ | |
#region Search Criteria | |
this.SearchProperties[WinWindow.PropertyNames.AccessibleName] = "Ribbon"; | |
this.SearchProperties[WinWindow.PropertyNames.ClassName] = "NetUIHWND"; | |
this.WindowTitles.Add("Inbox - outlooktest01@yesware.com - Microsoft Outlook"); | |
#endregion | |
} | |
#region Properties | |
public UINewToolBar UINewToolBar | |
{ | |
get | |
{ | |
if ((this.mUINewToolBar == null)) | |
{ | |
this.mUINewToolBar = new UINewToolBar(this); | |
} | |
return this.mUINewToolBar; | |
} | |
} | |
#endregion | |
#region Fields | |
private UINewToolBar mUINewToolBar; | |
#endregion | |
} | |
[GeneratedCode("Coded UITest Builder", "14.0.23107.0")] | |
public class UINewToolBar : WinToolBar | |
{ | |
public UINewToolBar(UITestControl searchLimitContainer) : | |
base(searchLimitContainer) | |
{ | |
#region Search Criteria | |
this.SearchProperties[WinToolBar.PropertyNames.Name] = "New"; | |
this.WindowTitles.Add("Inbox - outlooktest01@yesware.com - Microsoft Outlook"); | |
#endregion | |
} | |
#region Properties | |
public WinButton UINewEmailButton | |
{ | |
get | |
{ | |
if ((this.mUINewEmailButton == null)) | |
{ | |
this.mUINewEmailButton = new WinButton(this); | |
#region Search Criteria | |
this.mUINewEmailButton.SearchProperties[WinButton.PropertyNames.Name] = "New E-mail"; | |
this.mUINewEmailButton.WindowTitles.Add("Inbox - outlooktest01@yesware.com - Microsoft Outlook"); | |
#endregion | |
} | |
return this.mUINewEmailButton; | |
} | |
} | |
#endregion | |
#region Fields | |
private WinButton mUINewEmailButton; | |
#endregion | |
} | |
[GeneratedCode("Coded UITest Builder", "14.0.23107.0")] | |
public class UIUntitledMessageHTMLWindow : WinWindow | |
{ | |
public UIUntitledMessageHTMLWindow() | |
{ | |
#region Search Criteria | |
this.SearchProperties[WinWindow.PropertyNames.Name] = "Untitled - Message (HTML) "; | |
this.SearchProperties[WinWindow.PropertyNames.ClassName] = "rctrl_renwnd32"; | |
this.WindowTitles.Add("Untitled - Message (HTML) "); | |
this.WindowTitles.Add("hi - Message (HTML) "); | |
#endregion | |
} | |
#region Properties | |
public UIItemWindow1 UIItemWindow | |
{ | |
get | |
{ | |
if ((this.mUIItemWindow == null)) | |
{ | |
this.mUIItemWindow = new UIItemWindow1(this); | |
} | |
return this.mUIItemWindow; | |
} | |
} | |
public UIItemWindow11 UIItemWindow1 | |
{ | |
get | |
{ | |
if ((this.mUIItemWindow1 == null)) | |
{ | |
this.mUIItemWindow1 = new UIItemWindow11(this); | |
} | |
return this.mUIItemWindow1; | |
} | |
} | |
public UIItemWindow2 UIItemWindow2 | |
{ | |
get | |
{ | |
if ((this.mUIItemWindow2 == null)) | |
{ | |
this.mUIItemWindow2 = new UIItemWindow2(this); | |
} | |
return this.mUIItemWindow2; | |
} | |
} | |
public UIDocument1Window UIDocument1Window | |
{ | |
get | |
{ | |
if ((this.mUIDocument1Window == null)) | |
{ | |
this.mUIDocument1Window = new UIDocument1Window(this); | |
} | |
return this.mUIDocument1Window; | |
} | |
} | |
public UISendWindow UISendWindow | |
{ | |
get | |
{ | |
if ((this.mUISendWindow == null)) | |
{ | |
this.mUISendWindow = new UISendWindow(this); | |
} | |
return this.mUISendWindow; | |
} | |
} | |
#endregion | |
#region Fields | |
private UIItemWindow1 mUIItemWindow; | |
private UIItemWindow11 mUIItemWindow1; | |
private UIItemWindow2 mUIItemWindow2; | |
private UIDocument1Window mUIDocument1Window; | |
private UISendWindow mUISendWindow; | |
#endregion | |
} | |
[GeneratedCode("Coded UITest Builder", "14.0.23107.0")] | |
public class UIItemWindow1 : WinWindow | |
{ | |
public UIItemWindow1(UITestControl searchLimitContainer) : | |
base(searchLimitContainer) | |
{ | |
#region Search Criteria | |
this.SearchProperties[WinWindow.PropertyNames.ControlId] = "4099"; | |
this.WindowTitles.Add("Untitled - Message (HTML) "); | |
#endregion | |
} | |
#region Properties | |
public WinEdit UITOEdit | |
{ | |
get | |
{ | |
if ((this.mUITOEdit == null)) | |
{ | |
this.mUITOEdit = new WinEdit(this); | |
#region Search Criteria | |
this.mUITOEdit.SearchProperties[WinEdit.PropertyNames.Name] = "To"; | |
this.mUITOEdit.WindowTitles.Add("Untitled - Message (HTML) "); | |
#endregion | |
} | |
return this.mUITOEdit; | |
} | |
} | |
#endregion | |
#region Fields | |
private WinEdit mUITOEdit; | |
#endregion | |
} | |
[GeneratedCode("Coded UITest Builder", "14.0.23107.0")] | |
public class UIItemWindow11 : WinWindow | |
{ | |
public UIItemWindow11(UITestControl searchLimitContainer) : | |
base(searchLimitContainer) | |
{ | |
#region Search Criteria | |
this.SearchProperties[WinWindow.PropertyNames.ControlId] = "4100"; | |
this.WindowTitles.Add("Untitled - Message (HTML) "); | |
#endregion | |
} | |
#region Properties | |
public WinEdit UICCEdit | |
{ | |
get | |
{ | |
if ((this.mUICCEdit == null)) | |
{ | |
this.mUICCEdit = new WinEdit(this); | |
#region Search Criteria | |
this.mUICCEdit.SearchProperties[WinEdit.PropertyNames.Name] = "Cc"; | |
this.mUICCEdit.WindowTitles.Add("Untitled - Message (HTML) "); | |
#endregion | |
} | |
return this.mUICCEdit; | |
} | |
} | |
#endregion | |
#region Fields | |
private WinEdit mUICCEdit; | |
#endregion | |
} | |
[GeneratedCode("Coded UITest Builder", "14.0.23107.0")] | |
public class UIItemWindow2 : WinWindow | |
{ | |
public UIItemWindow2(UITestControl searchLimitContainer) : | |
base(searchLimitContainer) | |
{ | |
#region Search Criteria | |
this.SearchProperties[WinWindow.PropertyNames.ControlId] = "4101"; | |
this.WindowTitles.Add("Untitled - Message (HTML) "); | |
this.WindowTitles.Add("hi - Message (HTML) "); | |
#endregion | |
} | |
#region Properties | |
public WinEdit UISubjectEdit | |
{ | |
get | |
{ | |
if ((this.mUISubjectEdit == null)) | |
{ | |
this.mUISubjectEdit = new WinEdit(this); | |
#region Search Criteria | |
this.mUISubjectEdit.SearchProperties[WinEdit.PropertyNames.Name] = "Subject:"; | |
this.mUISubjectEdit.WindowTitles.Add("Untitled - Message (HTML) "); | |
this.mUISubjectEdit.WindowTitles.Add("hi - Message (HTML) "); | |
#endregion | |
} | |
return this.mUISubjectEdit; | |
} | |
} | |
#endregion | |
#region Fields | |
private WinEdit mUISubjectEdit; | |
#endregion | |
} | |
[GeneratedCode("Coded UITest Builder", "14.0.23107.0")] | |
public class UIDocument1Window : WinWindow | |
{ | |
public UIDocument1Window(UITestControl searchLimitContainer) : | |
base(searchLimitContainer) | |
{ | |
#region Search Criteria | |
this.SearchProperties[WinWindow.PropertyNames.Name] = "Document1"; | |
this.SearchProperties[WinWindow.PropertyNames.ClassName] = "_WwB"; | |
this.WindowTitles.Add("hi - Message (HTML) "); | |
#endregion | |
} | |
#region Properties | |
public UIDocument1Client UIDocument1Client | |
{ | |
get | |
{ | |
if ((this.mUIDocument1Client == null)) | |
{ | |
this.mUIDocument1Client = new UIDocument1Client(this); | |
} | |
return this.mUIDocument1Client; | |
} | |
} | |
#endregion | |
#region Fields | |
private UIDocument1Client mUIDocument1Client; | |
#endregion | |
} | |
[GeneratedCode("Coded UITest Builder", "14.0.23107.0")] | |
public class UIDocument1Client : WinClient | |
{ | |
public UIDocument1Client(UITestControl searchLimitContainer) : | |
base(searchLimitContainer) | |
{ | |
#region Search Criteria | |
this.SearchProperties[WinControl.PropertyNames.Name] = "Document1"; | |
this.WindowTitles.Add("hi - Message (HTML) "); | |
#endregion | |
} | |
#region Properties | |
public WinClient UIMessageClient | |
{ | |
get | |
{ | |
if ((this.mUIMessageClient == null)) | |
{ | |
this.mUIMessageClient = new WinClient(this); | |
#region Search Criteria | |
this.mUIMessageClient.SearchProperties[WinControl.PropertyNames.Name] = "Message"; | |
this.mUIMessageClient.WindowTitles.Add("hi - Message (HTML) "); | |
#endregion | |
} | |
return this.mUIMessageClient; | |
} | |
} | |
#endregion | |
#region Fields | |
private WinClient mUIMessageClient; | |
#endregion | |
} | |
[GeneratedCode("Coded UITest Builder", "14.0.23107.0")] | |
public class UISendWindow : WinWindow | |
{ | |
public UISendWindow(UITestControl searchLimitContainer) : | |
base(searchLimitContainer) | |
{ | |
#region Search Criteria | |
this.SearchProperties[WinWindow.PropertyNames.ControlId] = "4256"; | |
this.WindowTitles.Add("hi - Message (HTML) "); | |
#endregion | |
} | |
#region Properties | |
public WinButton UISendButton | |
{ | |
get | |
{ | |
if ((this.mUISendButton == null)) | |
{ | |
this.mUISendButton = new WinButton(this); | |
#region Search Criteria | |
this.mUISendButton.SearchProperties[WinButton.PropertyNames.Name] = "Send"; | |
this.mUISendButton.WindowTitles.Add("hi - Message (HTML) "); | |
#endregion | |
} | |
return this.mUISendButton; | |
} | |
} | |
#endregion | |
#region Fields | |
private WinButton mUISendButton; | |
#endregion | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment