Class ExecuteScriptMessage
Represents a message for executing an Automation script.
[Serializable]
public class ExecuteScriptMessage
- Inheritance
-
ExecuteScriptMessage
- Extension Methods
Examples
try
{
string[] scriptOptions = { "OPTIONS:0", "CHECKSETS:TRUE", "EXTENDED_ERROR_INFO", "DEFER:TRUE" };
ExecuteScriptMessage message = new ExecuteScriptMessage
{
ScriptName = "Automation script",
Options = new SA(scriptOptions),
};
var response = protocol.ExecuteScript(message);
bool succeeded = response != null && !response.HadError;
if (!succeeded)
{
// Script did not succeed.
}
}
catch (Exception ex)
{
protocol.Log("QA" + protocol.QActionID + "|" + protocol.GetTriggerParameter() + "|Run|Exception thrown:" + Environment.NewLine + ex, LogType.Error, LogLevel.NoLogging);
}
Constructors
- ExecuteScriptMessage()
Initializes a new instance of the ExecuteScriptMessage class.
- ExecuteScriptMessage(int, string)
Initializes a new instance of the ExecuteScriptMessage class using the DataMiner agent ID and the script name.
- ExecuteScriptMessage(string)
Initializes a new instance of the ExecuteScriptMessage class using the Automation script name.
Fields
- Options
Options to be passed along to the script. These options include info about which elements are linked to which dummies.
- ScriptName
Name of the script to run.
Properties
- CustomEntryPoint
Gets or sets a custom entry point of the Automation script.
Methods
- ToString()
Returns a string that represents the current object.