Hi
Is there a way that we can perform following auto testing procedure by automation script?
Step 1. get all elements which are using the same protocol (can achieve by using automation script)
Step 2. for each element from step 1 we do following:
2.1: do SNMP SET and verify the results (by seeing alarms from the devices in the alarm console)
2.2: record the results (if see the alarms then PASS; if not see alarms then FAIL and record the reason why it fails) in the reports
Step 3. use automation script to email the report (can be achieved in automation script)
I think step 1 and 3 can be achieved by automation script but not sure about how to use automation script to verify the alarms and write the test results into a report.
Just would like to know the above automation procedure can be achieved or not.
Thanks for sharing any ideas.
Hi Peng Fei,
For the first step, you can achieve this by using the following code:
IDMs dms = engine.GetDms();
var elements = dms.GetElements().Where(x => x.Protocol.Name.Equals("YourProtocolName")) // You can add more checks which are recommended, e.g x.State == ElementState.Active && x.IsStartupComplete()
You will need the following NuGet Skyline.DataMiner.Core.DataMinerSystem.Automation
For the third step, you should use NuGet Skyline.DataMiner.Utils.QAPortalAPI. You can find examples and guides here:
NuGet Gallery | Skyline.DataMiner.Utils.QAPortalAPI 1.0.14
Hope it helps!