1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
{
"__type": "ArtOfTest.WebAii.Design.ProjectModel.Test",
"__value": {
"DomStatesCounter": {},
"WebKitExecutionDelay": 0,
"ReuseAppWindow": 0,
"ProfilerResultsDirectory": null,
"ProfilerBenchmarkResultsFilePath": null,
"ProfilerBenchmarkResultsId": "00000000-0000-0000-0000-000000000000",
"ProfilerConfigurationId": "00000000-0000-0000-0000-000000000000",
"ProfilerConfigurations": {},
"CurrentReferences": [
"System",
"System.Core",
"ArtOfTest.WebAii, Version=2018.2.606.0, Culture=neutral, PublicKeyToken=4fd5f65be123776c",
"ArtOfTest.WebAii.Design, Version=2018.2.606.0, Culture=neutral, PublicKeyToken=4fc62bbc3827ab1d",
"Telerik.WebAii.Controls.Html, Version=2018.2.606.0, Culture=neutral, PublicKeyToken=528163f3e645de45",
"Telerik.WebAii.Controls.Xaml, Version=2018.2.606.0, Culture=neutral, PublicKeyToken=528163f3e645de45",
"Telerik.WebAii.Controls.Xaml.Wpf, Version=2018.2.606.0, Culture=neutral, PublicKeyToken=528163f3e645de45",
"Telerik.TestingFramework.Controls.KendoUI, Version=2018.2.606.0, Culture=neutral, PublicKeyToken=528163f3e645de45",
"Telerik.TestingFramework.Controls.KendoUI.Angular, Version=2018.2.606.0, Culture=neutral, PublicKeyToken=528163f3e645de45",
"Telerik.TestStudio.Translators.Common, Version=2018.2.606.0, Culture=neutral, PublicKeyToken=528163f3e645de45"
],
"Steps": {
"__type": "ArtOfTest.Common.Design.ProjectModel.AutomationStepList",
"__value": [
{
"__type": "ArtOfTest.WebAii.Design.ProjectModel.AutomationStep",
"__value": {
"Runtime ID": "cef4b4ce-89c2-4c19-9eb5-675b2ddd89df",
"Description": "New Coded Step",
"CustomDescription": "Launch Or Attache To Machine Studio",
"Step": {
"__type": "ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.CodedStepDescriptor",
"__value": {
"Code": " Manager.Log.WriteLine(\"Looking for existing machine studio instance..\");\r\n \r\n var runningApp = System.Diagnostics.Process.GetProcesses().Where(p => p.ProcessName == \"Tango.MachineStudio.UI\");\r\n \r\n if (runningApp.Count() != 0)\r\n {\r\n Manager.Log.WriteLine(\"Found Machine Studio Instance. Connecting...\");\r\n Manager.ConnectToApplication(runningApp.FirstOrDefault());\r\n }\r\n else\r\n {\r\n Manager.Log.WriteLine(\"Instance not found. Launching new instance...\");\r\n Manager.LaunchNewApplication(\"..\\\\..\\\\Visual_Studio\\\\Build\\\\Machine Studio\\\\Release\\\\Tango.MachineStudio.UI.exe\");\r\n }\r\n \r\n Manager.ActiveApplication.MainWindow.RefreshVisualTrees();",
"RequiresSilverlight": false,
"WaitOnElements": true,
"WaitOnElementsTimeout": 30000,
"UseStepWaitOnElementsTimout": false,
"Pause": 0,
"RunsAgainstVersion": "",
"Constraints": {
"__type": "ArtOfTest.Common.Design.Extensibility.Descriptors.DescriptorConstraints",
"__value": {
"ConstraintValues": {}
}
},
"Elements": {},
"StepType": 4,
"LogMessageOnFailure": "",
"EditorType": "",
"DataBindingExpressions": {}
}
},
"Enabled": true,
"Order": 1,
"Id": "Attache_To_Machine_Studio_CodedStep",
"StepState": 1,
"ContinueOnFailure": false,
"StepImageKey": "Attache To Machine Studio2xfzydzt.d3d",
"QcId": 0,
"QcVersionStamp": 0,
"Version": 200
}
}
]
},
"IndependentDescriptors": [],
"HtmlDescription": "",
"SilverlightEnabled": false,
"IsSilverlightApp": false,
"SilverlightAppWebUrl": "",
"SilverlightAppLocalDirectory": "",
"SilverlightAppRecordLocal": false,
"SilverlightAppOriginUri": null,
"WpfAppPath": null,
"UseDefaultWpfAppPath": true,
"TestAssembly": "Machine Studio.dll",
"TestAssemblyPath": "bin",
"TestClass": "Machine_Studio.Attache_To_Machine_Studio",
"IsManual": false,
"ResourceFilePath": "Shared\\Launch Or Attache To Machine Studio.resx",
"HasCodeBehind": true,
"DataInfo": {
"__type": "ArtOfTest.Common.Design.Data.DataInfo",
"__value": {
"ConnectionString": "",
"DefaultToGrid": true,
"DataRange": "",
"LoadRecordsCount": null,
"DataTableName": "",
"DataProvider": "",
"DataEnabled": true,
"HasBuiltinGrid": false,
"DataType": 4,
"BuiltInData": null,
"BuiltInDocumentKey": null,
"TSQL": ""
}
},
"VSProperties": {},
"DeploymentItems": [],
"IsTestFragment": false,
"StopTestListOnFailure": false,
"InheritParentDataSource": false,
"BrowserType": 0,
"QcId": 0,
"QcFilePath": null,
"QcTestVersionStamp": 0,
"TestLinks": [],
"Description": "",
"Name": "Launch Or Attache To Machine Studio",
"Owner": "",
"Path": "Shared\\Launch Or Attache To Machine Studio.tstest",
"Priority": 0,
"TestType": 1,
"UniqueId": "7c3f944b-73f9-4641-a77c-5f58c637c386",
"Id": "7c3f944b-73f9-4641-a77c-5f58c637c386",
"ProjectId": "91699b15-d36d-463d-b048-7802c33b3a70",
"Version": 200
}
}
|