Hi, I would like to create a generic script that will based on calculation (logic) determine if an interactive screen needs to be shown or just execute.
How do I accomplish this?
Hi Mieke,
There's also a best practice written in the DataMiner Docs. It focuses on preparing interactive scripts for automatic regression testing, but it comes down to a use case of what you want.
Best practices: Implementing interactive Automation scripts in regression tests | DataMiner Docs
Kind Regards,
Hi Mieke
Your question looks similar to this question created by Gilles: Using same automation script in interactive and non-interactive mode - DataMiner Dojo
Does this help you out?
Kind regards
Not really. I’m not sure what is meant with “just skip”.
Does this mean that I can have a simple if-statement:
If (interactionNeeded)
{
// Show screen
}
else
{
// Execute
}
Because when I do this via Cube Editor, I always get “Interaction required” error when running the flow that doesn’t need to show the screen.
Would this mean there is a SW bug?
Hi, in this script (https://github.com/SkylineCommunications/SLC-AS-SetElementCustomProperty) we are combining interactive and non-interactive mode. An if-statement should do the trick.
Did a test via the cube editor and it works fine at our end.
Thank you, this helps.
In this case I’ve discovered a bug = when updating / saving the script via Cube, the internal “interaction is required” flag is forced to true. Meaning my script can no longer run in the silent mode.
I’ve created a Ticket: https://supportpreview.dataminer.services/Home/Details?id=4077