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.
Files changed (2) hide show
  1. package/index.js +12 -9
  2. 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 = reportTemplate.id;
1137
+ hostReport.orderName = options.id;
1140
1138
  hostReport.id = `${options.id}-${host.id}`;
1141
- hostReport.orderUserName = reportTemplate.userName;
1142
- hostReport.orderTime = reportTemplate.orderTime;
1143
- hostReport.scriptName = reportTemplate.scriptName;
1144
- hostReport.batchName = reportTemplate.batchName;
1145
- hostReport.scriptIsValid = reportTemplate.scriptIsValid;
1146
- hostReport.batchIsValid = reportTemplate.batchIsValid;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "2.2.5",
3
+ "version": "2.2.8",
4
4
  "description": "Automation of accessibility testing",
5
5
  "main": "index.js",
6
6
  "scripts": {