From 7463f2b20cc9c53f5ee1e1eaa8d0361c1603e575 Mon Sep 17 00:00:00 2001 From: Michiel Oda Date: Tue, 26 Nov 2024 11:17:27 +0100 Subject: [PATCH] Update unit tests --- DMProtocolTests/AssemblyInitialize.cs | 38 -- DMProtocolTests/DMProtocolTests.csproj | 16 +- DMProtocolTests/FactoryTests.cs | 6 + DMProtocolTests/TestFiles.zip | Bin 17713 -> 0 bytes .../Protocol/DefaultTemplates/ABOUT.md | 5 + .../Trending_Template_Default.xml | 1 + .../Protocol/Directory.Build.props | 31 ++ .../VisualStudio/Protocol/Dlls/ABOUT.md | 1 + .../VisualStudio/Protocol/Dlls/ClassLibX.dll | Bin 0 -> 4608 bytes .../Protocol/Documentation/ABOUT.md | 1 + .../Protocol/Internal/.editorconfig | 11 + .../Code Analysis/qaction-debug.ruleset | 355 +++++++++++++ .../Code Analysis/qaction-release.ruleset | 484 ++++++++++++++++++ .../Internal/Code Analysis/stylecop.json | 74 +++ .../Protocol/QAction_1/QAction_1.cs | 14 + .../Protocol/QAction_1/QAction_1.csproj | 25 + .../Protocol/QAction_2/QAction_2.cs | 28 + .../Protocol/QAction_2/QAction_2.csproj | 20 + .../Protocol/QAction_2/SubFolder/Class1.cs | 7 + .../QAction_Helper/Directory.Build.props | 2 + .../Protocol/QAction_Helper/QAction_Helper.cs | 38 ++ .../QAction_Helper/QAction_Helper.csproj | 15 + .../Protocol/SharedProject1/Class1.cs | 10 + .../SharedProject1/SharedProject1.projitems | 14 + .../SharedProject1/SharedProject1.shproj | 13 + .../VisualStudio/Protocol/UnitTest.sln | 85 +++ .../VisualStudio/Protocol/protocol.xml | 170 ++++++ 27 files changed, 1420 insertions(+), 44 deletions(-) delete mode 100644 DMProtocolTests/AssemblyInitialize.cs delete mode 100644 DMProtocolTests/TestFiles.zip create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/DefaultTemplates/ABOUT.md create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/DefaultTemplates/Trending_Template_Default.xml create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/Directory.Build.props create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/Dlls/ABOUT.md create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/Dlls/ClassLibX.dll create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/Documentation/ABOUT.md create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/Internal/.editorconfig create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/Internal/Code Analysis/qaction-debug.ruleset create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/Internal/Code Analysis/qaction-release.ruleset create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/Internal/Code Analysis/stylecop.json create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_1/QAction_1.cs create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_1/QAction_1.csproj create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_2/QAction_2.cs create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_2/QAction_2.csproj create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_2/SubFolder/Class1.cs create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_Helper/Directory.Build.props create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_Helper/QAction_Helper.cs create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_Helper/QAction_Helper.csproj create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/SharedProject1/Class1.cs create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/SharedProject1/SharedProject1.projitems create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/SharedProject1/SharedProject1.shproj create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/UnitTest.sln create mode 100644 DMProtocolTests/TestFiles/VisualStudio/Protocol/protocol.xml diff --git a/DMProtocolTests/AssemblyInitialize.cs b/DMProtocolTests/AssemblyInitialize.cs deleted file mode 100644 index 8feee4a..0000000 --- a/DMProtocolTests/AssemblyInitialize.cs +++ /dev/null @@ -1,38 +0,0 @@ -namespace DMProtocolTests -{ - using System.IO; - using System.IO.Compression; - using System.Reflection; - - using Microsoft.VisualStudio.TestTools.UnitTesting; - - [TestClass] - public class AssemblyInitialize - { - [AssemblyInitialize] - public static void AssemblyInit(TestContext context) - { - // This is needed because certain tools will look at all csproj files in the entire repository. - - var baseDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); - - foreach (var zipFile in Directory.GetFiles(baseDir, "*.zip", SearchOption.AllDirectories)) - { - string dir = Path.Combine(Path.GetDirectoryName(zipFile), "TestFiles"); - - ZipFile.ExtractToDirectory(zipFile, dir); - } - } - - [AssemblyCleanup] - public static void AssemblyCleanup() - { - var baseDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); - - foreach (var testFilesDirectories in Directory.GetDirectories(baseDir, "TestFiles", SearchOption.AllDirectories)) - { - Directory.Delete(testFilesDirectories, true); - } - } - } -} \ No newline at end of file diff --git a/DMProtocolTests/DMProtocolTests.csproj b/DMProtocolTests/DMProtocolTests.csproj index 65bbab4..a94cfde 100644 --- a/DMProtocolTests/DMProtocolTests.csproj +++ b/DMProtocolTests/DMProtocolTests.csproj @@ -8,6 +8,16 @@ false + + + + + + + PreserveNewest + + + @@ -22,10 +32,4 @@ - - - Always - - - diff --git a/DMProtocolTests/FactoryTests.cs b/DMProtocolTests/FactoryTests.cs index 7c61fc4..785a790 100644 --- a/DMProtocolTests/FactoryTests.cs +++ b/DMProtocolTests/FactoryTests.cs @@ -43,6 +43,9 @@ public async Task FromRepositoryAsyncTestAsync() // Verify assembly from DLLs folder is included. Assert.IsNotNull(builder.Assemblies.FirstOrDefault(a => a.AssemblyFilePath.EndsWith("ClassLibX.dll"))); + + // Verify if Trending template is present + Assert.AreEqual(1, builder.TrendTemplates.Count); } [TestMethod] @@ -76,6 +79,9 @@ public async Task FromRepositoryAsyncTestOverrideVersionAsync() // Verify assembly from DLLs folder is included. Assert.IsNotNull(builder.Assemblies.FirstOrDefault(a => a.AssemblyFilePath.EndsWith("ClassLibX.dll"))); + + // Verify if Trending template is present + Assert.AreEqual(1, builder.TrendTemplates.Count); } } } \ No newline at end of file diff --git a/DMProtocolTests/TestFiles.zip b/DMProtocolTests/TestFiles.zip deleted file mode 100644 index b8d889c2d7dc3a7bb1f52c2372b192341cdf7b9a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17713 zcmbV!1z1%}_ctlsA>9qqCEe29U5D=O4haDPK|o5nyF*f1Qb1Zlx>NEyy!^esaO+NYu2ne@>1Xs=pgr3zKWXKf4=XC>^Mhl2;}2}y2)r5oJ&2%? zoQg8NwXySH1ww}aeDGI3MVE4BfhQReBEspntE*nCWa;?d@j$B-7*T0Kz!ZoS?iM}I zx2?4ug0u1Z^i}N#6^Ru)Ug5v%@83{v$Djx(Q4HDyYeg>3Ev<4`WCyQGOA{@ZpRbYO z@NqHFuSPxFZ@Sg4_f#Pb(}?;y;L|1;t0_24b2kY7LnRN=WMZ>n@q&SXNId}oq5Zuy z<_-WOCtC-1dLd_XD`R>)2U|PG&nh~$GmPlod)YToaKx|8ESYt4OM}Fzi*>RU6*4@j zbpWxr-wbyqT(FWZS4=50Ni|;Qnj_)9Ch_vFU+?5-$A!BEd3~h!f$Qkx96hL?0b*ED zX_P!%rK8&;q#HH<1F!pj!z)dHT-30q=pD|I5+V}~ZI%}wyDh+Ap!HG2^}^tJ&N=+V z!mlC{8o5}P=qSSNCT(jj3Bw3YaF#cp#HOufkB=A_K zj)MnIqrpW~(Kd=Nl&Tdv+JF(*r=-E`8w^aS|p*32WTPu+E*i^ae zB6T9f5oVaeADq=Al%EH`%=;9$T72TUs)Jg4L@Nu15VMXs8*E$GUe6#FTH;rbD9V}P z+as!s*GoKulP{)qTDrmG%KyrP{hLl$7KU!eamr5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`J|95nN z3xPk1Gk)Uz+2};~F#oykjZO@7tH0*^N6O-U+5D@WAMbYEg8|1i;HCF3(Eh*$=C>Xr zKi+n_$9zC$1TOObiO>H=zF!voME@r(kOJqGzem5{@Ay>A08fUp0gh5t?@|EiD2spNay2isu*e=6YLkWv|DxAC&P)EJAqC8C{VQ4iMB|_O&#z_}1^&RrU(@+DYw;&ndYp;-$vQgY zzl8jYUh|;($H}sv*hBvo`&aINrp_K)`Ef$$ffNz&BcAzRit&ilLwe`G>HJlu;ipJO gz=-&-E%4uY2YD&T`=1s7AqM{C0OKf^=l5^_4?2V_z5oCK diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/DefaultTemplates/ABOUT.md b/DMProtocolTests/TestFiles/VisualStudio/Protocol/DefaultTemplates/ABOUT.md new file mode 100644 index 0000000..8041bec --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/DefaultTemplates/ABOUT.md @@ -0,0 +1,5 @@ +This folder contains default templates to be used by the protocol. +Allowed names: +"Template_Alarm_Default.xml" +"Trending_Template_Default.xml" +"Information_Template_Default.xml" diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/DefaultTemplates/Trending_Template_Default.xml b/DMProtocolTests/TestFiles/VisualStudio/Protocol/DefaultTemplates/Trending_Template_Default.xml new file mode 100644 index 0000000..7dde50e --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/DefaultTemplates/Trending_Template_Default.xml @@ -0,0 +1 @@ + diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/Directory.Build.props b/DMProtocolTests/TestFiles/VisualStudio/Protocol/Directory.Build.props new file mode 100644 index 0000000..ba90324 --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/Directory.Build.props @@ -0,0 +1,31 @@ + + + x86 + true + + + $(DefineConstants);DCFv1;DBInfo;ALARM_SQUASHING + + + full + ..\Internal\Code Analysis\qaction-debug.ruleset + + + pdbonly + ..\Internal\Code Analysis\qaction-release.ruleset + + + + Properties\stylecop.json + + + Properties\.editorconfig + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + \ No newline at end of file diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/Dlls/ABOUT.md b/DMProtocolTests/TestFiles/VisualStudio/Protocol/Dlls/ABOUT.md new file mode 100644 index 0000000..a3170b3 --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/Dlls/ABOUT.md @@ -0,0 +1 @@ +This folder contains DLL files that should be placed under the ProtocolScripts folder of DataMiner for this solution to work correctly. \ No newline at end of file diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/Dlls/ClassLibX.dll b/DMProtocolTests/TestFiles/VisualStudio/Protocol/Dlls/ClassLibX.dll new file mode 100644 index 0000000000000000000000000000000000000000..4a41e5ec8aa7c857586ca078f8288b7965cdc7e5 GIT binary patch literal 4608 zcmeHKU2Ggz75--ZQ`;dhl-ryR=y^p-xi=TDBcjz5s z?!7~W%XVn`fmaEvs#&sJ*Ne=eGJ~3H+OC;jST?I(S*3UH?m3c}UYr8vj5h3l?)`Tg zv)#mDbC;0;ddTUFxz7)>H~Ee81NLe>75goWL=Ct`f_!OhSbI@a<*(T%q_EgBw7Ve4 zIIt;+*xuHFPmuTOqrlj9*}Z5J=xUL7kv`o*rz5o)k$zc}DATbfev{J81lH0)7?en9 z-^Pi^LWx5yZJgex1Lb&B)S@*C#g>knebUB($p+r&%Zy)|_?AKkUNC`u_W_15|BLnm z1RUx=@a;a@IJ!UhEQuTa#0U2<#zA`2^Tr@$J$USJYLEgVlgno&jbujg|LSNulOD;8 zWKW0#9dM*$JOkeV9QJ<_d^rkiw-SnIu>-iye&F0PZW5QU2WHOA=Gp(1^bvYAFzI+j z($YBGnArz(3-J$Q1pDK7+3B=V4tj=Oev${FfnBLMC!M%td^gpJ-)Z2T~2=9lj@vmxF*YGv+9>Od5W9ksz!f#TK;yLm=k;X3M2tSEA!iRB% zZ~zhEr|~Vq5e+}DVNUbEL@Q}5YtGXemhd_`SMXcH5bvY?TD&6IYR8Dlk!Z9m?MmC- zV6cAzr{X0P-t3fHtE#{%I%+M8oMVMy7AMbo<(i|uh~;`1scL$5A(qV9#S5s0B`CuQ^xL-`Jz_~Y)~3e7or4zxCcG5w z6y!X=9@v%3cNJBA%dI!ZBuSS!IZx4c?5IVWEM=mUPQql(KwLVSE1WJnPO`W-AJ|bN zC5;7NQtQcrV_t1UTz79hN}mZm7Xk{b{8fZHJq7sBNcf5 zvI?%+CAC8wXHf-P@_38TckWZFPx!ua%M*?>XS*c1P$etELh%`HOWET?IqvyY6rfOr zPs}B@!87I&3klctd5f^g9$%S8KwcFl&#MEA8X?cDjUq0PS0iO}T!r}E?3lPp>w(r1 z`zEW&2+wPVUsk-q_19|Em)8G2{>JA9`=Srtd>HMfVRW^bFgl3z^$FQ4Kx$O~*}f+` zkm@~nup23(_x}E;jNY!Fe{FT;!063ax-vgp`14P`_oG`~MsmA;O3Gg$wf}rz`SYGT zwOLYnOBOB%-bQFp?><9(=rz!-54%3n=+Mju4D@epIP=$UndWe2co;Zl;D{Qttg+D( zj}KYHBaaV_W=h#1%NorLm5yhRAI}ua*|D)AuUp#B^0wlSrNzKQ>G`R`)`9y>vgy9S z8*Pkk_U_vf z8^3D*@SpLWE;C4r`%^KY@Al^99W&)!XV9v}sx!^nN2nDQ-V*|2mBt^eLiNT-|nBx}bG3j642~vLZ4EeC`%0>#=dqadm*wub3(w>$(ByBJ^AGa} zJVq<6cH)&O({7b^1HSJX*#q+0--TojSs9tRkt?C%Oy0}yQJvpK+VB`ljk%3lA{L*w z-*UjH&g-3Hwr6*HZpZYP33?yuScbqX=eOC;|u@MKerzp_doXJf6KtX E0BBy9E&u=k literal 0 HcmV?d00001 diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/Documentation/ABOUT.md b/DMProtocolTests/TestFiles/VisualStudio/Protocol/Documentation/ABOUT.md new file mode 100644 index 0000000..a150545 --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/Documentation/ABOUT.md @@ -0,0 +1 @@ +Looking for README.md? Check your Solution Root folder. This folder can be used to add documentation related to this solution. \ No newline at end of file diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/Internal/.editorconfig b/DMProtocolTests/TestFiles/VisualStudio/Protocol/Internal/.editorconfig new file mode 100644 index 0000000..a612a7a --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/Internal/.editorconfig @@ -0,0 +1,11 @@ +root = true + +[*] +indent_style = tab +indent_size = 4 +tab_width = 4 +end_of_line = crlf +trim_trailing_whitespace = true + +[*.cs] +dotnet_sort_system_directives_first = true \ No newline at end of file diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/Internal/Code Analysis/qaction-debug.ruleset b/DMProtocolTests/TestFiles/VisualStudio/Protocol/Internal/Code Analysis/qaction-debug.ruleset new file mode 100644 index 0000000..26e7d46 --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/Internal/Code Analysis/qaction-debug.ruleset @@ -0,0 +1,355 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/Internal/Code Analysis/qaction-release.ruleset b/DMProtocolTests/TestFiles/VisualStudio/Protocol/Internal/Code Analysis/qaction-release.ruleset new file mode 100644 index 0000000..de0890a --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/Internal/Code Analysis/qaction-release.ruleset @@ -0,0 +1,484 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/Internal/Code Analysis/stylecop.json b/DMProtocolTests/TestFiles/VisualStudio/Protocol/Internal/Code Analysis/stylecop.json new file mode 100644 index 0000000..b2d519d --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/Internal/Code Analysis/stylecop.json @@ -0,0 +1,74 @@ +{ + "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", + "settings": { + "indentation": { + "useTabs": true, + "tabSize": 4 + }, + "namingRules": { + "allowCommonHungarianPrefixes": false, + "allowedHungarianPrefixes": [ + "ab", + "ac", + "ad", + "af", + "ai", + "al", + "ao", + "as", + "ax", + "b", + "by", + "c", + "d", + "dt", + "e", + "f", + "hs", + "i", + "ip", + "is", + "l", + "lb", + "lc", + "ld", + "lf", + "li", + "ll", + "lo", + "ls", + "lx", + "my", + "no", + "o", + "qb", + "qc", + "qd", + "qf", + "qi", + "ql", + "qo", + "qs", + "qx", + "rx", + "s", + "sb", + "sc", + "sd", + "sf", + "sh", + "si", + "sl", + "so", + "ss", + "sx", + "to", + "ts", + "tx", + "ui", + "ul", + "x" + ] + } + } +} diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_1/QAction_1.cs b/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_1/QAction_1.cs new file mode 100644 index 0000000..13ee4a7 --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_1/QAction_1.cs @@ -0,0 +1,14 @@ +namespace Skyline.Protocol +{ + using System; + using System.Collections.Generic; + using System.Globalization; + using System.Text; + + namespace MyExtension + { + public class MyClass + { + } + } +} \ No newline at end of file diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_1/QAction_1.csproj b/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_1/QAction_1.csproj new file mode 100644 index 0000000..d981485 --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_1/QAction_1.csproj @@ -0,0 +1,25 @@ + + + net462 + Skyline Communications + © Skyline Communications + True + + + + + + + + + + ..\Dlls\ClassLibX.dll + + + + + + + + + \ No newline at end of file diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_2/QAction_2.cs b/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_2/QAction_2.cs new file mode 100644 index 0000000..7fc1b5c --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_2/QAction_2.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Text; + +using Skyline.DataMiner.Scripting; + +/// +/// DataMiner QAction Class: After Startup. +/// +public static class QAction +{ + /// + /// The QAction entry point. + /// + /// Link with SLProtocol process. + public static void Run(SLProtocol protocol) + { + try + { + + } + catch (Exception ex) + { + protocol.Log($"QA{protocol.QActionID}|{protocol.GetTriggerParameter()}|Run|Exception thrown:{Environment.NewLine}{ex}", LogType.Error, LogLevel.NoLogging); + } + } +} diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_2/QAction_2.csproj b/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_2/QAction_2.csproj new file mode 100644 index 0000000..b078343 --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_2/QAction_2.csproj @@ -0,0 +1,20 @@ + + + net462 + Skyline Communications + © Skyline Communications + True + + + + + + + + + + + + + + \ No newline at end of file diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_2/SubFolder/Class1.cs b/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_2/SubFolder/Class1.cs new file mode 100644 index 0000000..e74ef04 --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_2/SubFolder/Class1.cs @@ -0,0 +1,7 @@ +namespace QAction_2.SubFolder +{ + public class SubfolderClass + { + public string Name { get; set; } + } +} diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_Helper/Directory.Build.props b/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_Helper/Directory.Build.props new file mode 100644 index 0000000..c1df222 --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_Helper/Directory.Build.props @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_Helper/QAction_Helper.cs b/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_Helper/QAction_Helper.cs new file mode 100644 index 0000000..9f7efe0 --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_Helper/QAction_Helper.cs @@ -0,0 +1,38 @@ +// This is auto-generated code by DIS. Do not modify. +using System.ComponentModel; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Skyline.DataMiner.Scripting +{ +public static class Parameter +{ + public class Write + { + } +} +public class WriteParameters +{ + public SLProtocolExt Protocol; + public WriteParameters(SLProtocolExt protocol) + { + Protocol = protocol; + } +} +public interface SLProtocolExt : SLProtocol +{ + object Afterstartup_dummy { get; set; } + WriteParameters Write { get; set; } +} +public class ConcreteSLProtocolExt : ConcreteSLProtocol, SLProtocolExt +{ + /// PID: 2 | Type: dummy + public System.Object Afterstartup_dummy {get { return GetParameter(2); }set { SetParameter(2, value); }} + public WriteParameters Write { get; set; } + public ConcreteSLProtocolExt() + { + Write = new WriteParameters(this); + } +} +} diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_Helper/QAction_Helper.csproj b/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_Helper/QAction_Helper.csproj new file mode 100644 index 0000000..094cabb --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/QAction_Helper/QAction_Helper.csproj @@ -0,0 +1,15 @@ + + + net462 + Skyline Communications + © Skyline Communications + + + + + + + + + + \ No newline at end of file diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/SharedProject1/Class1.cs b/DMProtocolTests/TestFiles/VisualStudio/Protocol/SharedProject1/Class1.cs new file mode 100644 index 0000000..aa07849 --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/SharedProject1/Class1.cs @@ -0,0 +1,10 @@ +namespace SharedProject1 +{ + public class Utility + { + public string ToUpper(string input) + { + return input.ToUpper(); + } + } +} diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/SharedProject1/SharedProject1.projitems b/DMProtocolTests/TestFiles/VisualStudio/Protocol/SharedProject1/SharedProject1.projitems new file mode 100644 index 0000000..c4a4d2d --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/SharedProject1/SharedProject1.projitems @@ -0,0 +1,14 @@ + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + true + 339971ed-bf29-4fc7-90a2-d84fe7bdc48f + + + SharedProject1 + + + + + \ No newline at end of file diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/SharedProject1/SharedProject1.shproj b/DMProtocolTests/TestFiles/VisualStudio/Protocol/SharedProject1/SharedProject1.shproj new file mode 100644 index 0000000..2c9f48a --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/SharedProject1/SharedProject1.shproj @@ -0,0 +1,13 @@ + + + + 339971ed-bf29-4fc7-90a2-d84fe7bdc48f + 14.0 + + + + + + + + diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/UnitTest.sln b/DMProtocolTests/TestFiles/VisualStudio/Protocol/UnitTest.sln new file mode 100644 index 0000000..dab8a36 --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/UnitTest.sln @@ -0,0 +1,85 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.33502.453 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Internal", "Internal", "{FFD8343C-27EB-468F-8C32-E9FF6FCCC216}" + ProjectSection(SolutionItems) = preProject + Internal\.editorconfig = Internal\.editorconfig + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "QActions", "QActions", "{A14A5B2F-589B-4E77-AFFD-3BD5EE94DE06}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Dlls", "Dlls", "{7BBF7B9F-62D0-4CF9-B184-8248D3C8D882}" + ProjectSection(SolutionItems) = preProject + Dlls\ABOUT.md = Dlls\ABOUT.md + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DefaultTemplates", "DefaultTemplates", "{F2683535-3B81-4454-9E99-120E5016BBCE}" + ProjectSection(SolutionItems) = preProject + DefaultTemplates\ABOUT.md = DefaultTemplates\ABOUT.md + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Documentation", "Documentation", "{F5EFE09A-E21F-4797-BB4D-A7CDE25769E4}" + ProjectSection(SolutionItems) = preProject + Documentation\ABOUT.md = Documentation\ABOUT.md + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{63306FF3-5EB7-4750-BD24-0D9F437B544A}" + ProjectSection(SolutionItems) = preProject + protocol.xml = protocol.xml + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{938735A1-0F3F-47CC-ACC5-34EE973D278B}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Code Analysis", "Code Analysis", "{EA0228C4-530A-46F1-BA61-3903461E2E8B}" + ProjectSection(SolutionItems) = preProject + Internal\Code Analysis\qaction-debug.ruleset = Internal\Code Analysis\qaction-debug.ruleset + Internal\Code Analysis\qaction-release.ruleset = Internal\Code Analysis\qaction-release.ruleset + Internal\Code Analysis\stylecop.json = Internal\Code Analysis\stylecop.json + EndProjectSection +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "QAction_Helper", "QAction_Helper\QAction_Helper.csproj", "{7BC0B800-9696-424A-AD11-33D379C60812}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "QAction_1", "QAction_1\QAction_1.csproj", "{573CB1EC-602E-443F-B29D-C8A8CEC4B050}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "QAction_2", "QAction_2\QAction_2.csproj", "{4A45C283-015F-474B-84F1-4A5252A90C60}" +EndProject +Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "SharedProject1", "SharedProject1\SharedProject1.shproj", "{339971ED-BF29-4FC7-90A2-D84FE7BDC48F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {7BC0B800-9696-424A-AD11-33D379C60812}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7BC0B800-9696-424A-AD11-33D379C60812}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7BC0B800-9696-424A-AD11-33D379C60812}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7BC0B800-9696-424A-AD11-33D379C60812}.Release|Any CPU.Build.0 = Release|Any CPU + {573CB1EC-602E-443F-B29D-C8A8CEC4B050}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {573CB1EC-602E-443F-B29D-C8A8CEC4B050}.Debug|Any CPU.Build.0 = Debug|Any CPU + {573CB1EC-602E-443F-B29D-C8A8CEC4B050}.Release|Any CPU.ActiveCfg = Release|Any CPU + {573CB1EC-602E-443F-B29D-C8A8CEC4B050}.Release|Any CPU.Build.0 = Release|Any CPU + {4A45C283-015F-474B-84F1-4A5252A90C60}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4A45C283-015F-474B-84F1-4A5252A90C60}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4A45C283-015F-474B-84F1-4A5252A90C60}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4A45C283-015F-474B-84F1-4A5252A90C60}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {EA0228C4-530A-46F1-BA61-3903461E2E8B} = {FFD8343C-27EB-468F-8C32-E9FF6FCCC216} + {7BC0B800-9696-424A-AD11-33D379C60812} = {FFD8343C-27EB-468F-8C32-E9FF6FCCC216} + {573CB1EC-602E-443F-B29D-C8A8CEC4B050} = {A14A5B2F-589B-4E77-AFFD-3BD5EE94DE06} + {4A45C283-015F-474B-84F1-4A5252A90C60} = {A14A5B2F-589B-4E77-AFFD-3BD5EE94DE06} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {3D53A558-A8D1-4461-8BE5-2B33D9723528} + EndGlobalSection + GlobalSection(SharedMSBuildProjectFiles) = preSolution + SharedProject1\SharedProject1.projitems*{339971ed-bf29-4fc7-90a2-d84fe7bdc48f}*SharedItemsImports = 13 + SharedProject1\SharedProject1.projitems*{573cb1ec-602e-443f-b29d-c8a8cec4b050}*SharedItemsImports = 5 + EndGlobalSection +EndGlobal diff --git a/DMProtocolTests/TestFiles/VisualStudio/Protocol/protocol.xml b/DMProtocolTests/TestFiles/VisualStudio/Protocol/protocol.xml new file mode 100644 index 0000000..ebdceba --- /dev/null +++ b/DMProtocolTests/TestFiles/VisualStudio/Protocol/protocol.xml @@ -0,0 +1,170 @@ + + + + + ExampleProtocol + ExampleProtocol DataMiner connector + 1.0.0.1 + DMS-DRV- + Skyline Communications + Skyline + 1.3.6.1.4.1.8813.2. + + + virtual + + auto + + + true + 10.1.0.0 - 9966 + + + + + AfterStartup + After Startup + dummy + + + + + + + + + + + After Startup + After Startup + poll action + + 2 + + + + + + + After Startup + protocol + + action + + 1 + + + + + + + After Startup Group + group + execute next + + + After Startup QAction + parameter + run actions + + + + + + Fast Timer (10s) + + 75 + + + + + Medium Timer (1m) + + 75 + + + + + Slow Timer (1h) + + 75 + + + + + + + + + + + + Main Branch + + + + + + + 2023-09-21 + + XXX + Skyline Communications + + + Initial version + + + + + + + + + + + + \ No newline at end of file