Skip to content
DataMiner Dojo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
      • Book your Agile Fundamentals training
      • Book your Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Simulating running scripts

35 views3 hours agoAutomation script automation scripts Simulation Testing
2
Ryan Hepworth [DevOps Advocate]1.78K 16 hours ago 0 Comments

hi All

we have a script that is triggered from a button in a Visio.

is there a way we can automate through a script to trigger that script say 40 times using dummy data so we can accurately baseline performance?

I know it takes the human element out but has anyone seen or done this before?

thanks

ryan

Jarno Lernou [SLC] [DevOps Enabler] Answered question 3 hours ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Jarno Lernou [SLC] [DevOps Enabler]6.09K Posted 3 hours ago 0 Comments

Hi! Yes, you can automate repeated runs for a baseline. A wrapper automation script can call the existing script as a subscript 40 times, passing the required dummies and parameters each time. DataMiner’s Script action supports running another automation script and linking its dummies and parameters.

That would exercise the script itself, but it wouldn’t literally simulate clicking the Visio button. Make sure the test passes the same inputs and options the button supplies; the Visio link syntax is documented in Linking a shape to an Automation script.

You can also do it through C# if you are ok with that. Put a C# block in a wrapper automation script and call the Visio-triggered script as a synchronous subscript in a loop. This runs the script logic with supplied inputs, but does not simulate the Visio button click or its UI context.

<code class="dwa-code-block language-csharp">using System;
using System.Diagnostics;
using Skyline.DataMiner.Automation;

public class Script
{
    public void Run(Engine engine)
    {
        string targetScript = "Your Visio script name";

        for (int i = 1; i <= 40; i++)
        {
            var subscript = engine.PrepareSubScript(targetScript);
            subscript.Synchronous = true;

            // Replace these with the target script's actual input names and test values.
            subscript.SelectScriptParam("InputName", "TestValue");

            // If the script requires a dummy, link it to a test element:
            // subscript.SelectDummy("DummyName", dmaId, elementId);

            Stopwatch timer = Stopwatch.StartNew();
            subscript.StartScript();
            timer.Stop();

            engine.Log("Run " + i + ": " + timer.ElapsedMilliseconds + " ms");
        }
    }
}</code>

The documented C# approach is to use PrepareSubScript, set its parameters or dummy links, and call StartScript; synchronous execution lets each run finish before the next begins (PrepareSubScript, StartScript).

Use safe test elements if the script performs sets or other actions. For a representative baseline, match the Visio button’s inputs and record the results outside the timed section if logging overhead matters.

Kind Regards.

Jarno Lernou [SLC] [DevOps Enabler] Answered question 3 hours ago
You are viewing 1 out of 1 answers, click here to view all answers.
Please login to be able to comment or post an answer.

DevOps Members get more insights on their profile page.

Spend your credits in our swag shop.

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)

Recent Blogs

  • 2026 DataMiner security assessment
  • DataMiner support lifecycle update
  • Critical DataMiner security upgrade

Recent Questions

Please log in to see recent questions.
Privacy Policy • Terms & Conditions • Contact

© 2026 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin