Data Definition: Test Cycle Runner Inputs
This data definition specifies the structure for the data file(s) that will contain the inputs to the "Worksoft SaaS Test Cycle Runner" component that is responsible to create test cycle(s) and schedule one or more "Application Test Drivers", which in turn will schedule the application tests that will get run within the newly created test cycle(s).
Attribute | Purpose / Description | Example Input |
---|---|---|
execution _controls |
Optional. If no value passed, default is "all" |
This attribute controls the "level" at which information will be logged into the log file that will automatically get created by Worksoft SaaS and saved within the "Files" module of your project when the Test Cycle Runner gets executed. This file will be available for you to download for a maximum of 7 days. The options for this parameter are "error" and "all". Application test drivers that experience errors will be logged if you set the value of this parameter to "error". Both Application Test Drivers that experience errors and successful executions will logged if you choose a value of "all". If you don't pass a value to this attribute, the default value of "all" will be applied automatically. Use the following JSON format when you populate data into the column of values for this attribute within the data files: { |
execution _indicator |
Mandatory |
This attribute controls whether or not a particular row gets picked up from a data file for scheduling by the Test Cycle Runner. The options for this parameter are "Yes" and "No". Rows that have a value of "No" will not get picked by the Test Cycle Runner. This is mandatory parameter that requires you to populate a value ("Yes" or "No") for every row in the data file. |
test_cycle _info |
Mandatory |
This attribute can be used the specify the information that will be used by the Test Cycle Runner to create the test cycle. This is mandatory parameter that requires you to populate a JSON value for every row in the data file. Use the following JSON format when you populate data into the column of values for this attribute within the data files: { Please note:
|
test_cycle _asset _capture _overrides |
Optional |
This attribute allows you to OPTIONALLY pass 'override' values for "Execution Asset Log Capture modes" for all the Application Test Runs that get executed by the Test Cycle Runner. Use the following JSON format when you populate data into the column of values for this attribute within the data files: { The valid options for the "screenshotLogCaptureMode" are:
The valid options for the "videoLogCaptureMode" are:
The valid options for the "webDriverLogCaptureMode" are:
The valid options for the "cloudLogCaptureMode" are:
The valid options for the "networkLogCaptureMode" are:
The valid options for the "consoleLogCaptureMode" are:
|
test_cycle _label _overrides |
Optional |
This attribute allows you to OPTIONALLY pass 'override' values for Labels for all the Application Test Runs that get executed by the Test Cycle Runner. Use the following JSON format when you populate data into the column of values for this attribute within the data files: { An example value if you want to override the currently assigned label (value) within the parent label "Test Case" with a new value of label "User Places an order greater than $1000" is as follows: { More than one label can be passed as the value for the override within each parent label. In other words, you can override with labels A, B within a parent label "x" and with labels C, D, E within another parent label "y". |
test_cycle _failed_test _triage _overrides |
Optional |
This attribute can be used the specify if and how automatic triage is performed by Worksoft SaaS for all the Application Test Runs that get executed by the Test Cycle Runner if its outcome of the test runs is 'Completed w/ Failures' or 'System Aborted' or 'Aborted'. Automatic triage involves the assignment of a root cause of failure label(s) and the marking of the test run to not show on reports generated for the test cycle within which the test executes. This is an optional parameter that does NOT require you to populate a JSON value for every row in the data file. if you don't feed in a value for a specific row, then the Application Test Runs scheduled for that row will NOT be auto-triaged by Worksoft SaaS. Use the following JSON format when you populate data into the column of values for this attribute within the data files: { Please note:
|
test_cycle _timings |
Required for the first schedule. It should not be passed for subsequent schedules. |
This attribute can be used the specify the information that will be used by the Test Cycle Runner to create and schedule application test runs for more than one test cycle in one shot. For example, you may want to schedule the once a week full regression test cycle for the next 4 weeks or your daily smoke test for the next 7 days, etc., If a value is passed into this column, the identifiers for each of the test cycles created will be dynamically derived using the value of the parameter "testCycleIdentifier" in value for the attribute "test_cycle_info" and appending a date and the frequency keyword string of "Daily" or "Weekly" or "Monthly". This is done so that the requirement in Worksoft SaaS that each Test Cycle Identifier must be unique within a project. This is an optional but conditionally required parameter that does NOT require you to populate a JSON value for every row in the data file. It is ONLY required in case you want to create test cycles for the next N days or weeks or months in one shot. If you are using the scheduler to trigger re-execution of tests within a previously created test cycle(s), you must NOT pass a value to this attribute. Use the following JSON format when you populate data into the column of values for this attribute within the data files: { Please note:
|
execution _schedule _params |
Optional. For the first request within a cycle, do not pass a value into the "startTimeFor Schedule Execution" parameter. Worksoft SaaS will use the value of the "plannedWindow StartTime" as the schedule start time. For schedules beyond the first one, you are expected to pass a value for the parameter "startTimeFor Schedule Execution". Otherwise, the current (system) time will be used as the start time for the new schedule. |
This attribute can be used the specify the information that will be used by the Test Cycle Runner to (a) get the application test runs scheduled by the Test Cycle Runner to be executed under another User that is specified by the "userAlias" and (b) know the start date and time for the new schedule of tests within a previously created test cycle. This is an optional but conditionally required parameter that does NOT require you to populate a JSON value for every row in the data file. For the first request within a test cycle, do not pass a value into the "startTimeForScheduleExecution" parameter. Worksoft SaaS will use the value of the "plannedWindowStartTime" as the schedule start time. For any schedule beyond the first one, you are expected to pass a value for the parameter "startTimeForScheduleExecution". Otherwise, the current (system) time will be used as the start time for the new schedule. Use the following JSON format when you populate data into the column of values for this attribute within the data files: { Please note:
|
test_cycle _notification _request |
Optional |
This attribute can be used optionally, if the user would to receive notifications upon completion of execution of test runs in the test cycle. Worksoft SaaS supports two kinds of notifications i.e. email & slack. By using the parameters in the JSON, user can provide list of email addresses the notification is to be sent to. Use the following JSON format when you populate data into the column of values for this attribute within the data files: { Please note:
|
datafile_with _runs_to_be _scheduled |
Mandatory |
This attribute can be used the feed the names of the Data Files that should be used by the Test Cycle Runner to get the list of application test drivers to be executed that in turn will schedule the application test runs. This is a mandatory parameter that you are required to populate a JSON value for every row in the data file. At least one data file muse be passed as value. Use the following JSON format when you populate data into the column of values for this attribute within the data files: [ Please note:
|
report _generation |
Optional |
This attribute can be used the specify information that will indicate to Worksoft SaaS if clipboard reports and the test cycle hierarchy reports must be generated automatically once all the application test runs scheduled within the Test Cycle(s) complete their execution. This is an optional parameter that you are NOT required to populate a JSON value for every row in the data file. Use the following JSON format when you populate data into the column of values for this attribute within the data files: { Please note:
|
inputs_for _test_cycle _clipboard _generation |
Optional |
This attribute can be used the configure how Worksoft SaaS should consolidate data from clipboards (that are populated by automated test runs with data from run-level datasets using the command 'ddPersistDatasetToTestCycleClipboard') which are scoped at the level of a test run id (within a test cycle) to 'output' that is at the level of "test cycle". The output is created as an analytics report that appears as an Excel file within the 'Quality' pane of Analytics module within your Worksoft SaaS app OR as a data file (that appears within the 'Data Files' module). The naming convention for the consolidated output file(s) is as follows: "testCycleIdentifier_nameOfDataDefinitionOfDataset_dateTimestamp", where "dataTimestamp" is a unique identifier that is of the format "ddmmyyhhmmssSSS" [example: "31072018061327021" that represents 31st day of 7th month of year 2018 at 06 hrs 13 minutes 27 seconds and 21 milliseconds]. This is an optional parameter that you are NOT required to populate a JSON value for every row in the data file. Use the following JSON format when you populate data into the column of values for this attribute within the data files: Please include here the JSON request for the QaCONNECT REST API service: Example Input JSON: { Please note:
|
developer _notes |
Optional | This attribute can be optionally used by you to add a mnemonic kind of free form text that will help you easily remember the purpose behind each row in the data file that feeds into the Test Cycle Runner. |