testaro 2.2.5 → 2.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +12 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1131,20 +1131,23 @@ const doBatch = async (options, reportTemplate, hostIndex = 0) => {
|
|
|
1131
1131
|
act.what = host.what;
|
|
1132
1132
|
}
|
|
1133
1133
|
});
|
|
1134
|
-
// Perform the commands on the host.
|
|
1135
|
-
await doScript(options, hostReport);
|
|
1136
1134
|
// Add the host’s ID to the host report.
|
|
1137
1135
|
hostReport.hostName = host.id;
|
|
1138
1136
|
// Add data from the template to the host report.
|
|
1139
|
-
hostReport.orderName =
|
|
1137
|
+
hostReport.orderName = options.id;
|
|
1140
1138
|
hostReport.id = `${options.id}-${host.id}`;
|
|
1141
|
-
hostReport.orderUserName =
|
|
1142
|
-
hostReport.orderTime =
|
|
1143
|
-
hostReport.
|
|
1144
|
-
hostReport.
|
|
1145
|
-
hostReport.
|
|
1146
|
-
hostReport.
|
|
1139
|
+
hostReport.orderUserName = options.userName;
|
|
1140
|
+
hostReport.orderTime = options.orderTime;
|
|
1141
|
+
hostReport.assignedBy = options.assignedBy;
|
|
1142
|
+
hostReport.assignedTime = options.assignedTime;
|
|
1143
|
+
hostReport.tester = options.tester;
|
|
1144
|
+
hostReport.scriptName = options.scriptName;
|
|
1145
|
+
hostReport.batchName = options.batchName;
|
|
1146
|
+
hostReport.scriptIsValid = options.scriptIsValid;
|
|
1147
|
+
hostReport.batchIsValid = options.batchIsValid;
|
|
1147
1148
|
hostReport.host = host;
|
|
1149
|
+
// Perform the commands on the host and add a report to the options object.
|
|
1150
|
+
await doScript(options, hostReport);
|
|
1148
1151
|
// Process the remaining hosts.
|
|
1149
1152
|
await doBatch(options, reportTemplate, hostIndex + 1);
|
|
1150
1153
|
}
|