From 93ee14078e9cdfcc6513c8206972fc6be2b86a5b Mon Sep 17 00:00:00 2001 From: Florin Strugariu Date: Thu, 8 Feb 2024 14:02:39 +0200 Subject: [PATCH] Update to new recording flow --- ...th.Template.TestAutomationFramework.nuspec | 2 +- .../any/any/pt0/.local/template.json | 6 +- .../VisualBasic/.templates/TestFramework.xaml | 129 +++++-- .../any/any/pt0/VisualBasic/TestCase.xaml | 25 +- .../pt0/VisualBasic/TestFramework/SetUp.xaml | 13 +- .../TestFramework/Utils/StartRecording.xaml | 230 ++++++++++++ .../TestFramework/Utils/StopRecording.xaml | 211 +++++++++++ .../any/any/pt0/VisualBasic/project.json | 6 +- .../any/any/pt1/.local/template.json | 6 +- .../pt1/CSharp/.templates/TestFramework.xaml | 133 +++++-- .../any/any/pt1/CSharp/TestCase.xaml | 16 +- .../any/pt1/CSharp/TestFramework/SetUp.xaml | 19 +- .../TestFramework/Utils/InitAllAssets.xaml | 64 ++-- .../TestFramework/Utils/KillAllProcesses.xaml | 46 ++- .../TestFramework/Utils/StartRecording.xaml | 345 ++++++++++++++++++ .../TestFramework/Utils/StopRecording.xaml | 291 +++++++++++++++ .../TestFramework/Utils/TakeScreenshot.xaml | 87 +++-- .../any/any/pt1/CSharp/project.json | 6 +- 18 files changed, 1443 insertions(+), 192 deletions(-) create mode 100644 TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/TestFramework/Utils/StartRecording.xaml create mode 100644 TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/TestFramework/Utils/StopRecording.xaml create mode 100644 TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/StartRecording.xaml create mode 100644 TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/StopRecording.xaml diff --git a/TestAutomationFramework/UiPath.Template.TestAutomationFramework.nuspec b/TestAutomationFramework/UiPath.Template.TestAutomationFramework.nuspec index ebce9a44..7634a88c 100644 --- a/TestAutomationFramework/UiPath.Template.TestAutomationFramework.nuspec +++ b/TestAutomationFramework/UiPath.Template.TestAutomationFramework.nuspec @@ -2,7 +2,7 @@ UiPath.Template.TestAutomationFramework - 23.10.0 + 23.10.1 Test Automation Framework UiPath UiPath diff --git a/TestAutomationFramework/contentFiles/any/any/pt0/.local/template.json b/TestAutomationFramework/contentFiles/any/any/pt0/.local/template.json index 48152176..5f8f79d9 100644 --- a/TestAutomationFramework/contentFiles/any/any/pt0/.local/template.json +++ b/TestAutomationFramework/contentFiles/any/any/pt0/.local/template.json @@ -2,9 +2,9 @@ "DefaultProjectDescription": "New Test Automation Framework", "DefaultProjectName": "TestAutomationFramework", "Dependencies": { - "UiPath.System.Activities": "[23.10.1]", - "UiPath.Testing.Activities": "[23.10.0]", - "UiPath.UIAutomation.Activities": "[23.10.1]" + "UiPath.System.Activities": "[23.10.5]", + "UiPath.Testing.Activities": "[23.10.1]", + "UiPath.UIAutomation.Activities": "[23.10.8]" }, "Description": "Create a test automation project that follows best practices for large scale testing projects", "DisplayPriority": 0, diff --git a/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/.templates/TestFramework.xaml b/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/.templates/TestFramework.xaml index 33783f63..c1c151e8 100644 --- a/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/.templates/TestFramework.xaml +++ b/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/.templates/TestFramework.xaml @@ -1,6 +1,14 @@ - + + + + + + + + 1089,2352.5 + TestExecutionTemplate_1 - + GlobalConstantsNamespace GlobalVariablesNamespace System @@ -18,6 +26,9 @@ UiPath.Core.Activities UiPath.Shared.Activities UiPath.Testing.Activities + System.Diagnostics + System.ComponentModel + System.Activities.Runtime.Collections @@ -67,16 +78,34 @@ UiPath.UiCoverage.Activities UiPath.Workflow WindowsBase + UiPath.System.Activities.ViewModels + Microsoft.PowerShell.Commands.Diagnostics + System.Diagnostics.FileVersionInfo + System.Diagnostics.DiagnosticSource + System.Diagnostics.EventLog + System.Diagnostics.PerformanceCounter + System.Diagnostics.Process + System.Diagnostics.TextWriterTraceListener + System.Diagnostics.TraceSource + System.ComponentModel.EventBasedAsync + Microsoft.Win32.Primitives + System.ComponentModel.Primitives + TestAutomationFramework.Core + TestAutomationFramework.Core - + + + + + True True - + True @@ -85,14 +114,37 @@ - - - - - + + + + True + + + + + + + + + + + C:\Program Files\UiPath\Studio\ffmpeg\ffmpeg.exe + + + + + + + + + + + + + - + False @@ -103,14 +155,14 @@ - + True - - + + @@ -120,30 +172,30 @@ - + True - + - + True - + - + False @@ -154,15 +206,15 @@ - + True False - - + + @@ -172,7 +224,7 @@ - + True @@ -181,17 +233,34 @@ - - - - - + + + + True + + + + + + + + + + + + + + + + + + - + - True + False False @@ -199,7 +268,7 @@ - + diff --git a/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/TestCase.xaml b/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/TestCase.xaml index 1c408a75..ba9e7dd5 100644 --- a/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/TestCase.xaml +++ b/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/TestCase.xaml @@ -1,4 +1,4 @@ - + GlobalConstantsNamespace @@ -12,6 +12,7 @@ System.Linq UiPath.Core UiPath.Core.Activities + System.Reflection @@ -47,23 +48,33 @@ UiPath.UiAutomation.Activities UiPath.UIAutomationCore WindowsBase + UiPath.Studio.Constants + System.Reflection.DispatchProxy + System.Reflection.TypeExtensions + System.Private.CoreLib + UiPath.System.Activities.ViewModels + UiPath.Workflow - + True True - + + + + True True - + + True @@ -72,14 +83,14 @@ - + True True - + True @@ -88,7 +99,7 @@ - + True diff --git a/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/TestFramework/SetUp.xaml b/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/TestFramework/SetUp.xaml index 4baab4d8..96b42cec 100644 --- a/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/TestFramework/SetUp.xaml +++ b/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/TestFramework/SetUp.xaml @@ -1,4 +1,4 @@ - + System.Activities @@ -14,6 +14,7 @@ UiPath.Core GlobalVariablesNamespace GlobalConstantsNamespace + System.Reflection @@ -58,16 +59,20 @@ UiPath.UiAutomation.Activities UiPath.UIAutomationCore WindowsBase + System.Reflection.DispatchProxy + System.Reflection.TypeExtensions + UiPath.Workflow + UiPath.System.Activities.ViewModels - + True True - + True @@ -75,7 +80,7 @@ - + [Assets] Data\Assets.json diff --git a/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/TestFramework/Utils/StartRecording.xaml b/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/TestFramework/Utils/StartRecording.xaml new file mode 100644 index 00000000..86991080 --- /dev/null +++ b/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/TestFramework/Utils/StartRecording.xaml @@ -0,0 +1,230 @@ + + + + + + + + + + + + + + 961,2615 + StartRecording_1 + + + System.Activities + System.Activities.Statements + System.Activities.Expressions + System.Activities.Validation + System.Activities.XamlIntegration + Microsoft.VisualBasic + Microsoft.VisualBasic.Activities + System + System.Collections + System.Collections.Generic + System.Collections.ObjectModel + System.Data + System.Diagnostics + System.Drawing + System.IO + System.Linq + System.Net.Mail + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Core.Activities + System.Windows.Markup + GlobalVariablesNamespace + GlobalConstantsNamespace + System.Runtime.Serialization + System.Reflection + System.ComponentModel + + + + + Microsoft.VisualBasic + mscorlib + System + System.Activities + System.ComponentModel.TypeConverter + System.Core + System.Data + System.Data.Common + System.Data.DataSetExtensions + System.Drawing + System.Drawing.Common + System.Drawing.Primitives + System.Linq + System.Net.Mail + System.ObjectModel + System.Private.CoreLib + System.Xaml + System.Xml + System.Xml.Linq + UiPath.System.Activities + UiPath.UiAutomation.Activities + UiPath.Studio.Constants + System.Private.ServiceModel + System.Runtime.Serialization.Formatters + System.Private.DataContractSerialization + System.Runtime.Serialization.Primitives + System.Console + System.Configuration.ConfigurationManager + System.Security.Permissions + System.ComponentModel + System.Memory + System.Private.Uri + System.Reflection.DispatchProxy + System.Reflection.TypeExtensions + System.Reflection.Metadata + System.IO.FileSystem.Watcher + System.IO.Packaging + System.IO.FileSystem.AccessControl + System.IO.FileSystem.DriveInfo + UiPath.Workflow + System.Diagnostics.Process + System.ComponentModel.Primitives + System.ComponentModel.EventBasedAsync + PresentationFramework + WindowsBase + Microsoft.Win32.Primitives + + + + + + + + + + + True + + + + + + + + True + False + True + + + + + + [isOrchBuild] + + + False + + + + + + + [isOrchBuild] + + + True + + + + + + + + True + False + True + + + + + + + + + + + True + + + + + + + + [fileUniqueName] + + + [Path.GetFileNameWithoutExtension(TestName) + "_" + Guid.NewGuid().ToString()] + + + + + [VideoFilePath] + + + [Path.Combine(Path.GetTempPath , fileUniqueName + ".webm")] + + + + + + + + + + + + True + + + + + [ffmpegPath] + [VideoFilePath] + [ffmpegProcess] + + + + False + False + + + + + + + + + + + True + + + + + + + + + + + + + True + + + + + + + + \ No newline at end of file diff --git a/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/TestFramework/Utils/StopRecording.xaml b/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/TestFramework/Utils/StopRecording.xaml new file mode 100644 index 00000000..c4f8c80f --- /dev/null +++ b/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/TestFramework/Utils/StopRecording.xaml @@ -0,0 +1,211 @@ + + + + + + + + + 961,2632 + StopRecording_1 + + + System.Activities + System.Activities.Statements + System.Activities.Expressions + System.Activities.Validation + System.Activities.XamlIntegration + Microsoft.VisualBasic + Microsoft.VisualBasic.Activities + System + System.Collections + System.Collections.Generic + System.Collections.ObjectModel + System.Data + System.Diagnostics + System.Drawing + System.IO + System.Linq + System.Net.Mail + System.Xml + System.Xml.Linq + UiPath.Core + UiPath.Core.Activities + System.Windows.Markup + GlobalVariablesNamespace + GlobalConstantsNamespace + System.Reflection + System.ComponentModel + System.Runtime.Serialization + System.Activities.Runtime.Collections + UiPath.Testing.Activities + UiPath.Shared.Activities + + + + + Microsoft.VisualBasic + mscorlib + System + System.Activities + System.ComponentModel.TypeConverter + System.Core + System.Data + System.Data.Common + System.Data.DataSetExtensions + System.Drawing + System.Drawing.Common + System.Drawing.Primitives + System.Linq + System.Net.Mail + System.ObjectModel + System.Private.CoreLib + System.Xaml + System.Xml + System.Xml.Linq + UiPath.System.Activities + UiPath.UiAutomation.Activities + UiPath.Studio.Constants + System.Reflection.DispatchProxy + System.Reflection.TypeExtensions + System.Reflection.Metadata + System.ComponentModel.EventBasedAsync + PresentationFramework + WindowsBase + Microsoft.Win32.Primitives + System.ComponentModel + System.ComponentModel.Primitives + System.Private.ServiceModel + System.Runtime.Serialization.Formatters + System.Private.DataContractSerialization + System.Runtime.Serialization.Primitives + UiPath.Testing.Activities + UiPath.OCR.Activities + UiPath.UIAutomationCore + Microsoft.PowerShell.Commands.Diagnostics + System.Diagnostics.FileVersionInfo + System.Diagnostics.DiagnosticSource + System.Diagnostics.EventLog + System.Diagnostics.PerformanceCounter + System.Security.Permissions + System.Diagnostics.Process + System.Diagnostics.TextWriterTraceListener + System.Diagnostics.TraceSource + UiPath.Workflow + System.Console + System.Configuration.ConfigurationManager + System.Memory + System.Private.Uri + UiPath.System.Activities.Design + UiPath.System.Activities.ViewModels + + + + + + True + + + + + + + + True + + + + + + + + + + + True + + + + + + + + True + + + + + [ffmpegProcess] + + + + + + + + + + False + False + + + + + + + + + + + + + + + + + + True + + + + + + + + + + + True + + + + + + + + + + + + + True + + + + + + + + + + + + True + + + + + + + + \ No newline at end of file diff --git a/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/project.json b/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/project.json index 0ea84897..97fdbb91 100644 --- a/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/project.json +++ b/TestAutomationFramework/contentFiles/any/any/pt0/VisualBasic/project.json @@ -4,9 +4,9 @@ "description": "Test Automation Framework is designed for testing projects. This framework extends the main capabilities of a Test Automation process by leveraging exception handling and testing best practices.", "main": "Main.xaml", "dependencies": { - "UiPath.System.Activities": "[23.10.1]", - "UiPath.Testing.Activities": "[23.10.0]", - "UiPath.UIAutomation.Activities": "[23.10.1]" + "UiPath.System.Activities": "[23.10.5]", + "UiPath.Testing.Activities": "[23.10.1]", + "UiPath.UIAutomation.Activities": "[23.10.8]" }, "webServices": [], "entitiesStores": [], diff --git a/TestAutomationFramework/contentFiles/any/any/pt1/.local/template.json b/TestAutomationFramework/contentFiles/any/any/pt1/.local/template.json index fc29bddc..8eafe585 100644 --- a/TestAutomationFramework/contentFiles/any/any/pt1/.local/template.json +++ b/TestAutomationFramework/contentFiles/any/any/pt1/.local/template.json @@ -2,9 +2,9 @@ "DefaultProjectDescription": "New Test Automation Framework", "DefaultProjectName": "TestAutomationFramework", "Dependencies": { - "UiPath.System.Activities": "[23.10.1]", - "UiPath.Testing.Activities": "[23.10.0]", - "UiPath.UIAutomation.Activities": "[23.10.1]" + "UiPath.System.Activities": "[23.10.5]", + "UiPath.Testing.Activities": "[23.10.1]", + "UiPath.UIAutomation.Activities": "[23.10.8]" }, "Description": "Create a test automation project that follows best practices for large scale testing projects", "DisplayPriority": 0, diff --git a/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/.templates/TestFramework.xaml b/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/.templates/TestFramework.xaml index ab1f3bfd..cf966e29 100644 --- a/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/.templates/TestFramework.xaml +++ b/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/.templates/TestFramework.xaml @@ -1,4 +1,10 @@ - + + + + + C# + 1089,1992 + ActivityBuilder_1 System.Activities @@ -29,6 +35,10 @@ System.Linq.Expressions GlobalVariablesNamespace GlobalConstantsNamespace + System.IO + System.ComponentModel + System.ComponentModel + System.Activities.Runtime.Collections @@ -69,9 +79,36 @@ UiPath.Testing.Activities UiPath.UiAutomation.Activities UiPath.UIAutomationCore + UiPath.System.Activities.Design + UiPath.System.Activities.ViewModels + TestAutomationFramework.Core + UiPath.Workflow + System.IO.FileSystem.Watcher + System.IO.Packaging + System.IO.FileSystem.AccessControl + System.IO.FileSystem.DriveInfo + System.Diagnostics.Process + System.ComponentModel.Primitives + System.ComponentModel.EventBasedAsync + PresentationFramework + WindowsBase + Microsoft.Win32.Primitives + Microsoft.PowerShell.Commands.Diagnostics + System.Diagnostics.FileVersionInfo + System.Diagnostics.DiagnosticSource + System.Diagnostics.EventLog + System.Diagnostics.PerformanceCounter + System.Diagnostics.TextWriterTraceListener + System.Diagnostics.TraceSource + TestAutomationFramework.Core + TestAutomationFramework.Core - + + + + + True @@ -79,7 +116,7 @@ True - + True @@ -88,14 +125,37 @@ - - - - - + + + + True + + + + + + + + + + + C:\Program Files\UiPath\Studio\ffmpeg\ffmpeg.exe + + + ffmpegProcess + + + __invokedWorkflowName__ + + + videoFilePath + + + + - + False @@ -106,20 +166,20 @@ - + True - + "Applications SetUp failed. "+GeneralException.Message+" at Source: "+GeneralException.Source - + GeneralException.Message+" at Source: "+GeneralException.Source @@ -134,23 +194,23 @@ - + True - + - + True - + @@ -167,7 +227,7 @@ - + False @@ -178,20 +238,20 @@ - + True - + "Exception encountered: " + GeneralException.Message - + "Failed with exception: " + GeneralException.Message @@ -206,7 +266,7 @@ - + True @@ -215,14 +275,31 @@ - - - - - + + + + True + + + + + + + + + + + videoFilePath + + + ffmpegProcess + + + + - + False @@ -233,7 +310,7 @@ - + "Applications TearDown failed. "+GeneralException.Message+" at Source: "+GeneralException.Source diff --git a/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestCase.xaml b/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestCase.xaml index 9f18728f..235f1557 100644 --- a/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestCase.xaml +++ b/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestCase.xaml @@ -1,4 +1,4 @@ - + GlobalConstantsNamespace @@ -56,21 +56,21 @@ WindowsBase - + True True - + True True - + "Run Given" @@ -84,14 +84,14 @@ - + True True - + "Run When" @@ -105,14 +105,14 @@ - + True True - + "Run Then" diff --git a/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/SetUp.xaml b/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/SetUp.xaml index d2eddd9b..3b2e2c9e 100644 --- a/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/SetUp.xaml +++ b/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/SetUp.xaml @@ -1,4 +1,4 @@ - + GlobalConstantsNamespace @@ -64,16 +64,23 @@ UiPath.Studio.Constants UiPath.System.Activities UiPath.UiAutomation.Activities + UiPath.Workflow + System.Linq.Expressions + System.Linq.Parallel + System.Collections.Immutable + System.Linq.Queryable + UiPath.System.Activities.Design + UiPath.System.Activities.ViewModels - + True True - + "Start Setup" @@ -86,12 +93,14 @@ - + GlobalVariablesNamespace.GlobalVariables.Assets - Data\Assets.json + + Data\Assets.json + diff --git a/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/InitAllAssets.xaml b/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/InitAllAssets.xaml index 74feff79..ecb47e47 100644 --- a/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/InitAllAssets.xaml +++ b/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/InitAllAssets.xaml @@ -45,52 +45,48 @@ Microsoft.CSharp + Microsoft.VisualBasic + Microsoft.Win32.Primitives + netstandard + Newtonsoft.Json + PresentationFramework System - System.Core System.Activities + System.Collections.NonGeneric + System.Collections.Specialized + System.ComponentModel + System.ComponentModel.EventBasedAsync + System.ComponentModel.Primitives + System.ComponentModel.TypeConverter + System.Configuration.ConfigurationManager + System.Console + System.Core System.Data + System.Linq + System.Linq.Expressions + System.Memory + System.ObjectModel + System.Private.CoreLib + System.Private.DataContractSerialization + System.Private.ServiceModel + System.Private.Uri + System.Reflection.DispatchProxy + System.Reflection.Metadata + System.Reflection.TypeExtensions System.Runtime.Serialization + System.Runtime.Serialization.Formatters + System.Runtime.Serialization.Primitives + System.Security.Permissions System.ServiceModel System.ServiceModel.Activities System.Xaml - System.Activities - Microsoft.VisualBasic - System.Private.CoreLib - System.Data - System - System.Core System.Xml System.Xml.Linq - System.Xaml + UiPath.Platform + UiPath.Studio.Constants UiPath.System.Activities UiPath.UiAutomation.Activities - UiPath.Studio.Constants - netstandard - UiPath.Platform - System.Reflection.DispatchProxy - System.Reflection.TypeExtensions - System.ObjectModel - System.Reflection.Metadata - System.Private.ServiceModel - System.Runtime.Serialization.Formatters - System.Private.DataContractSerialization - System.Runtime.Serialization.Primitives - Newtonsoft.Json - System.Linq.Expressions - System.ComponentModel.EventBasedAsync - PresentationFramework - System.ComponentModel.TypeConverter WindowsBase - Microsoft.Win32.Primitives - System.ComponentModel - System.ComponentModel.Primitives - System.Collections.Specialized - System.Collections.NonGeneric - System.Console - System.Configuration.ConfigurationManager - System.Security.Permissions - System.Memory - System.Private.Uri diff --git a/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/KillAllProcesses.xaml b/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/KillAllProcesses.xaml index 801d2b52..cdef95e7 100644 --- a/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/KillAllProcesses.xaml +++ b/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/KillAllProcesses.xaml @@ -32,43 +32,39 @@ Microsoft.CSharp + Microsoft.VisualBasic + Microsoft.Win32.Primitives + PresentationFramework System - System.Core System.Activities + System.ComponentModel + System.ComponentModel.EventBasedAsync + System.ComponentModel.Primitives + System.ComponentModel.TypeConverter + System.Configuration.ConfigurationManager + System.Console + System.Core System.Data + System.Linq + System.Linq.Expressions + System.Memory + System.ObjectModel + System.Private.CoreLib + System.Private.Uri + System.Reflection.DispatchProxy + System.Reflection.Metadata + System.Reflection.TypeExtensions System.Runtime.Serialization + System.Security.Permissions System.ServiceModel System.ServiceModel.Activities System.Xaml - System.Activities - Microsoft.VisualBasic - System.Private.CoreLib - System.Data - System - System.Core System.Xml System.Xml.Linq - System.Xaml + UiPath.Studio.Constants UiPath.System.Activities UiPath.UiAutomation.Activities - UiPath.Studio.Constants - System.ComponentModel.EventBasedAsync - PresentationFramework - System.ComponentModel.TypeConverter WindowsBase - Microsoft.Win32.Primitives - System.ComponentModel - System.ComponentModel.Primitives - System.ObjectModel - System.Reflection.DispatchProxy - System.Reflection.TypeExtensions - System.Reflection.Metadata - System.Console - System.Configuration.ConfigurationManager - System.Security.Permissions - System.Memory - System.Private.Uri - System.Linq.Expressions diff --git a/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/StartRecording.xaml b/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/StartRecording.xaml new file mode 100644 index 00000000..089c5090 --- /dev/null +++ b/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/StartRecording.xaml @@ -0,0 +1,345 @@ + + + + + + + + + + + C# + 1089,2738 + ActivityBuilder_1 + + + System.Activities + System.Activities.Statements + System.Activities.Expressions + System.Activities.Validation + System.Activities.XamlIntegration + Microsoft.VisualBasic + Microsoft.VisualBasic.Activities + System + System.Collections + System.Collections.Generic + System.Collections.ObjectModel + System.Data + System.Diagnostics + System.Linq + System.Net.Mail + System.Xml + System.Text + System.Xml.Linq + UiPath.Core + UiPath.Core.Activities + System.Windows.Markup + GlobalVariablesNamespace + GlobalConstantsNamespace + System.Reflection + System.Runtime.Serialization + System.IO + System.ComponentModel + + + + + Microsoft.CSharp + Microsoft.VisualBasic + System + System.Activities + System.ComponentModel.TypeConverter + System.Core + System.Data + System.Data.Common + System.Linq + System.Net.Mail + System.ObjectModel + System.Private.CoreLib + System.Runtime.Serialization + System.ServiceModel + System.ServiceModel.Activities + System.Xaml + System.Xml + System.Xml.Linq + UiPath.System.Activities + UiPath.UiAutomation.Activities + UiPath.Studio.Constants + System.Console + System.Configuration.ConfigurationManager + System.Security.Permissions + System.ComponentModel + System.Memory + System.Private.Uri + System.Reflection.DispatchProxy + System.Reflection.TypeExtensions + System.Reflection.Metadata + UiPath.Workflow + System.Private.ServiceModel + System.Runtime.Serialization.Formatters + System.Private.DataContractSerialization + System.Runtime.Serialization.Primitives + System.IO.FileSystem.Watcher + System.IO.Packaging + System.IO.FileSystem.AccessControl + System.IO.FileSystem.DriveInfo + Microsoft.PowerShell.Commands.Diagnostics + System.Diagnostics.FileVersionInfo + System.Diagnostics.DiagnosticSource + System.Diagnostics.EventLog + System.Diagnostics.PerformanceCounter + WindowsBase + System.Diagnostics.Process + System.Diagnostics.TextWriterTraceListener + System.Diagnostics.TraceSource + System.ComponentModel.EventBasedAsync + PresentationFramework + Microsoft.Win32.Primitives + System.ComponentModel.Primitives + + + + + + + + new String[4] {".nuget", "packages", "lib", "net45"}; + + + + + + + True + + + + + + UiPath.Core.Activities.LogLevel.Info + + + + + "Start Video Recording" + + + + + + + currentDirectory + + + + + + + runDetection.FirstOrDefault(name => currentDirectory.ToUpper().Contains(name.ToUpper())) == null + + + + + True + False + True + + Condition + + + + + + + + isOrchBuild + + + + False + + + + + + + + isOrchBuild + + + + True + + + + + + + + isOrchBuild + + + + True + + + + + + isOrchBuild + + + + + True + False + True + + + + + + + + + + + True + + + + + + + + + fileUniqueName + + + + + System.IO.Path.GetFileNameWithoutExtension(testName)+ "_" + System.Guid.NewGuid().ToString() + + + + + + + videoFilePath + + + + + System.IO.Path.Combine(System.IO.Path.GetTempPath(), fileUniqueName + ".webm") + + + + + + + + + + ffmpegPathExists + + + + + ffmpegPath + + + + + + + ffmpegPathExists + + + + + + + True + + + + + + ffmpegPath + + + videoFilePath + + + ffmpegProcess + + + + + False + False + + + + + + + UiPath.Core.Activities.LogLevel.Info + + + + + "Video Recording started" + + + + + + + + + + True + + + + + + UiPath.Core.Activities.LogLevel.Warn + + + + + "ffmpeg path = " +ffmpegPath + " is not valid" + + + + + + + + + + + + + True + + + + + + UiPath.Core.Activities.LogLevel.Info + + + + + "Local Build Skip video recording" + + + + + + + + \ No newline at end of file diff --git a/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/StopRecording.xaml b/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/StopRecording.xaml new file mode 100644 index 00000000..06eb312f --- /dev/null +++ b/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/StopRecording.xaml @@ -0,0 +1,291 @@ + + + + + + C# + 1089,2632 + ActivityBuilder_1 + + + System.Activities + System.Activities.Statements + System.Activities.Expressions + System.Activities.Validation + System.Activities.XamlIntegration + Microsoft.VisualBasic + Microsoft.VisualBasic.Activities + System + System.Collections + System.Collections.Generic + System.Collections.ObjectModel + System.Data + System.Diagnostics + System.Linq + System.Net.Mail + System.Xml + System.Text + System.Xml.Linq + UiPath.Core + UiPath.Core.Activities + System.Windows.Markup + GlobalVariablesNamespace + GlobalConstantsNamespace + System.Runtime.Serialization + System.Reflection + System.ComponentModel + System.Activities.Runtime.Collections + UiPath.Testing.Activities + UiPath.Shared.Activities + + + + + Microsoft.CSharp + Microsoft.VisualBasic + System + System.Activities + System.ComponentModel.TypeConverter + System.Core + System.Data + System.Data.Common + System.Linq + System.Net.Mail + System.ObjectModel + System.Private.CoreLib + System.Runtime.Serialization + System.ServiceModel + System.ServiceModel.Activities + System.Xaml + System.Xml + System.Xml.Linq + UiPath.System.Activities + UiPath.UiAutomation.Activities + UiPath.Studio.Constants + System.Private.ServiceModel + System.Runtime.Serialization.Formatters + System.Private.DataContractSerialization + System.Runtime.Serialization.Primitives + System.Reflection.DispatchProxy + System.Reflection.TypeExtensions + System.Reflection.Metadata + System.ComponentModel.EventBasedAsync + PresentationFramework + WindowsBase + Microsoft.Win32.Primitives + System.ComponentModel + System.ComponentModel.Primitives + UiPath.Testing.Activities + UiPath.OCR.Activities + UiPath.UIAutomationCore + Microsoft.PowerShell.Commands.Diagnostics + System.Diagnostics.FileVersionInfo + System.Diagnostics.DiagnosticSource + System.Diagnostics.EventLog + System.Diagnostics.PerformanceCounter + System.Security.Permissions + System.Diagnostics.Process + System.Diagnostics.TextWriterTraceListener + System.Diagnostics.TraceSource + UiPath.Workflow + System.Console + System.Configuration.ConfigurationManager + System.Memory + System.Private.Uri + UiPath.System.Activities.Design + UiPath.System.Activities.ViewModels + + + + + + True + + + + + + ffmpegProcess != null + + + + + + + True + + + + + + ! ffmpegProcess.HasExited + + + + + + + + + + True + + + + + + + + True + + + + + + ffmpegProcess + + + + + + + UiPath.Core.Activities.LogLevel.Info + + + + + "Recording has stopped" + + + + + + + + + + False + False + + + + + + + + + + ffmpegProcess + + + + + + + + + + + PathExists + + + + + videoFilePath + + + + + + + PathExists + + + + + + + True + + + + + + videoFilePath + + + + + + + UiPath.Core.Activities.LogLevel.Info + + + + + "Recording attached to test case" + + + + + + + + + + True + + + + + + UiPath.Core.Activities.LogLevel.Warn + + + + + "Video Path does not exists" + + + + + + + + + + + + + True + + + + + + + + + + + + True + + + + + + UiPath.Core.Activities.LogLevel.Info + + + + + "Recording process not started" + + + + + + + + \ No newline at end of file diff --git a/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/TakeScreenshot.xaml b/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/TakeScreenshot.xaml index c7f684b3..531eb650 100644 --- a/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/TakeScreenshot.xaml +++ b/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/TestFramework/Utils/TakeScreenshot.xaml @@ -9,89 +9,94 @@ C# - 951.2,1423.2 + 1089,1196 ActivityBuilder_1 + GlobalConstantsNamespace + GlobalVariablesNamespace System + System.Activities + System.Collections System.Collections.Generic + System.Collections.ObjectModel System.Data + System.IO System.Linq + System.Linq.Expressions + System.Runtime.Serialization System.Text UiPath.Core UiPath.Core.Activities - System.IO - System.Runtime.Serialization - System.Linq.Expressions - GlobalVariablesNamespace - GlobalConstantsNamespace - System.Activities - UiPath.UIAutomationNext.Enums + UiPath.Platform.ObjectLibrary UiPath.Platform.ResourceHandling + UiPath.Shared.Activities UiPath.UIAutomationCore.Contracts - System.Collections UiPath.UIAutomationNext.Activities - UiPath.Platform.ObjectLibrary - UiPath.Shared.Activities + UiPath.UIAutomationNext.Enums + System.Collections.ObjectModel + System.Activities.Statements - + Microsoft.CSharp + mscorlib System System.Activities + System.Collections + System.Collections.NonGeneric + System.ComponentModel + System.ComponentModel.TypeConverter + System.Configuration.ConfigurationManager + System.Console System.Core System.Data + System.Linq + System.Linq.Expressions + System.Memory + System.ObjectModel + System.Private.CoreLib + System.Private.Uri System.Runtime.Serialization + System.Security.Permissions System.ServiceModel System.ServiceModel.Activities + System.ValueTuple System.Xaml System.Xml System.Xml.Linq - mscorlib - UiPath.System.Activities - UiPath.UiAutomation.Activities - WindowsBase - System.ValueTuple UiPath.CV UiPath.Excel - UiPath.System.Activities.Design - System.Linq.Expressions - System.ComponentModel.TypeConverter - System.Console - System.Configuration.ConfigurationManager - System.Security.Permissions - System.Private.CoreLib - System.ComponentModel - System.Memory - System.Private.Uri - UiPath.Studio.Constants - UiPath.Workflow - UiPath.UIAutomationNext + UiPath.OCR.Activities UiPath.Platform + UiPath.Studio.Constants + UiPath.System.Activities + UiPath.System.Activities.Design + UiPath.Testing.Activities + UiPath.UiAutomation.Activities UiPath.UIAutomationCore - System.Collections.NonGeneric - System.Collections + UiPath.UIAutomationNext UiPath.UIAutomationNext.Activities - UiPath.Testing.Activities - UiPath.OCR.Activities + UiPath.Workflow + WindowsBase - + True True - + String.IsNullOrEmpty(io_FilePath) - + io_FilePath @@ -104,8 +109,11 @@ + + + - + ! Directory.Exists(Path.GetDirectoryName(io_FilePath)) @@ -126,6 +134,9 @@ + + + diff --git a/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/project.json b/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/project.json index 68f86c53..a17c2443 100644 --- a/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/project.json +++ b/TestAutomationFramework/contentFiles/any/any/pt1/CSharp/project.json @@ -4,9 +4,9 @@ "description": "Test Automation Framework is designed for testing projects. This framework extends the main capabilities of a Test Automation process by leveraging exception handling and testing best practices.", "main": "Main.xaml", "dependencies": { - "UiPath.System.Activities": "[23.10.1]", - "UiPath.Testing.Activities": "[23.10.0]", - "UiPath.UIAutomation.Activities": "[23.10.1]" + "UiPath.System.Activities": "[23.10.5]", + "UiPath.Testing.Activities": "[23.10.1]", + "UiPath.UIAutomation.Activities": "[23.10.8]" }, "webServices": [], "entitiesStores": [],