@servicenow/sdk-build-plugins 2.0.1 → 2.1.1
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/dist/AttachmentPlugin.d.ts +8 -6
- package/dist/AttachmentPlugin.js +4 -2
- package/dist/AttachmentPlugin.js.map +1 -1
- package/dist/BusinessRulePlugin.d.ts +5 -31
- package/dist/BusinessRulePlugin.js +45 -72
- package/dist/BusinessRulePlugin.js.map +1 -1
- package/dist/CrossScopePrivilegePlugin.d.ts +14 -1
- package/dist/CrossScopePrivilegePlugin.js +36 -1
- package/dist/CrossScopePrivilegePlugin.js.map +1 -1
- package/dist/DefaultPlugin.d.ts +60 -57
- package/dist/DefaultPlugin.js +151 -146
- package/dist/DefaultPlugin.js.map +1 -1
- package/dist/HtmlTemplatePlugin.d.ts +21 -0
- package/dist/HtmlTemplatePlugin.js +52 -0
- package/dist/HtmlTemplatePlugin.js.map +1 -0
- package/dist/IdPlugin.d.ts +18 -8
- package/dist/IdPlugin.js +55 -28
- package/dist/IdPlugin.js.map +1 -1
- package/dist/JsonPlugin.d.ts +23 -0
- package/dist/JsonPlugin.js +74 -0
- package/dist/JsonPlugin.js.map +1 -0
- package/dist/ListPlugin.d.ts +7 -13
- package/dist/ListPlugin.js +32 -15
- package/dist/ListPlugin.js.map +1 -1
- package/dist/NowConfigPlugin.d.ts +45 -0
- package/dist/NowConfigPlugin.js +90 -0
- package/dist/NowConfigPlugin.js.map +1 -0
- package/dist/PackageJsonPlugin.d.ts +20 -0
- package/dist/PackageJsonPlugin.js +48 -0
- package/dist/PackageJsonPlugin.js.map +1 -0
- package/dist/PropertyPlugin.d.ts +9 -35
- package/dist/PropertyPlugin.js +53 -32
- package/dist/PropertyPlugin.js.map +1 -1
- package/dist/ScriptTemplatePlugin.d.ts +3 -20
- package/dist/ScriptTemplatePlugin.js +20 -138
- package/dist/ScriptTemplatePlugin.js.map +1 -1
- package/dist/ServerModulePlugin.d.ts +62 -0
- package/dist/ServerModulePlugin.js +231 -0
- package/dist/ServerModulePlugin.js.map +1 -0
- package/dist/UserPreferencePlugin.d.ts +4 -1
- package/dist/UserPreferencePlugin.js +12 -10
- package/dist/UserPreferencePlugin.js.map +1 -1
- package/dist/aclAndRole/AclPlugin.d.ts +41 -79
- package/dist/aclAndRole/AclPlugin.js +50 -72
- package/dist/aclAndRole/AclPlugin.js.map +1 -1
- package/dist/aclAndRole/RolePlugin.d.ts +27 -18
- package/dist/aclAndRole/RolePlugin.js +66 -41
- package/dist/aclAndRole/RolePlugin.js.map +1 -1
- package/dist/app/ApplicationMenuPlugin.d.ts +4 -2
- package/dist/app/ApplicationMenuPlugin.js +12 -7
- package/dist/app/ApplicationMenuPlugin.js.map +1 -1
- package/dist/atf/ATFComposer.js +324 -324
- package/dist/atf/TestPlugin.d.ts +12 -10
- package/dist/atf/TestPlugin.js +14 -12
- package/dist/atf/TestPlugin.js.map +1 -1
- package/dist/db/ColumnPlugins.d.ts +559 -97
- package/dist/db/ColumnPlugins.js +28 -24
- package/dist/db/ColumnPlugins.js.map +1 -1
- package/dist/db/DBUtils.d.ts +2 -0
- package/dist/db/DBUtils.js +27 -0
- package/dist/db/DBUtils.js.map +1 -0
- package/dist/db/DocumentationPlugin.d.ts +58 -0
- package/dist/db/DocumentationPlugin.js +248 -0
- package/dist/db/DocumentationPlugin.js.map +1 -0
- package/dist/db/RecordPlugin.d.ts +15 -13
- package/dist/db/RecordPlugin.js +74 -79
- package/dist/db/RecordPlugin.js.map +1 -1
- package/dist/db/TablePlugin.d.ts +38 -105
- package/dist/db/TablePlugin.js +205 -111
- package/dist/db/TablePlugin.js.map +1 -1
- package/dist/db/index.d.ts +2 -0
- package/dist/db/index.js +4 -1
- package/dist/db/index.js.map +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/scriptedRESTAPI/RESTDeserializationUtils.js +8 -6
- package/dist/scriptedRESTAPI/RESTDeserializationUtils.js.map +1 -1
- package/dist/scriptedRESTAPI/RESTSerializationUtils.js +7 -6
- package/dist/scriptedRESTAPI/RESTSerializationUtils.js.map +1 -1
- package/dist/scriptedRESTAPI/RestApiPlugin.d.ts +74 -85
- package/dist/scriptedRESTAPI/RestApiPlugin.js +71 -54
- package/dist/scriptedRESTAPI/RestApiPlugin.js.map +1 -1
- package/dist/scriptedRESTAPI/RestUtils.d.ts +2 -0
- package/dist/scriptedRESTAPI/RestUtils.js +37 -9
- package/dist/scriptedRESTAPI/RestUtils.js.map +1 -1
- package/dist/scripts/ClientScriptPlugin.d.ts +18 -16
- package/dist/scripts/ClientScriptPlugin.js +48 -45
- package/dist/scripts/ClientScriptPlugin.js.map +1 -1
- package/dist/scripts/scriptUtils.d.ts +0 -14
- package/dist/scripts/scriptUtils.js +0 -74
- package/dist/scripts/scriptUtils.js.map +1 -1
- package/dist/uxf/ExperiencePlugin.d.ts +31 -3
- package/dist/uxf/ExperiencePlugin.js +10 -4
- package/dist/uxf/ExperiencePlugin.js.map +1 -1
- package/dist/uxf/RoutesPlugin.d.ts +10 -3
- package/dist/uxf/RoutesPlugin.js +20 -14
- package/dist/uxf/RoutesPlugin.js.map +1 -1
- package/package.json +6 -6
- package/src/AttachmentPlugin.ts +10 -2
- package/src/BusinessRulePlugin.ts +79 -104
- package/src/CrossScopePrivilegePlugin.ts +65 -5
- package/src/DefaultPlugin.ts +181 -173
- package/src/HtmlTemplatePlugin.ts +31 -0
- package/src/IdPlugin.ts +59 -28
- package/src/JsonPlugin.ts +81 -0
- package/src/ListPlugin.ts +38 -19
- package/src/NowConfigPlugin.ts +72 -0
- package/src/PackageJsonPlugin.ts +24 -0
- package/src/PropertyPlugin.ts +60 -38
- package/src/ScriptTemplatePlugin.ts +22 -179
- package/src/ServerModulePlugin.ts +267 -0
- package/src/UserPreferencePlugin.ts +28 -19
- package/src/aclAndRole/AclPlugin.ts +78 -109
- package/src/aclAndRole/RolePlugin.ts +85 -58
- package/src/app/ApplicationMenuPlugin.ts +15 -11
- package/src/atf/ATFComposer.ts +1 -1
- package/src/atf/TestPlugin.ts +14 -12
- package/src/db/ColumnPlugins.ts +36 -37
- package/src/db/DBUtils.ts +36 -0
- package/src/db/DocumentationPlugin.ts +282 -0
- package/src/db/RecordPlugin.ts +96 -98
- package/src/db/TablePlugin.ts +278 -152
- package/src/db/index.ts +2 -0
- package/src/index.ts +7 -2
- package/src/scriptedRESTAPI/RESTDeserializationUtils.ts +15 -7
- package/src/scriptedRESTAPI/RESTSerializationUtils.ts +7 -6
- package/src/scriptedRESTAPI/RestApiPlugin.ts +85 -75
- package/src/scriptedRESTAPI/RestUtils.ts +44 -11
- package/src/scripts/ClientScriptPlugin.ts +64 -68
- package/src/scripts/scriptUtils.ts +0 -76
- package/src/uxf/ExperiencePlugin.ts +14 -13
- package/src/uxf/RoutesPlugin.ts +22 -27
package/dist/atf/ATFComposer.js
CHANGED
|
@@ -30,7 +30,7 @@ exports.getRecordId = getRecordId;
|
|
|
30
30
|
exports.isRecord = isRecord;
|
|
31
31
|
exports.isRole = isRole;
|
|
32
32
|
const db_1 = require("@servicenow/sdk-core/runtime/db");
|
|
33
|
-
const
|
|
33
|
+
const fluent_1 = require("@servicenow/sdk-core/runtime/fluent");
|
|
34
34
|
const atf = __importStar(require("@servicenow/sdk-core/runtime/atf"));
|
|
35
35
|
function getRecordIdIfRecord(value, context) {
|
|
36
36
|
if (isRecord(value)) {
|
|
@@ -363,7 +363,7 @@ class ATF {
|
|
|
363
363
|
// ========
|
|
364
364
|
openExistingRecord(inputs) {
|
|
365
365
|
const { table, view, recordId, formUI, selectedTabIndex } = inputs;
|
|
366
|
-
const stepConfig =
|
|
366
|
+
const stepConfig = fluent_1.StepConfig.OpenAnExistingRecord;
|
|
367
367
|
const stepRecord = this.createStepRecord({
|
|
368
368
|
name: 'Open an Existing Record',
|
|
369
369
|
stepConfig: stepConfig,
|
|
@@ -373,12 +373,12 @@ class ATF {
|
|
|
373
373
|
this.createVariable({
|
|
374
374
|
stepRecord,
|
|
375
375
|
stepConfig: stepConfig,
|
|
376
|
-
variable:
|
|
376
|
+
variable: fluent_1.Variables.OpenExistingRecord.Table,
|
|
377
377
|
startingValue: table,
|
|
378
378
|
});
|
|
379
379
|
this.createVariable({
|
|
380
380
|
stepRecord,
|
|
381
|
-
variable:
|
|
381
|
+
variable: fluent_1.Variables.OpenExistingRecord.FormUI,
|
|
382
382
|
stepConfig: stepConfig,
|
|
383
383
|
startingValue: formUI,
|
|
384
384
|
stringifier: (val) => this.parseFormUI(val),
|
|
@@ -386,32 +386,32 @@ class ATF {
|
|
|
386
386
|
this.createVariable({
|
|
387
387
|
stepRecord,
|
|
388
388
|
stepConfig,
|
|
389
|
-
variable:
|
|
389
|
+
variable: fluent_1.Variables.OpenExistingRecord.RecordPath,
|
|
390
390
|
startingValue: 'record',
|
|
391
391
|
});
|
|
392
392
|
this.createVariable({
|
|
393
393
|
stepRecord,
|
|
394
394
|
stepConfig,
|
|
395
|
-
variable:
|
|
395
|
+
variable: fluent_1.Variables.OpenExistingRecord.RecordId,
|
|
396
396
|
startingValue: recordId,
|
|
397
397
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
398
398
|
});
|
|
399
399
|
this.createVariable({
|
|
400
400
|
stepRecord,
|
|
401
401
|
stepConfig,
|
|
402
|
-
variable:
|
|
402
|
+
variable: fluent_1.Variables.OpenExistingRecord.View,
|
|
403
403
|
startingValue: view,
|
|
404
404
|
});
|
|
405
405
|
this.createVariable({
|
|
406
406
|
stepRecord,
|
|
407
407
|
stepConfig,
|
|
408
|
-
variable:
|
|
408
|
+
variable: fluent_1.Variables.OpenExistingRecord.SelectedTabIndex,
|
|
409
409
|
startingValue: selectedTabIndex,
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
412
|
openNewForm(inputs) {
|
|
413
413
|
const { table: tableName, view = '', formUI } = inputs;
|
|
414
|
-
const stepConfig =
|
|
414
|
+
const stepConfig = fluent_1.StepConfig.OpenANewForm;
|
|
415
415
|
const stepRecord = this.createStepRecord({
|
|
416
416
|
name: 'Open a New form',
|
|
417
417
|
stepConfig: stepConfig,
|
|
@@ -421,26 +421,26 @@ class ATF {
|
|
|
421
421
|
this.createVariable({
|
|
422
422
|
stepRecord,
|
|
423
423
|
stepConfig,
|
|
424
|
-
variable:
|
|
424
|
+
variable: fluent_1.Variables.OpenNewForm.FormUI,
|
|
425
425
|
startingValue: formUI,
|
|
426
426
|
stringifier: (val) => this.parseFormUI(val),
|
|
427
427
|
});
|
|
428
428
|
this.createVariable({
|
|
429
429
|
stepRecord,
|
|
430
430
|
stepConfig,
|
|
431
|
-
variable:
|
|
431
|
+
variable: fluent_1.Variables.OpenNewForm.Table,
|
|
432
432
|
startingValue: tableName,
|
|
433
433
|
});
|
|
434
434
|
this.createVariable({
|
|
435
435
|
stepRecord,
|
|
436
436
|
stepConfig,
|
|
437
|
-
variable:
|
|
437
|
+
variable: fluent_1.Variables.OpenNewForm.View,
|
|
438
438
|
startingValue: view,
|
|
439
439
|
});
|
|
440
440
|
}
|
|
441
441
|
fieldValueValidation(inputs) {
|
|
442
442
|
const { table: tableName, conditions, formUI } = inputs;
|
|
443
|
-
const stepConfig =
|
|
443
|
+
const stepConfig = fluent_1.StepConfig.FieldValueValidation;
|
|
444
444
|
const stepRecord = this.createStepRecord({
|
|
445
445
|
name: 'Field Values Validation',
|
|
446
446
|
description: `Validates field values on the current form.`,
|
|
@@ -450,26 +450,26 @@ class ATF {
|
|
|
450
450
|
this.createVariable({
|
|
451
451
|
stepRecord,
|
|
452
452
|
stepConfig,
|
|
453
|
-
variable:
|
|
453
|
+
variable: fluent_1.Variables.FieldValueValidation.Table,
|
|
454
454
|
startingValue: tableName,
|
|
455
455
|
});
|
|
456
456
|
this.createVariable({
|
|
457
457
|
stepRecord,
|
|
458
458
|
stepConfig,
|
|
459
|
-
variable:
|
|
459
|
+
variable: fluent_1.Variables.FieldValueValidation.FormUI,
|
|
460
460
|
startingValue: formUI,
|
|
461
461
|
stringifier: (val) => this.parseFormUI(val),
|
|
462
462
|
});
|
|
463
463
|
this.createVariable({
|
|
464
464
|
stepRecord,
|
|
465
465
|
stepConfig,
|
|
466
|
-
variable:
|
|
466
|
+
variable: fluent_1.Variables.FieldValueValidation.Conditions,
|
|
467
467
|
startingValue: conditions,
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
470
|
setFieldValue(inputs) {
|
|
471
471
|
const { table, fieldValues, formUI } = inputs;
|
|
472
|
-
const stepConfig =
|
|
472
|
+
const stepConfig = fluent_1.StepConfig.SetFieldValues;
|
|
473
473
|
const stepRecord = this.createStepRecord({
|
|
474
474
|
name: 'Set Field Values',
|
|
475
475
|
description: `Set field values on a form.`,
|
|
@@ -479,27 +479,27 @@ class ATF {
|
|
|
479
479
|
this.createVariable({
|
|
480
480
|
stepRecord,
|
|
481
481
|
stepConfig,
|
|
482
|
-
variable:
|
|
482
|
+
variable: fluent_1.Variables.SetFieldValues.FormUI,
|
|
483
483
|
startingValue: formUI,
|
|
484
484
|
stringifier: (val) => this.parseFormUI(val),
|
|
485
485
|
});
|
|
486
486
|
this.createVariable({
|
|
487
487
|
stepRecord,
|
|
488
488
|
stepConfig,
|
|
489
|
-
variable:
|
|
489
|
+
variable: fluent_1.Variables.SetFieldValues.Table,
|
|
490
490
|
startingValue: table,
|
|
491
491
|
});
|
|
492
492
|
this.createVariable({
|
|
493
493
|
stepRecord,
|
|
494
494
|
stepConfig,
|
|
495
|
-
variable:
|
|
495
|
+
variable: fluent_1.Variables.SetFieldValues.FieldValues,
|
|
496
496
|
startingValue: fieldValues,
|
|
497
497
|
stringifier: (val) => this.fieldValuesToQuery(val),
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
500
|
submitForm(inputs) {
|
|
501
501
|
const { assertType, formUI } = inputs;
|
|
502
|
-
const stepConfig =
|
|
502
|
+
const stepConfig = fluent_1.StepConfig.SubmitAForm;
|
|
503
503
|
const stepRecord = this.createStepRecord({
|
|
504
504
|
name: 'Submit a Form',
|
|
505
505
|
stepConfig,
|
|
@@ -508,20 +508,20 @@ class ATF {
|
|
|
508
508
|
this.createVariable({
|
|
509
509
|
stepRecord,
|
|
510
510
|
stepConfig,
|
|
511
|
-
variable:
|
|
511
|
+
variable: fluent_1.Variables.SubmitForm.FormUI,
|
|
512
512
|
startingValue: formUI,
|
|
513
513
|
stringifier: (val) => this.parseFormUI(val),
|
|
514
514
|
});
|
|
515
515
|
this.createVariable({
|
|
516
516
|
stepRecord,
|
|
517
517
|
stepConfig,
|
|
518
|
-
variable:
|
|
518
|
+
variable: fluent_1.Variables.SubmitForm.AssertType,
|
|
519
519
|
startingValue: assertType,
|
|
520
520
|
});
|
|
521
521
|
}
|
|
522
522
|
validateOutboundEmailGeneratedByNotification(inputs) {
|
|
523
523
|
const { sourceNotification, conditions } = inputs;
|
|
524
|
-
const stepConfig =
|
|
524
|
+
const stepConfig = fluent_1.StepConfig.ValidateOutboundEmailGeneratedByNotification;
|
|
525
525
|
const stepRecord = this.createStepRecord({
|
|
526
526
|
name: 'Validate Outbound Email Generated by Notification',
|
|
527
527
|
stepConfig,
|
|
@@ -531,27 +531,27 @@ class ATF {
|
|
|
531
531
|
this.createVariable({
|
|
532
532
|
stepRecord,
|
|
533
533
|
stepConfig,
|
|
534
|
-
variable:
|
|
534
|
+
variable: fluent_1.Variables.ValidateOutboundEmailGeneratedByNotification.Table,
|
|
535
535
|
startingValue: 'sys_email',
|
|
536
536
|
});
|
|
537
537
|
this.createVariable({
|
|
538
538
|
stepConfig,
|
|
539
539
|
stepRecord,
|
|
540
|
-
variable:
|
|
540
|
+
variable: fluent_1.Variables.ValidateOutboundEmailGeneratedByNotification.SourceNotification,
|
|
541
541
|
startingValue: sourceNotification,
|
|
542
542
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
543
543
|
});
|
|
544
544
|
this.createVariable({
|
|
545
545
|
stepRecord,
|
|
546
546
|
stepConfig,
|
|
547
|
-
variable:
|
|
547
|
+
variable: fluent_1.Variables.ValidateOutboundEmailGeneratedByNotification.Conditions,
|
|
548
548
|
startingValue: conditions,
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
551
|
recordUpdate(inputs) {
|
|
552
552
|
const { table, assertType, enforceSecurity, recordId, fieldValues } = inputs;
|
|
553
553
|
const assertValue = assertType;
|
|
554
|
-
const stepConfig =
|
|
554
|
+
const stepConfig = fluent_1.StepConfig.RecordUpdate;
|
|
555
555
|
const stepRecord = this.createStepRecord({
|
|
556
556
|
name: 'Record Update',
|
|
557
557
|
stepConfig,
|
|
@@ -561,39 +561,39 @@ class ATF {
|
|
|
561
561
|
this.createVariable({
|
|
562
562
|
stepConfig,
|
|
563
563
|
stepRecord,
|
|
564
|
-
variable:
|
|
564
|
+
variable: fluent_1.Variables.RecordUpdate.EnforceSecurity,
|
|
565
565
|
startingValue: enforceSecurity,
|
|
566
566
|
});
|
|
567
567
|
this.createVariable({
|
|
568
568
|
stepConfig,
|
|
569
569
|
stepRecord,
|
|
570
|
-
variable:
|
|
570
|
+
variable: fluent_1.Variables.RecordUpdate.AssertType,
|
|
571
571
|
startingValue: assertValue,
|
|
572
572
|
});
|
|
573
573
|
this.createVariable({
|
|
574
574
|
stepConfig,
|
|
575
575
|
stepRecord,
|
|
576
|
-
variable:
|
|
576
|
+
variable: fluent_1.Variables.RecordUpdate.RecordID,
|
|
577
577
|
startingValue: recordId,
|
|
578
578
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
579
579
|
});
|
|
580
580
|
this.createVariable({
|
|
581
581
|
stepConfig,
|
|
582
582
|
stepRecord,
|
|
583
|
-
variable:
|
|
583
|
+
variable: fluent_1.Variables.RecordUpdate.FieldValues,
|
|
584
584
|
startingValue: fieldValues,
|
|
585
585
|
stringifier: (val) => this.fieldValuesToQuery(val),
|
|
586
586
|
});
|
|
587
587
|
this.createVariable({
|
|
588
588
|
stepConfig,
|
|
589
589
|
stepRecord,
|
|
590
|
-
variable:
|
|
590
|
+
variable: fluent_1.Variables.RecordUpdate.Table,
|
|
591
591
|
startingValue: table,
|
|
592
592
|
});
|
|
593
593
|
}
|
|
594
594
|
generateRandomString(inputs) {
|
|
595
595
|
const { length } = inputs;
|
|
596
|
-
const stepConfig =
|
|
596
|
+
const stepConfig = fluent_1.StepConfig.GenerateRandomString;
|
|
597
597
|
const stepRecord = this.createStepRecord({
|
|
598
598
|
name: 'Generate Random String',
|
|
599
599
|
stepConfig,
|
|
@@ -602,13 +602,13 @@ class ATF {
|
|
|
602
602
|
this.createVariable({
|
|
603
603
|
stepConfig,
|
|
604
604
|
stepRecord,
|
|
605
|
-
variable:
|
|
605
|
+
variable: fluent_1.Variables.GenerateARandomString.Length,
|
|
606
606
|
startingValue: length,
|
|
607
607
|
});
|
|
608
608
|
}
|
|
609
609
|
uiActionVisibility(inputs) {
|
|
610
610
|
const { table, formUI, visible, notVisible } = inputs;
|
|
611
|
-
const stepConfig =
|
|
611
|
+
const stepConfig = fluent_1.StepConfig.UIActionVisibility;
|
|
612
612
|
const stepRecord = this.createStepRecord({
|
|
613
613
|
name: 'UI Action Visibility',
|
|
614
614
|
stepConfig,
|
|
@@ -618,34 +618,34 @@ class ATF {
|
|
|
618
618
|
this.createVariable({
|
|
619
619
|
stepConfig,
|
|
620
620
|
stepRecord,
|
|
621
|
-
variable:
|
|
621
|
+
variable: fluent_1.Variables.UIActionVisibility.Table,
|
|
622
622
|
startingValue: table,
|
|
623
623
|
});
|
|
624
624
|
this.createVariable({
|
|
625
625
|
stepConfig,
|
|
626
626
|
stepRecord,
|
|
627
|
-
variable:
|
|
627
|
+
variable: fluent_1.Variables.UIActionVisibility.FormUI,
|
|
628
628
|
startingValue: formUI,
|
|
629
629
|
stringifier: (val) => this.parseFormUI(val),
|
|
630
630
|
});
|
|
631
631
|
this.createVariable({
|
|
632
632
|
stepConfig,
|
|
633
633
|
stepRecord,
|
|
634
|
-
variable:
|
|
634
|
+
variable: fluent_1.Variables.UIActionVisibility.Visible,
|
|
635
635
|
startingValue: visible,
|
|
636
636
|
stringifier: (value) => this.recordListToString(value),
|
|
637
637
|
});
|
|
638
638
|
this.createVariable({
|
|
639
639
|
stepConfig,
|
|
640
640
|
stepRecord,
|
|
641
|
-
variable:
|
|
641
|
+
variable: fluent_1.Variables.UIActionVisibility.NotVisible,
|
|
642
642
|
startingValue: notVisible,
|
|
643
643
|
stringifier: (value) => this.recordListToString(value),
|
|
644
644
|
});
|
|
645
645
|
}
|
|
646
646
|
validatePriceAndRecurringPrice(inputs) {
|
|
647
647
|
const { price, recurringPrice, frequency } = inputs;
|
|
648
|
-
const stepConfig =
|
|
648
|
+
const stepConfig = fluent_1.StepConfig.ValidatePriceAndRecurringPrice;
|
|
649
649
|
const stepRecord = this.createStepRecord({
|
|
650
650
|
name: 'Validate Price and Recurring Price',
|
|
651
651
|
stepConfig,
|
|
@@ -654,25 +654,25 @@ class ATF {
|
|
|
654
654
|
this.createVariable({
|
|
655
655
|
stepConfig,
|
|
656
656
|
stepRecord,
|
|
657
|
-
variable:
|
|
657
|
+
variable: fluent_1.Variables.ValidatePriceAndRecurringPrice.Price,
|
|
658
658
|
startingValue: price,
|
|
659
659
|
});
|
|
660
660
|
this.createVariable({
|
|
661
661
|
stepConfig,
|
|
662
662
|
stepRecord,
|
|
663
|
-
variable:
|
|
663
|
+
variable: fluent_1.Variables.ValidatePriceAndRecurringPrice.RecurringPrice,
|
|
664
664
|
startingValue: recurringPrice,
|
|
665
665
|
});
|
|
666
666
|
this.createVariable({
|
|
667
667
|
stepConfig,
|
|
668
668
|
stepRecord,
|
|
669
|
-
variable:
|
|
669
|
+
variable: fluent_1.Variables.ValidatePriceAndRecurringPrice.RecurringFrequency,
|
|
670
670
|
startingValue: frequency,
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
673
|
assertResponseJSONPayloadIsValid(inputs) {
|
|
674
674
|
inputs;
|
|
675
|
-
const stepConfig =
|
|
675
|
+
const stepConfig = fluent_1.StepConfig.AssertResponseJSONPayloadIsValid;
|
|
676
676
|
this.createStepRecord({
|
|
677
677
|
name: 'Assert Response JSON Payload Is Valid',
|
|
678
678
|
stepConfig,
|
|
@@ -683,7 +683,7 @@ class ATF {
|
|
|
683
683
|
const { formUI, uiPage, assertType, assertTimeout, button } = inputs;
|
|
684
684
|
const assertTimeoutStr = this.secondsToDuration(assertTimeout);
|
|
685
685
|
const assertValue = assertType;
|
|
686
|
-
const stepConfig =
|
|
686
|
+
const stepConfig = fluent_1.StepConfig.ClickModalButton;
|
|
687
687
|
const stepRecord = this.createStepRecord({
|
|
688
688
|
name: 'Click Modal Button',
|
|
689
689
|
stepConfig,
|
|
@@ -692,53 +692,53 @@ class ATF {
|
|
|
692
692
|
this.createVariable({
|
|
693
693
|
stepConfig,
|
|
694
694
|
stepRecord,
|
|
695
|
-
variable:
|
|
695
|
+
variable: fluent_1.Variables.ClickModalButton.FormUI,
|
|
696
696
|
startingValue: formUI,
|
|
697
697
|
stringifier: (val) => this.parseFormUI(val),
|
|
698
698
|
});
|
|
699
699
|
this.createVariable({
|
|
700
700
|
stepConfig,
|
|
701
701
|
stepRecord,
|
|
702
|
-
variable:
|
|
702
|
+
variable: fluent_1.Variables.ClickModalButton.UIPage,
|
|
703
703
|
startingValue: uiPage,
|
|
704
704
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
705
705
|
});
|
|
706
706
|
this.createVariable({
|
|
707
707
|
stepConfig,
|
|
708
708
|
stepRecord,
|
|
709
|
-
variable:
|
|
709
|
+
variable: fluent_1.Variables.ClickModalButton.Assert,
|
|
710
710
|
startingValue: assertValue,
|
|
711
711
|
});
|
|
712
712
|
this.createVariable({
|
|
713
713
|
stepConfig,
|
|
714
714
|
stepRecord,
|
|
715
|
-
variable:
|
|
715
|
+
variable: fluent_1.Variables.ClickModalButton.Button,
|
|
716
716
|
startingValue: button,
|
|
717
717
|
});
|
|
718
718
|
// TODO: ModalAction/ModalVAlues is sketchy cause the user does not set them explicitly in atf so idk if these values can be different
|
|
719
719
|
this.createVariable({
|
|
720
720
|
stepConfig,
|
|
721
721
|
stepRecord,
|
|
722
|
-
variable:
|
|
722
|
+
variable: fluent_1.Variables.ClickModalButton.ModalAction,
|
|
723
723
|
startingValue: 'confirm',
|
|
724
724
|
});
|
|
725
725
|
this.createVariable({
|
|
726
726
|
stepConfig,
|
|
727
727
|
stepRecord,
|
|
728
|
-
variable:
|
|
728
|
+
variable: fluent_1.Variables.ClickModalButton.ModalValues,
|
|
729
729
|
startingValue: '',
|
|
730
730
|
});
|
|
731
731
|
this.createVariable({
|
|
732
732
|
stepConfig,
|
|
733
733
|
stepRecord,
|
|
734
|
-
variable:
|
|
734
|
+
variable: fluent_1.Variables.ClickModalButton.AssertionTimeout,
|
|
735
735
|
startingValue: assertTimeoutStr,
|
|
736
736
|
});
|
|
737
737
|
}
|
|
738
738
|
addItemToShoppingCart(inputs) {
|
|
739
739
|
const { assert } = inputs;
|
|
740
740
|
const assertValue = assert;
|
|
741
|
-
const stepConfig =
|
|
741
|
+
const stepConfig = fluent_1.StepConfig.AddItemToShoppingCart;
|
|
742
742
|
const stepRecord = this.createStepRecord({
|
|
743
743
|
name: 'Add Item to Shopping Cart',
|
|
744
744
|
stepConfig,
|
|
@@ -747,7 +747,7 @@ class ATF {
|
|
|
747
747
|
this.createVariable({
|
|
748
748
|
stepConfig,
|
|
749
749
|
stepRecord,
|
|
750
|
-
variable:
|
|
750
|
+
variable: fluent_1.Variables.AddItemToShoppingCart.Assert,
|
|
751
751
|
startingValue: assertValue,
|
|
752
752
|
});
|
|
753
753
|
}
|
|
@@ -756,7 +756,7 @@ class ATF {
|
|
|
756
756
|
const navigatorValue = navigator;
|
|
757
757
|
const assertNotVisibleValue = assertNotVisible;
|
|
758
758
|
const assertVisibleValue = assertVisible[assertVisible];
|
|
759
|
-
const stepConfig =
|
|
759
|
+
const stepConfig = fluent_1.StepConfig.ModuleVisibility;
|
|
760
760
|
const stepRecord = this.createStepRecord({
|
|
761
761
|
name: 'Module Visibility',
|
|
762
762
|
stepConfig,
|
|
@@ -765,32 +765,32 @@ class ATF {
|
|
|
765
765
|
this.createVariable({
|
|
766
766
|
stepConfig,
|
|
767
767
|
stepRecord,
|
|
768
|
-
variable:
|
|
768
|
+
variable: fluent_1.Variables.ModuleVisibility.Navigator,
|
|
769
769
|
startingValue: navigatorValue,
|
|
770
770
|
});
|
|
771
771
|
this.createVariable({
|
|
772
772
|
stepConfig,
|
|
773
773
|
stepRecord,
|
|
774
|
-
variable:
|
|
774
|
+
variable: fluent_1.Variables.ModuleVisibility.NotVisibleAssert,
|
|
775
775
|
startingValue: assertNotVisibleValue,
|
|
776
776
|
});
|
|
777
777
|
this.createVariable({
|
|
778
778
|
stepConfig,
|
|
779
779
|
stepRecord,
|
|
780
|
-
variable:
|
|
780
|
+
variable: fluent_1.Variables.ModuleVisibility.VisibleAssert,
|
|
781
781
|
startingValue: assertVisibleValue,
|
|
782
782
|
});
|
|
783
783
|
this.createVariable({
|
|
784
784
|
stepConfig,
|
|
785
785
|
stepRecord,
|
|
786
|
-
variable:
|
|
786
|
+
variable: fluent_1.Variables.ModuleVisibility.VisibleModules,
|
|
787
787
|
startingValue: visibleModules,
|
|
788
788
|
stringifier: (val) => this.recordListToString(val),
|
|
789
789
|
});
|
|
790
790
|
this.createVariable({
|
|
791
791
|
stepConfig,
|
|
792
792
|
stepRecord,
|
|
793
|
-
variable:
|
|
793
|
+
variable: fluent_1.Variables.ModuleVisibility.NotVisibleModules,
|
|
794
794
|
startingValue: notVisibleModules,
|
|
795
795
|
stringifier: (val) => this.recordListToString(val),
|
|
796
796
|
});
|
|
@@ -798,7 +798,7 @@ class ATF {
|
|
|
798
798
|
impersonate(inputs) {
|
|
799
799
|
const { user } = inputs;
|
|
800
800
|
const descriptionStr = 'Impersonates a specified user in the current session for the duration of the test or until another user is impersonated.';
|
|
801
|
-
const stepConfig =
|
|
801
|
+
const stepConfig = fluent_1.StepConfig.Impersonate;
|
|
802
802
|
const stepRecord = this.createStepRecord({
|
|
803
803
|
name: 'Impersonate',
|
|
804
804
|
stepConfig,
|
|
@@ -807,7 +807,7 @@ class ATF {
|
|
|
807
807
|
this.createVariable({
|
|
808
808
|
stepRecord,
|
|
809
809
|
stepConfig,
|
|
810
|
-
variable:
|
|
810
|
+
variable: fluent_1.Variables.Impersonate.User,
|
|
811
811
|
startingValue: user,
|
|
812
812
|
stringifier: (str) => this.extractSysIdIfRecord(str),
|
|
813
813
|
});
|
|
@@ -815,7 +815,7 @@ class ATF {
|
|
|
815
815
|
openRecordProducer(inputs) {
|
|
816
816
|
const { catalogItem } = inputs;
|
|
817
817
|
const descriptionStr = 'Opens a Record Producer.';
|
|
818
|
-
const stepConfig =
|
|
818
|
+
const stepConfig = fluent_1.StepConfig.OpenRecordProducer;
|
|
819
819
|
const stepRecord = this.createStepRecord({
|
|
820
820
|
name: 'Open Record Producer',
|
|
821
821
|
stepConfig,
|
|
@@ -824,14 +824,14 @@ class ATF {
|
|
|
824
824
|
this.createVariable({
|
|
825
825
|
stepRecord,
|
|
826
826
|
stepConfig,
|
|
827
|
-
variable:
|
|
827
|
+
variable: fluent_1.Variables.OpenRecordProducer.CatalogItem,
|
|
828
828
|
startingValue: catalogItem,
|
|
829
829
|
stringifier: (str) => this.extractSysIdIfRecord(str),
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
832
|
recordValidation(inputs) {
|
|
833
833
|
const { enforceSecurity, assertType, recordId, fieldValues, table } = inputs;
|
|
834
|
-
const stepConfig =
|
|
834
|
+
const stepConfig = fluent_1.StepConfig.RecordValidation;
|
|
835
835
|
const stepRecord = this.createStepRecord({
|
|
836
836
|
name: 'Record Validation',
|
|
837
837
|
description: 'Validate a record',
|
|
@@ -841,38 +841,38 @@ class ATF {
|
|
|
841
841
|
this.createVariable({
|
|
842
842
|
stepRecord,
|
|
843
843
|
stepConfig,
|
|
844
|
-
variable:
|
|
844
|
+
variable: fluent_1.Variables.RecordValidation.Table,
|
|
845
845
|
startingValue: table,
|
|
846
846
|
});
|
|
847
847
|
this.createVariable({
|
|
848
848
|
stepRecord,
|
|
849
849
|
stepConfig,
|
|
850
|
-
variable:
|
|
850
|
+
variable: fluent_1.Variables.RecordValidation.EnforceSecurity,
|
|
851
851
|
startingValue: enforceSecurity,
|
|
852
852
|
});
|
|
853
853
|
this.createVariable({
|
|
854
854
|
stepRecord,
|
|
855
855
|
stepConfig,
|
|
856
|
-
variable:
|
|
856
|
+
variable: fluent_1.Variables.RecordValidation.AssertType,
|
|
857
857
|
startingValue: assertType,
|
|
858
858
|
});
|
|
859
859
|
this.createVariable({
|
|
860
860
|
stepRecord,
|
|
861
861
|
stepConfig,
|
|
862
|
-
variable:
|
|
862
|
+
variable: fluent_1.Variables.RecordValidation.RecordId,
|
|
863
863
|
startingValue: recordId,
|
|
864
864
|
stringifier: (str) => this.extractSysIdIfRecord(str),
|
|
865
865
|
});
|
|
866
866
|
this.createVariable({
|
|
867
867
|
stepRecord,
|
|
868
868
|
stepConfig,
|
|
869
|
-
variable:
|
|
869
|
+
variable: fluent_1.Variables.RecordValidation.FieldValues,
|
|
870
870
|
startingValue: fieldValues,
|
|
871
871
|
});
|
|
872
872
|
}
|
|
873
873
|
setCatalogItemQuantity(inputs) {
|
|
874
874
|
const { quantity } = inputs;
|
|
875
|
-
const stepConfig =
|
|
875
|
+
const stepConfig = fluent_1.StepConfig.SetCatalogItemQuantity;
|
|
876
876
|
const descriptionStr = 'Set quantity to ' + quantity.toString();
|
|
877
877
|
const stepRecord = this.createStepRecord({
|
|
878
878
|
name: 'Set Catalog Item Quantity',
|
|
@@ -882,13 +882,13 @@ class ATF {
|
|
|
882
882
|
this.createVariable({
|
|
883
883
|
stepConfig,
|
|
884
884
|
stepRecord,
|
|
885
|
-
variable:
|
|
885
|
+
variable: fluent_1.Variables.SetCatalogItemQuantity.Quantity,
|
|
886
886
|
startingValue: quantity,
|
|
887
887
|
});
|
|
888
888
|
}
|
|
889
889
|
orderCatalogItem(inputs) {
|
|
890
890
|
const { assertType } = inputs;
|
|
891
|
-
const stepConfig =
|
|
891
|
+
const stepConfig = fluent_1.StepConfig.OrderCatalogItem;
|
|
892
892
|
let descriptionStr = 'Order item and confirm that ordering is canceled in browser';
|
|
893
893
|
if (assertType === 'form_submitted_to_server') {
|
|
894
894
|
descriptionStr = 'Order item and confirm that ordering is successful';
|
|
@@ -901,13 +901,13 @@ class ATF {
|
|
|
901
901
|
this.createVariable({
|
|
902
902
|
stepConfig,
|
|
903
903
|
stepRecord,
|
|
904
|
-
variable:
|
|
904
|
+
variable: fluent_1.Variables.OrderCatalogItem.AssertType,
|
|
905
905
|
startingValue: assertType,
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
908
|
clickDeclarativeAction(inputs) {
|
|
909
909
|
const { formUI, declarativeAction, assertType, table } = inputs;
|
|
910
|
-
const stepConfig =
|
|
910
|
+
const stepConfig = fluent_1.StepConfig.ClickADeclarativeAction;
|
|
911
911
|
const descriptionStr = 'Click a declarative action and confirm any relevant form or page reaction';
|
|
912
912
|
const stepRecord = this.createStepRecord({
|
|
913
913
|
name: 'Click a Declarative Action',
|
|
@@ -918,33 +918,33 @@ class ATF {
|
|
|
918
918
|
this.createVariable({
|
|
919
919
|
stepConfig,
|
|
920
920
|
stepRecord,
|
|
921
|
-
variable:
|
|
921
|
+
variable: fluent_1.Variables.ClickADeclarativeAction.FormUI,
|
|
922
922
|
startingValue: formUI,
|
|
923
923
|
stringifier: (str) => this.parseFormUI(str),
|
|
924
924
|
});
|
|
925
925
|
this.createVariable({
|
|
926
926
|
stepRecord,
|
|
927
927
|
stepConfig,
|
|
928
|
-
variable:
|
|
928
|
+
variable: fluent_1.Variables.ClickADeclarativeAction.Table,
|
|
929
929
|
startingValue: table,
|
|
930
930
|
});
|
|
931
931
|
this.createVariable({
|
|
932
932
|
stepConfig,
|
|
933
933
|
stepRecord,
|
|
934
|
-
variable:
|
|
934
|
+
variable: fluent_1.Variables.ClickADeclarativeAction.DeclarativeAction,
|
|
935
935
|
startingValue: declarativeAction,
|
|
936
936
|
stringifier: (str) => this.extractSysIdIfRecord(str),
|
|
937
937
|
});
|
|
938
938
|
this.createVariable({
|
|
939
939
|
stepConfig,
|
|
940
940
|
stepRecord,
|
|
941
|
-
variable:
|
|
941
|
+
variable: fluent_1.Variables.ClickADeclarativeAction.AssertType,
|
|
942
942
|
startingValue: assertType,
|
|
943
943
|
});
|
|
944
944
|
}
|
|
945
945
|
assertXMLResponsePayloadElement(inputs) {
|
|
946
946
|
const { elementPath, responseOperation, elementValue } = inputs;
|
|
947
|
-
const stepConfig =
|
|
947
|
+
const stepConfig = fluent_1.StepConfig.AssertXMLResponsePayloadElement;
|
|
948
948
|
const descriptionStr = 'Assess the XML Response payload element';
|
|
949
949
|
const stepRecord = this.createStepRecord({
|
|
950
950
|
name: 'Assert XML Response Payload Element',
|
|
@@ -954,25 +954,25 @@ class ATF {
|
|
|
954
954
|
this.createVariable({
|
|
955
955
|
stepConfig,
|
|
956
956
|
stepRecord,
|
|
957
|
-
variable:
|
|
957
|
+
variable: fluent_1.Variables.AssertXMLResponsePayloadElement.ElementPath,
|
|
958
958
|
startingValue: elementPath,
|
|
959
959
|
});
|
|
960
960
|
this.createVariable({
|
|
961
961
|
stepConfig,
|
|
962
962
|
stepRecord,
|
|
963
|
-
variable:
|
|
963
|
+
variable: fluent_1.Variables.AssertXMLResponsePayloadElement.ResponseOperation,
|
|
964
964
|
startingValue: responseOperation,
|
|
965
965
|
});
|
|
966
966
|
this.createVariable({
|
|
967
967
|
stepConfig,
|
|
968
968
|
stepRecord,
|
|
969
|
-
variable:
|
|
969
|
+
variable: fluent_1.Variables.AssertXMLResponsePayloadElement.ElementValue,
|
|
970
970
|
startingValue: elementValue,
|
|
971
971
|
});
|
|
972
972
|
}
|
|
973
973
|
responsiveDashboardVisibility(inputs) {
|
|
974
974
|
const { dashboard, assertType } = inputs;
|
|
975
|
-
const stepConfig =
|
|
975
|
+
const stepConfig = fluent_1.StepConfig.ResponsiveDashboardVisibility;
|
|
976
976
|
const stepRecord = this.createStepRecord({
|
|
977
977
|
stepConfig,
|
|
978
978
|
name: 'Responsive Dashboard Visibility',
|
|
@@ -981,20 +981,20 @@ class ATF {
|
|
|
981
981
|
this.createVariable({
|
|
982
982
|
stepConfig,
|
|
983
983
|
stepRecord,
|
|
984
|
-
variable:
|
|
984
|
+
variable: fluent_1.Variables.ResponsiveDashboardVisibility.Dashboard,
|
|
985
985
|
startingValue: dashboard,
|
|
986
986
|
stringifier: (str) => this.extractSysIdIfRecord(str),
|
|
987
987
|
});
|
|
988
988
|
this.createVariable({
|
|
989
989
|
stepConfig,
|
|
990
990
|
stepRecord,
|
|
991
|
-
variable:
|
|
991
|
+
variable: fluent_1.Variables.ResponsiveDashboardVisibility.AssertType,
|
|
992
992
|
startingValue: assertType,
|
|
993
993
|
});
|
|
994
994
|
}
|
|
995
995
|
generateInboundReplyEmail(inputs) {
|
|
996
996
|
const { targetRecord, subject, body, from, to, targetTable } = inputs;
|
|
997
|
-
const stepConfig =
|
|
997
|
+
const stepConfig = fluent_1.StepConfig.GenerateInboundReplyEmail;
|
|
998
998
|
const stepRecord = this.createStepRecord({
|
|
999
999
|
stepConfig,
|
|
1000
1000
|
name: 'Generate Inbound Reply Email',
|
|
@@ -1003,44 +1003,44 @@ class ATF {
|
|
|
1003
1003
|
this.createVariable({
|
|
1004
1004
|
stepConfig,
|
|
1005
1005
|
stepRecord,
|
|
1006
|
-
variable:
|
|
1006
|
+
variable: fluent_1.Variables.GenerateInboundReplyEmail.TargetRecord,
|
|
1007
1007
|
startingValue: targetRecord,
|
|
1008
1008
|
stringifier: (str) => this.extractSysIdIfRecord(str),
|
|
1009
1009
|
});
|
|
1010
1010
|
this.createVariable({
|
|
1011
1011
|
stepConfig,
|
|
1012
1012
|
stepRecord,
|
|
1013
|
-
variable:
|
|
1013
|
+
variable: fluent_1.Variables.GenerateInboundReplyEmail.TargetTable,
|
|
1014
1014
|
startingValue: targetTable,
|
|
1015
1015
|
});
|
|
1016
1016
|
this.createVariable({
|
|
1017
1017
|
stepConfig,
|
|
1018
1018
|
stepRecord,
|
|
1019
|
-
variable:
|
|
1019
|
+
variable: fluent_1.Variables.GenerateInboundReplyEmail.Body,
|
|
1020
1020
|
startingValue: body,
|
|
1021
1021
|
});
|
|
1022
1022
|
this.createVariable({
|
|
1023
1023
|
stepConfig,
|
|
1024
1024
|
stepRecord,
|
|
1025
|
-
variable:
|
|
1025
|
+
variable: fluent_1.Variables.GenerateInboundReplyEmail.From,
|
|
1026
1026
|
startingValue: from,
|
|
1027
1027
|
});
|
|
1028
1028
|
this.createVariable({
|
|
1029
1029
|
stepConfig,
|
|
1030
1030
|
stepRecord,
|
|
1031
|
-
variable:
|
|
1031
|
+
variable: fluent_1.Variables.GenerateInboundReplyEmail.Subject,
|
|
1032
1032
|
startingValue: subject,
|
|
1033
1033
|
});
|
|
1034
1034
|
this.createVariable({
|
|
1035
1035
|
stepConfig,
|
|
1036
1036
|
stepRecord,
|
|
1037
|
-
variable:
|
|
1037
|
+
variable: fluent_1.Variables.GenerateInboundReplyEmail.To,
|
|
1038
1038
|
startingValue: to,
|
|
1039
1039
|
});
|
|
1040
1040
|
}
|
|
1041
1041
|
assertStatusCodeName(inputs) {
|
|
1042
1042
|
const { responseOperation, codeName } = inputs;
|
|
1043
|
-
const stepConfig =
|
|
1043
|
+
const stepConfig = fluent_1.StepConfig.AssertStatusCodeName;
|
|
1044
1044
|
const stepRecord = this.createStepRecord({
|
|
1045
1045
|
stepConfig,
|
|
1046
1046
|
name: 'Assert Status Code Name',
|
|
@@ -1049,19 +1049,19 @@ class ATF {
|
|
|
1049
1049
|
this.createVariable({
|
|
1050
1050
|
stepConfig,
|
|
1051
1051
|
stepRecord,
|
|
1052
|
-
variable:
|
|
1052
|
+
variable: fluent_1.Variables.AssertStatusCodeName.ResponseOperation,
|
|
1053
1053
|
startingValue: responseOperation,
|
|
1054
1054
|
});
|
|
1055
1055
|
this.createVariable({
|
|
1056
1056
|
stepConfig,
|
|
1057
1057
|
stepRecord,
|
|
1058
|
-
variable:
|
|
1058
|
+
variable: fluent_1.Variables.AssertStatusCodeName.CodeName,
|
|
1059
1059
|
startingValue: codeName,
|
|
1060
1060
|
});
|
|
1061
1061
|
}
|
|
1062
1062
|
clickUIAction(inputs) {
|
|
1063
1063
|
const { formUI, table, actionType, declarativeAction, uiAction, assertType } = inputs;
|
|
1064
|
-
const stepConfig =
|
|
1064
|
+
const stepConfig = fluent_1.StepConfig.ClickUIAction;
|
|
1065
1065
|
const stepRecord = this.createStepRecord({
|
|
1066
1066
|
name: 'Click a UI Action',
|
|
1067
1067
|
stepConfig: stepConfig,
|
|
@@ -1071,47 +1071,47 @@ class ATF {
|
|
|
1071
1071
|
this.createVariable({
|
|
1072
1072
|
stepRecord,
|
|
1073
1073
|
stepConfig,
|
|
1074
|
-
variable:
|
|
1074
|
+
variable: fluent_1.Variables.ClickUIAction.FormUI,
|
|
1075
1075
|
startingValue: formUI,
|
|
1076
1076
|
stringifier: (val) => this.parseFormUI(val),
|
|
1077
1077
|
});
|
|
1078
1078
|
this.createVariable({
|
|
1079
1079
|
stepRecord,
|
|
1080
1080
|
stepConfig,
|
|
1081
|
-
variable:
|
|
1081
|
+
variable: fluent_1.Variables.ClickUIAction.Table,
|
|
1082
1082
|
startingValue: table,
|
|
1083
1083
|
});
|
|
1084
1084
|
this.createVariable({
|
|
1085
1085
|
stepRecord,
|
|
1086
1086
|
stepConfig,
|
|
1087
|
-
variable:
|
|
1087
|
+
variable: fluent_1.Variables.ClickUIAction.ActionType,
|
|
1088
1088
|
startingValue: actionType,
|
|
1089
1089
|
});
|
|
1090
1090
|
this.createVariable({
|
|
1091
1091
|
stepRecord,
|
|
1092
1092
|
stepConfig,
|
|
1093
|
-
variable:
|
|
1093
|
+
variable: fluent_1.Variables.ClickUIAction.DeclarativeAction,
|
|
1094
1094
|
startingValue: declarativeAction,
|
|
1095
1095
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1096
1096
|
});
|
|
1097
1097
|
this.createVariable({
|
|
1098
1098
|
stepRecord,
|
|
1099
1099
|
stepConfig,
|
|
1100
|
-
variable:
|
|
1100
|
+
variable: fluent_1.Variables.ClickUIAction.UIAction,
|
|
1101
1101
|
startingValue: uiAction,
|
|
1102
1102
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1103
1103
|
});
|
|
1104
1104
|
this.createVariable({
|
|
1105
1105
|
stepRecord,
|
|
1106
1106
|
stepConfig,
|
|
1107
|
-
variable:
|
|
1107
|
+
variable: fluent_1.Variables.ClickUIAction.AssertType,
|
|
1108
1108
|
startingValue: assertType,
|
|
1109
1109
|
});
|
|
1110
1110
|
}
|
|
1111
1111
|
createUser(inputs) {
|
|
1112
1112
|
const { fieldValues, groups, roles, impersonate, firstName, lastName } = inputs;
|
|
1113
1113
|
const tableName = 'sys_user';
|
|
1114
|
-
const stepConfig =
|
|
1114
|
+
const stepConfig = fluent_1.StepConfig.CreateAUser;
|
|
1115
1115
|
const stepRecord = this.createStepRecord({
|
|
1116
1116
|
name: 'Create a User',
|
|
1117
1117
|
description: `Create a User`,
|
|
@@ -1121,14 +1121,14 @@ class ATF {
|
|
|
1121
1121
|
this.createVariable({
|
|
1122
1122
|
stepRecord,
|
|
1123
1123
|
stepConfig,
|
|
1124
|
-
variable:
|
|
1124
|
+
variable: fluent_1.Variables.CreateAUser.FieldValues,
|
|
1125
1125
|
startingValue: fieldValues,
|
|
1126
1126
|
stringifier: (val) => this.fieldValuesToQuery(val),
|
|
1127
1127
|
});
|
|
1128
1128
|
this.createVariable({
|
|
1129
1129
|
stepRecord,
|
|
1130
1130
|
stepConfig,
|
|
1131
|
-
variable:
|
|
1131
|
+
variable: fluent_1.Variables.CreateAUser.Groups,
|
|
1132
1132
|
startingValue: groups,
|
|
1133
1133
|
stringifier: (value) => {
|
|
1134
1134
|
return this.recordListToString(value);
|
|
@@ -1137,7 +1137,7 @@ class ATF {
|
|
|
1137
1137
|
this.createVariable({
|
|
1138
1138
|
stepRecord,
|
|
1139
1139
|
stepConfig,
|
|
1140
|
-
variable:
|
|
1140
|
+
variable: fluent_1.Variables.CreateAUser.Roles,
|
|
1141
1141
|
startingValue: roles,
|
|
1142
1142
|
stringifier: (value) => {
|
|
1143
1143
|
return this.recordListToString(value);
|
|
@@ -1146,25 +1146,25 @@ class ATF {
|
|
|
1146
1146
|
this.createVariable({
|
|
1147
1147
|
stepRecord,
|
|
1148
1148
|
stepConfig,
|
|
1149
|
-
variable:
|
|
1149
|
+
variable: fluent_1.Variables.CreateAUser.Impersonate,
|
|
1150
1150
|
startingValue: impersonate,
|
|
1151
1151
|
});
|
|
1152
1152
|
this.createVariable({
|
|
1153
1153
|
stepRecord,
|
|
1154
1154
|
stepConfig,
|
|
1155
|
-
variable:
|
|
1155
|
+
variable: fluent_1.Variables.CreateAUser.FirstName,
|
|
1156
1156
|
startingValue: firstName,
|
|
1157
1157
|
});
|
|
1158
1158
|
this.createVariable({
|
|
1159
1159
|
stepRecord,
|
|
1160
1160
|
stepConfig,
|
|
1161
|
-
variable:
|
|
1161
|
+
variable: fluent_1.Variables.CreateAUser.LastName,
|
|
1162
1162
|
startingValue: lastName,
|
|
1163
1163
|
});
|
|
1164
1164
|
}
|
|
1165
1165
|
recordDelete(inputs) {
|
|
1166
1166
|
const { enforceSecurity, assertType, table, recordId } = inputs;
|
|
1167
|
-
const stepConfig =
|
|
1167
|
+
const stepConfig = fluent_1.StepConfig.RecordDelete;
|
|
1168
1168
|
const stepRecord = this.createStepRecord({
|
|
1169
1169
|
name: 'Record Delete',
|
|
1170
1170
|
stepConfig,
|
|
@@ -1173,32 +1173,32 @@ class ATF {
|
|
|
1173
1173
|
this.createVariable({
|
|
1174
1174
|
stepRecord,
|
|
1175
1175
|
stepConfig,
|
|
1176
|
-
variable:
|
|
1176
|
+
variable: fluent_1.Variables.RecordDelete.EnforceSecurity,
|
|
1177
1177
|
startingValue: enforceSecurity,
|
|
1178
1178
|
});
|
|
1179
1179
|
this.createVariable({
|
|
1180
1180
|
stepRecord,
|
|
1181
1181
|
stepConfig,
|
|
1182
|
-
variable:
|
|
1182
|
+
variable: fluent_1.Variables.RecordDelete.AssertType,
|
|
1183
1183
|
startingValue: assertType,
|
|
1184
1184
|
});
|
|
1185
1185
|
this.createVariable({
|
|
1186
1186
|
stepRecord,
|
|
1187
1187
|
stepConfig,
|
|
1188
|
-
variable:
|
|
1188
|
+
variable: fluent_1.Variables.RecordDelete.Table,
|
|
1189
1189
|
startingValue: table,
|
|
1190
1190
|
});
|
|
1191
1191
|
this.createVariable({
|
|
1192
1192
|
stepRecord,
|
|
1193
1193
|
stepConfig,
|
|
1194
|
-
variable:
|
|
1194
|
+
variable: fluent_1.Variables.RecordDelete.RecordId,
|
|
1195
1195
|
startingValue: recordId,
|
|
1196
1196
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1197
1197
|
});
|
|
1198
1198
|
}
|
|
1199
1199
|
openCatalogItem(inputs) {
|
|
1200
1200
|
const { catalogItem } = inputs;
|
|
1201
|
-
const stepConfig =
|
|
1201
|
+
const stepConfig = fluent_1.StepConfig.OpenACatalogItem;
|
|
1202
1202
|
const stepRecord = this.createStepRecord({
|
|
1203
1203
|
name: 'Open a catalog item',
|
|
1204
1204
|
stepConfig,
|
|
@@ -1207,14 +1207,14 @@ class ATF {
|
|
|
1207
1207
|
this.createVariable({
|
|
1208
1208
|
stepRecord,
|
|
1209
1209
|
stepConfig,
|
|
1210
|
-
variable:
|
|
1210
|
+
variable: fluent_1.Variables.OpenACatalogItem.CatalogItem,
|
|
1211
1211
|
startingValue: catalogItem,
|
|
1212
1212
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1213
1213
|
});
|
|
1214
1214
|
}
|
|
1215
1215
|
setVariableValue(inputs) {
|
|
1216
1216
|
const { catalogItem, variableValues } = inputs;
|
|
1217
|
-
const stepConfig =
|
|
1217
|
+
const stepConfig = fluent_1.StepConfig.SetVariableValues;
|
|
1218
1218
|
const stepRecord = this.createStepRecord({
|
|
1219
1219
|
name: 'Set Variable Values',
|
|
1220
1220
|
stepConfig,
|
|
@@ -1223,14 +1223,14 @@ class ATF {
|
|
|
1223
1223
|
this.createVariable({
|
|
1224
1224
|
stepRecord,
|
|
1225
1225
|
stepConfig,
|
|
1226
|
-
variable:
|
|
1226
|
+
variable: fluent_1.Variables.SetVariableValues.Item,
|
|
1227
1227
|
startingValue: catalogItem,
|
|
1228
1228
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1229
1229
|
});
|
|
1230
1230
|
this.createVariable({
|
|
1231
1231
|
stepRecord,
|
|
1232
1232
|
stepConfig,
|
|
1233
|
-
variable:
|
|
1233
|
+
variable: fluent_1.Variables.SetVariableValues.VariableValues,
|
|
1234
1234
|
startingValue: variableValues,
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
@@ -1238,7 +1238,7 @@ class ATF {
|
|
|
1238
1238
|
const { basicAuthentication, method, path, queryParameters, headers, body } = inputs;
|
|
1239
1239
|
const processedParams = this.nameValuePairProcessing(queryParameters);
|
|
1240
1240
|
const processedHeaders = this.nameValuePairProcessing(headers);
|
|
1241
|
-
const stepConfig =
|
|
1241
|
+
const stepConfig = fluent_1.StepConfig.SendRestRequestInbound;
|
|
1242
1242
|
const stepRecord = this.createStepRecord({
|
|
1243
1243
|
name: 'Send REST Request - Inbound',
|
|
1244
1244
|
stepConfig,
|
|
@@ -1247,46 +1247,46 @@ class ATF {
|
|
|
1247
1247
|
this.createVariable({
|
|
1248
1248
|
stepRecord,
|
|
1249
1249
|
stepConfig,
|
|
1250
|
-
variable:
|
|
1250
|
+
variable: fluent_1.Variables.SendRestRequestInbound.BasicAuthentication,
|
|
1251
1251
|
startingValue: basicAuthentication,
|
|
1252
1252
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1253
1253
|
});
|
|
1254
1254
|
this.createVariable({
|
|
1255
1255
|
stepRecord,
|
|
1256
1256
|
stepConfig,
|
|
1257
|
-
variable:
|
|
1257
|
+
variable: fluent_1.Variables.SendRestRequestInbound.Method,
|
|
1258
1258
|
startingValue: method,
|
|
1259
1259
|
});
|
|
1260
1260
|
this.createVariable({
|
|
1261
1261
|
stepRecord,
|
|
1262
1262
|
stepConfig,
|
|
1263
|
-
variable:
|
|
1263
|
+
variable: fluent_1.Variables.SendRestRequestInbound.Path,
|
|
1264
1264
|
startingValue: path,
|
|
1265
1265
|
});
|
|
1266
1266
|
this.createVariable({
|
|
1267
1267
|
stepRecord,
|
|
1268
1268
|
stepConfig,
|
|
1269
|
-
variable:
|
|
1269
|
+
variable: fluent_1.Variables.SendRestRequestInbound.QueryParameters,
|
|
1270
1270
|
startingValue: processedParams,
|
|
1271
1271
|
stringifier: (value) => JSON.stringify(value),
|
|
1272
1272
|
});
|
|
1273
1273
|
this.createVariable({
|
|
1274
1274
|
stepRecord,
|
|
1275
1275
|
stepConfig,
|
|
1276
|
-
variable:
|
|
1276
|
+
variable: fluent_1.Variables.SendRestRequestInbound.Headers,
|
|
1277
1277
|
startingValue: processedHeaders,
|
|
1278
1278
|
stringifier: (value) => JSON.stringify(value),
|
|
1279
1279
|
});
|
|
1280
1280
|
this.createVariable({
|
|
1281
1281
|
stepRecord,
|
|
1282
1282
|
stepConfig,
|
|
1283
|
-
variable:
|
|
1283
|
+
variable: fluent_1.Variables.SendRestRequestInbound.Body,
|
|
1284
1284
|
startingValue: body,
|
|
1285
1285
|
});
|
|
1286
1286
|
}
|
|
1287
1287
|
assertStatusCode(inputs) {
|
|
1288
1288
|
const { operation, statusCode } = inputs;
|
|
1289
|
-
const stepConfig =
|
|
1289
|
+
const stepConfig = fluent_1.StepConfig.AssertStatusCode;
|
|
1290
1290
|
const stepRecord = this.createStepRecord({
|
|
1291
1291
|
name: 'Assert Status Code',
|
|
1292
1292
|
stepConfig,
|
|
@@ -1295,19 +1295,19 @@ class ATF {
|
|
|
1295
1295
|
this.createVariable({
|
|
1296
1296
|
stepRecord,
|
|
1297
1297
|
stepConfig,
|
|
1298
|
-
variable:
|
|
1298
|
+
variable: fluent_1.Variables.AssertStatusCode.Operation,
|
|
1299
1299
|
startingValue: operation,
|
|
1300
1300
|
});
|
|
1301
1301
|
this.createVariable({
|
|
1302
1302
|
stepRecord,
|
|
1303
1303
|
stepConfig,
|
|
1304
|
-
variable:
|
|
1304
|
+
variable: fluent_1.Variables.AssertStatusCode.StatusCode,
|
|
1305
1305
|
startingValue: statusCode,
|
|
1306
1306
|
});
|
|
1307
1307
|
}
|
|
1308
1308
|
assertResponseXMLPayloadIsWellFormed(inputs) {
|
|
1309
1309
|
inputs;
|
|
1310
|
-
const stepConfig =
|
|
1310
|
+
const stepConfig = fluent_1.StepConfig.AssertResponseXMLPayloadIsWellFormed;
|
|
1311
1311
|
this.createStepRecord({
|
|
1312
1312
|
name: 'Assert Response XML Payload Is Well-Formed',
|
|
1313
1313
|
stepConfig,
|
|
@@ -1317,7 +1317,7 @@ class ATF {
|
|
|
1317
1317
|
responsiveDashboardSharing(inputs) {
|
|
1318
1318
|
const { dashboard, assertType } = inputs;
|
|
1319
1319
|
const descriptionStr = 'Confirm a dashboard can or cannot be shared';
|
|
1320
|
-
const stepConfig =
|
|
1320
|
+
const stepConfig = fluent_1.StepConfig.ResponsiveDashboardSharing;
|
|
1321
1321
|
const stepRecord = this.createStepRecord({
|
|
1322
1322
|
name: 'Responsive Dashboard Sharing',
|
|
1323
1323
|
stepConfig,
|
|
@@ -1326,20 +1326,20 @@ class ATF {
|
|
|
1326
1326
|
this.createVariable({
|
|
1327
1327
|
stepRecord,
|
|
1328
1328
|
stepConfig,
|
|
1329
|
-
variable:
|
|
1329
|
+
variable: fluent_1.Variables.ResponsiveDashboardSharing.Dashboard,
|
|
1330
1330
|
startingValue: dashboard,
|
|
1331
1331
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1332
1332
|
});
|
|
1333
1333
|
this.createVariable({
|
|
1334
1334
|
stepRecord,
|
|
1335
1335
|
stepConfig,
|
|
1336
|
-
variable:
|
|
1336
|
+
variable: fluent_1.Variables.ResponsiveDashboardSharing.AssertType,
|
|
1337
1337
|
startingValue: assertType,
|
|
1338
1338
|
});
|
|
1339
1339
|
}
|
|
1340
1340
|
log(inputs) {
|
|
1341
1341
|
const { log } = inputs;
|
|
1342
|
-
const stepConfig =
|
|
1342
|
+
const stepConfig = fluent_1.StepConfig.Log;
|
|
1343
1343
|
const stepRecord = this.createStepRecord({
|
|
1344
1344
|
name: 'Log',
|
|
1345
1345
|
stepConfig,
|
|
@@ -1348,13 +1348,13 @@ class ATF {
|
|
|
1348
1348
|
this.createVariable({
|
|
1349
1349
|
stepRecord,
|
|
1350
1350
|
stepConfig,
|
|
1351
|
-
variable:
|
|
1351
|
+
variable: fluent_1.Variables.Log.Log,
|
|
1352
1352
|
startingValue: log,
|
|
1353
1353
|
});
|
|
1354
1354
|
}
|
|
1355
1355
|
declarativeActionVisibility(inputs) {
|
|
1356
1356
|
const { formUI, table, visible, notVisible } = inputs;
|
|
1357
|
-
const stepConfig =
|
|
1357
|
+
const stepConfig = fluent_1.StepConfig.DeclarativeActionVisibility;
|
|
1358
1358
|
const stepRecord = this.createStepRecord({
|
|
1359
1359
|
name: 'Declarative Action Visibility',
|
|
1360
1360
|
stepConfig,
|
|
@@ -1363,20 +1363,20 @@ class ATF {
|
|
|
1363
1363
|
this.createVariable({
|
|
1364
1364
|
stepRecord,
|
|
1365
1365
|
stepConfig,
|
|
1366
|
-
variable:
|
|
1366
|
+
variable: fluent_1.Variables.DeclarativeActionVisibility.FormUI,
|
|
1367
1367
|
startingValue: formUI,
|
|
1368
1368
|
stringifier: (val) => this.parseFormUI(val),
|
|
1369
1369
|
});
|
|
1370
1370
|
this.createVariable({
|
|
1371
1371
|
stepRecord,
|
|
1372
1372
|
stepConfig,
|
|
1373
|
-
variable:
|
|
1373
|
+
variable: fluent_1.Variables.DeclarativeActionVisibility.Table,
|
|
1374
1374
|
startingValue: table,
|
|
1375
1375
|
});
|
|
1376
1376
|
this.createVariable({
|
|
1377
1377
|
stepRecord,
|
|
1378
1378
|
stepConfig,
|
|
1379
|
-
variable:
|
|
1379
|
+
variable: fluent_1.Variables.DeclarativeActionVisibility.Visible,
|
|
1380
1380
|
startingValue: visible,
|
|
1381
1381
|
stringifier: (value) => {
|
|
1382
1382
|
return this.recordListToString(value);
|
|
@@ -1385,7 +1385,7 @@ class ATF {
|
|
|
1385
1385
|
this.createVariable({
|
|
1386
1386
|
stepRecord,
|
|
1387
1387
|
stepConfig,
|
|
1388
|
-
variable:
|
|
1388
|
+
variable: fluent_1.Variables.DeclarativeActionVisibility.NotVisible,
|
|
1389
1389
|
startingValue: notVisible,
|
|
1390
1390
|
stringifier: (value) => {
|
|
1391
1391
|
return this.recordListToString(value);
|
|
@@ -1394,7 +1394,7 @@ class ATF {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
navigateToModule(inputs) {
|
|
1396
1396
|
const { module } = inputs;
|
|
1397
|
-
const stepConfig =
|
|
1397
|
+
const stepConfig = fluent_1.StepConfig.NavigateToModule;
|
|
1398
1398
|
const stepRecord = this.createStepRecord({
|
|
1399
1399
|
name: 'Navigate to Module',
|
|
1400
1400
|
stepConfig,
|
|
@@ -1403,14 +1403,14 @@ class ATF {
|
|
|
1403
1403
|
this.createVariable({
|
|
1404
1404
|
stepConfig,
|
|
1405
1405
|
stepRecord,
|
|
1406
|
-
variable:
|
|
1406
|
+
variable: fluent_1.Variables.NavigateToModule.Module,
|
|
1407
1407
|
startingValue: module,
|
|
1408
1408
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1409
1409
|
});
|
|
1410
1410
|
}
|
|
1411
1411
|
applicationMenuVisibility(inputs) {
|
|
1412
1412
|
const { navigator, visible, assertNotVisible, assertVisible, notVisible } = inputs;
|
|
1413
|
-
const stepConfig =
|
|
1413
|
+
const stepConfig = fluent_1.StepConfig.ApplicationMenuVisibility;
|
|
1414
1414
|
const stepRecord = this.createStepRecord({
|
|
1415
1415
|
name: 'Application Menu Visibility',
|
|
1416
1416
|
stepConfig,
|
|
@@ -1419,39 +1419,39 @@ class ATF {
|
|
|
1419
1419
|
this.createVariable({
|
|
1420
1420
|
stepConfig,
|
|
1421
1421
|
stepRecord,
|
|
1422
|
-
variable:
|
|
1422
|
+
variable: fluent_1.Variables.ApplicationMenuVisibility.Navigator,
|
|
1423
1423
|
startingValue: navigator,
|
|
1424
1424
|
});
|
|
1425
1425
|
this.createVariable({
|
|
1426
1426
|
stepConfig,
|
|
1427
1427
|
stepRecord,
|
|
1428
|
-
variable:
|
|
1428
|
+
variable: fluent_1.Variables.ApplicationMenuVisibility.VisibileAssert,
|
|
1429
1429
|
startingValue: assertVisible,
|
|
1430
1430
|
});
|
|
1431
1431
|
this.createVariable({
|
|
1432
1432
|
stepConfig,
|
|
1433
1433
|
stepRecord,
|
|
1434
|
-
variable:
|
|
1434
|
+
variable: fluent_1.Variables.ApplicationMenuVisibility.NotVisibleAssert,
|
|
1435
1435
|
startingValue: assertNotVisible,
|
|
1436
1436
|
});
|
|
1437
1437
|
this.createVariable({
|
|
1438
1438
|
stepConfig,
|
|
1439
1439
|
stepRecord,
|
|
1440
|
-
variable:
|
|
1440
|
+
variable: fluent_1.Variables.ApplicationMenuVisibility.VisibleApplications,
|
|
1441
1441
|
startingValue: visible,
|
|
1442
1442
|
stringifier: (val) => this.recordListToString(val),
|
|
1443
1443
|
});
|
|
1444
1444
|
this.createVariable({
|
|
1445
1445
|
stepConfig,
|
|
1446
1446
|
stepRecord,
|
|
1447
|
-
variable:
|
|
1447
|
+
variable: fluent_1.Variables.ApplicationMenuVisibility.NotVisibleApplications,
|
|
1448
1448
|
startingValue: notVisible,
|
|
1449
1449
|
stringifier: (val) => this.recordListToString(val),
|
|
1450
1450
|
});
|
|
1451
1451
|
}
|
|
1452
1452
|
checkoutShoppingCart(inputs) {
|
|
1453
1453
|
const { assert, requestedFor, deliveryAddress, specialInstructions } = inputs;
|
|
1454
|
-
const stepConfig =
|
|
1454
|
+
const stepConfig = fluent_1.StepConfig.CheckoutShoppingCart;
|
|
1455
1455
|
const stepRecord = this.createStepRecord({
|
|
1456
1456
|
name: 'Checkout Shopping Cart',
|
|
1457
1457
|
stepConfig,
|
|
@@ -1460,32 +1460,32 @@ class ATF {
|
|
|
1460
1460
|
this.createVariable({
|
|
1461
1461
|
stepConfig,
|
|
1462
1462
|
stepRecord,
|
|
1463
|
-
variable:
|
|
1463
|
+
variable: fluent_1.Variables.CheckoutShoppingCart.Assert,
|
|
1464
1464
|
startingValue: assert,
|
|
1465
1465
|
});
|
|
1466
1466
|
this.createVariable({
|
|
1467
1467
|
stepConfig,
|
|
1468
1468
|
stepRecord,
|
|
1469
|
-
variable:
|
|
1469
|
+
variable: fluent_1.Variables.CheckoutShoppingCart.DeliveryAddress,
|
|
1470
1470
|
startingValue: deliveryAddress,
|
|
1471
1471
|
});
|
|
1472
1472
|
this.createVariable({
|
|
1473
1473
|
stepConfig,
|
|
1474
1474
|
stepRecord,
|
|
1475
|
-
variable:
|
|
1475
|
+
variable: fluent_1.Variables.CheckoutShoppingCart.Instructions,
|
|
1476
1476
|
startingValue: specialInstructions,
|
|
1477
1477
|
});
|
|
1478
1478
|
this.createVariable({
|
|
1479
1479
|
stepConfig,
|
|
1480
1480
|
stepRecord,
|
|
1481
|
-
variable:
|
|
1481
|
+
variable: fluent_1.Variables.CheckoutShoppingCart.Requested,
|
|
1482
1482
|
startingValue: requestedFor,
|
|
1483
1483
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1484
1484
|
});
|
|
1485
1485
|
}
|
|
1486
1486
|
submitRecordProducer(inputs) {
|
|
1487
1487
|
const { assert } = inputs;
|
|
1488
|
-
const stepConfig =
|
|
1488
|
+
const stepConfig = fluent_1.StepConfig.SubmitRecordProducer;
|
|
1489
1489
|
const stepRecord = this.createStepRecord({
|
|
1490
1490
|
name: 'Submit Record Producer',
|
|
1491
1491
|
stepConfig,
|
|
@@ -1494,14 +1494,14 @@ class ATF {
|
|
|
1494
1494
|
this.createVariable({
|
|
1495
1495
|
stepConfig,
|
|
1496
1496
|
stepRecord,
|
|
1497
|
-
variable:
|
|
1497
|
+
variable: fluent_1.Variables.SubmitRecordProducer.Assert,
|
|
1498
1498
|
startingValue: assert,
|
|
1499
1499
|
});
|
|
1500
1500
|
}
|
|
1501
1501
|
openRecordProducer_SP(inputs) {
|
|
1502
1502
|
const { portal, page, recordProducer, queryParameters } = inputs;
|
|
1503
1503
|
const processedParams = this.nameValuePairProcessing(queryParameters);
|
|
1504
|
-
const stepConfig =
|
|
1504
|
+
const stepConfig = fluent_1.StepConfig.OpenRecordProducer_SP;
|
|
1505
1505
|
const stepRecord = this.createStepRecord({
|
|
1506
1506
|
name: 'Open a Record Producer (SP)',
|
|
1507
1507
|
stepConfig,
|
|
@@ -1510,28 +1510,28 @@ class ATF {
|
|
|
1510
1510
|
this.createVariable({
|
|
1511
1511
|
stepConfig,
|
|
1512
1512
|
stepRecord,
|
|
1513
|
-
variable:
|
|
1513
|
+
variable: fluent_1.Variables.OpenRecordProducer_SP.Page,
|
|
1514
1514
|
startingValue: page,
|
|
1515
1515
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1516
1516
|
});
|
|
1517
1517
|
this.createVariable({
|
|
1518
1518
|
stepConfig,
|
|
1519
1519
|
stepRecord,
|
|
1520
|
-
variable:
|
|
1520
|
+
variable: fluent_1.Variables.OpenRecordProducer_SP.Portal,
|
|
1521
1521
|
startingValue: portal,
|
|
1522
1522
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1523
1523
|
});
|
|
1524
1524
|
this.createVariable({
|
|
1525
1525
|
stepConfig,
|
|
1526
1526
|
stepRecord,
|
|
1527
|
-
variable:
|
|
1527
|
+
variable: fluent_1.Variables.OpenRecordProducer_SP.RecordProducer,
|
|
1528
1528
|
startingValue: recordProducer,
|
|
1529
1529
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1530
1530
|
});
|
|
1531
1531
|
this.createVariable({
|
|
1532
1532
|
stepConfig,
|
|
1533
1533
|
stepRecord,
|
|
1534
|
-
variable:
|
|
1534
|
+
variable: fluent_1.Variables.OpenRecordProducer_SP.QueryParam,
|
|
1535
1535
|
startingValue: processedParams,
|
|
1536
1536
|
stringifier: JSON.stringify,
|
|
1537
1537
|
});
|
|
@@ -1539,7 +1539,7 @@ class ATF {
|
|
|
1539
1539
|
openOrderGuide_SP(inputs) {
|
|
1540
1540
|
const { portal, page, orderGuide, queryParameters } = inputs;
|
|
1541
1541
|
const queryParametersProcessed = this.nameValuePairProcessing(queryParameters);
|
|
1542
|
-
const stepConfig =
|
|
1542
|
+
const stepConfig = fluent_1.StepConfig.OpenOrderGuide_SP;
|
|
1543
1543
|
const stepRecord = this.createStepRecord({
|
|
1544
1544
|
name: 'Open an Order Guide (SP)',
|
|
1545
1545
|
stepConfig,
|
|
@@ -1548,28 +1548,28 @@ class ATF {
|
|
|
1548
1548
|
this.createVariable({
|
|
1549
1549
|
stepConfig,
|
|
1550
1550
|
stepRecord,
|
|
1551
|
-
variable:
|
|
1551
|
+
variable: fluent_1.Variables.OpenOrderGuide_SP.Page,
|
|
1552
1552
|
startingValue: page,
|
|
1553
1553
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1554
1554
|
});
|
|
1555
1555
|
this.createVariable({
|
|
1556
1556
|
stepConfig,
|
|
1557
1557
|
stepRecord,
|
|
1558
|
-
variable:
|
|
1558
|
+
variable: fluent_1.Variables.OpenOrderGuide_SP.Portal,
|
|
1559
1559
|
startingValue: portal,
|
|
1560
1560
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1561
1561
|
});
|
|
1562
1562
|
this.createVariable({
|
|
1563
1563
|
stepConfig,
|
|
1564
1564
|
stepRecord,
|
|
1565
|
-
variable:
|
|
1565
|
+
variable: fluent_1.Variables.OpenOrderGuide_SP.OrderGuide,
|
|
1566
1566
|
startingValue: orderGuide,
|
|
1567
1567
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1568
1568
|
});
|
|
1569
1569
|
this.createVariable({
|
|
1570
1570
|
stepConfig,
|
|
1571
1571
|
stepRecord,
|
|
1572
|
-
variable:
|
|
1572
|
+
variable: fluent_1.Variables.OpenOrderGuide_SP.QueryParam,
|
|
1573
1573
|
startingValue: queryParametersProcessed,
|
|
1574
1574
|
stringifier: JSON.stringify,
|
|
1575
1575
|
});
|
|
@@ -1577,7 +1577,7 @@ class ATF {
|
|
|
1577
1577
|
openForm_SP(inputs) {
|
|
1578
1578
|
const { portal, page, paramID, view, queryParameters, table } = inputs;
|
|
1579
1579
|
const queryParametersProcessed = this.nameValuePairProcessing(queryParameters);
|
|
1580
|
-
const stepConfig =
|
|
1580
|
+
const stepConfig = fluent_1.StepConfig.OpenAForm_SP;
|
|
1581
1581
|
const stepRecord = this.createStepRecord({
|
|
1582
1582
|
name: 'Open a Form (SP)',
|
|
1583
1583
|
stepConfig,
|
|
@@ -1587,40 +1587,40 @@ class ATF {
|
|
|
1587
1587
|
this.createVariable({
|
|
1588
1588
|
stepConfig,
|
|
1589
1589
|
stepRecord,
|
|
1590
|
-
variable:
|
|
1590
|
+
variable: fluent_1.Variables.OpenAForm_SP.Portal,
|
|
1591
1591
|
startingValue: portal,
|
|
1592
1592
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1593
1593
|
});
|
|
1594
1594
|
this.createVariable({
|
|
1595
1595
|
stepConfig,
|
|
1596
1596
|
stepRecord,
|
|
1597
|
-
variable:
|
|
1597
|
+
variable: fluent_1.Variables.OpenAForm_SP.Page,
|
|
1598
1598
|
startingValue: page,
|
|
1599
1599
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1600
1600
|
});
|
|
1601
1601
|
this.createVariable({
|
|
1602
1602
|
stepConfig,
|
|
1603
1603
|
stepRecord,
|
|
1604
|
-
variable:
|
|
1604
|
+
variable: fluent_1.Variables.OpenAForm_SP.ParamID,
|
|
1605
1605
|
startingValue: paramID,
|
|
1606
1606
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1607
1607
|
});
|
|
1608
1608
|
this.createVariable({
|
|
1609
1609
|
stepConfig,
|
|
1610
1610
|
stepRecord,
|
|
1611
|
-
variable:
|
|
1611
|
+
variable: fluent_1.Variables.OpenAForm_SP.Table,
|
|
1612
1612
|
startingValue: table,
|
|
1613
1613
|
});
|
|
1614
1614
|
this.createVariable({
|
|
1615
1615
|
stepConfig,
|
|
1616
1616
|
stepRecord,
|
|
1617
|
-
variable:
|
|
1617
|
+
variable: fluent_1.Variables.OpenAForm_SP.View,
|
|
1618
1618
|
startingValue: view,
|
|
1619
1619
|
});
|
|
1620
1620
|
this.createVariable({
|
|
1621
1621
|
stepConfig,
|
|
1622
1622
|
stepRecord,
|
|
1623
|
-
variable:
|
|
1623
|
+
variable: fluent_1.Variables.OpenAForm_SP.QueryParam,
|
|
1624
1624
|
startingValue: queryParametersProcessed,
|
|
1625
1625
|
stringifier: JSON.stringify,
|
|
1626
1626
|
});
|
|
@@ -1628,7 +1628,7 @@ class ATF {
|
|
|
1628
1628
|
openCatalogItem_SP(inputs) {
|
|
1629
1629
|
const { portal, page, catItem, queryParameters } = inputs;
|
|
1630
1630
|
const queryParametersProcessed = this.nameValuePairProcessing(queryParameters);
|
|
1631
|
-
const stepConfig =
|
|
1631
|
+
const stepConfig = fluent_1.StepConfig.OpenCatalogItem_SP;
|
|
1632
1632
|
const stepRecord = this.createStepRecord({
|
|
1633
1633
|
name: 'Open a Catalog Item (SP)',
|
|
1634
1634
|
stepConfig,
|
|
@@ -1637,35 +1637,35 @@ class ATF {
|
|
|
1637
1637
|
this.createVariable({
|
|
1638
1638
|
stepConfig,
|
|
1639
1639
|
stepRecord,
|
|
1640
|
-
variable:
|
|
1640
|
+
variable: fluent_1.Variables.OpenCatalogItem_SP.Portal,
|
|
1641
1641
|
startingValue: portal,
|
|
1642
1642
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1643
1643
|
});
|
|
1644
1644
|
this.createVariable({
|
|
1645
1645
|
stepConfig,
|
|
1646
1646
|
stepRecord,
|
|
1647
|
-
variable:
|
|
1647
|
+
variable: fluent_1.Variables.OpenCatalogItem_SP.Page,
|
|
1648
1648
|
startingValue: page,
|
|
1649
1649
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1650
1650
|
});
|
|
1651
1651
|
this.createVariable({
|
|
1652
1652
|
stepConfig,
|
|
1653
1653
|
stepRecord,
|
|
1654
|
-
variable:
|
|
1654
|
+
variable: fluent_1.Variables.OpenCatalogItem_SP.CatalogItem,
|
|
1655
1655
|
startingValue: catItem,
|
|
1656
1656
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1657
1657
|
});
|
|
1658
1658
|
this.createVariable({
|
|
1659
1659
|
stepConfig,
|
|
1660
1660
|
stepRecord,
|
|
1661
|
-
variable:
|
|
1661
|
+
variable: fluent_1.Variables.OpenCatalogItem_SP.QueryParam,
|
|
1662
1662
|
startingValue: queryParametersProcessed,
|
|
1663
1663
|
stringifier: JSON.stringify,
|
|
1664
1664
|
});
|
|
1665
1665
|
}
|
|
1666
1666
|
saveCurrentRowOfMultiRowVariableSet_SP(inputs) {
|
|
1667
1667
|
const { assert } = inputs;
|
|
1668
|
-
const stepConfig =
|
|
1668
|
+
const stepConfig = fluent_1.StepConfig.SaveCurrentRowOfMultiRowVariableSet_SP;
|
|
1669
1669
|
const stepRecord = this.createStepRecord({
|
|
1670
1670
|
name: 'Save current row of multi-row variable set (SP)',
|
|
1671
1671
|
stepConfig,
|
|
@@ -1674,13 +1674,13 @@ class ATF {
|
|
|
1674
1674
|
this.createVariable({
|
|
1675
1675
|
stepConfig,
|
|
1676
1676
|
stepRecord,
|
|
1677
|
-
variable:
|
|
1677
|
+
variable: fluent_1.Variables.SaveCurrentRowOfMultiRowVariableSet_SP.Assert,
|
|
1678
1678
|
startingValue: assert,
|
|
1679
1679
|
});
|
|
1680
1680
|
}
|
|
1681
1681
|
addRowToMultiRowVariableSet_SP(inputs) {
|
|
1682
1682
|
const { catItem, variableSet } = inputs;
|
|
1683
|
-
const stepConfig =
|
|
1683
|
+
const stepConfig = fluent_1.StepConfig.AddRowToMultiRowVariableSet_SP;
|
|
1684
1684
|
const stepRecord = this.createStepRecord({
|
|
1685
1685
|
name: 'Add row to multi-row variable set (SP)',
|
|
1686
1686
|
stepConfig,
|
|
@@ -1689,21 +1689,21 @@ class ATF {
|
|
|
1689
1689
|
this.createVariable({
|
|
1690
1690
|
stepConfig,
|
|
1691
1691
|
stepRecord,
|
|
1692
|
-
variable:
|
|
1692
|
+
variable: fluent_1.Variables.AddRowToMultiRowVariableSet_SP.CatalogItem,
|
|
1693
1693
|
startingValue: catItem,
|
|
1694
1694
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1695
1695
|
});
|
|
1696
1696
|
this.createVariable({
|
|
1697
1697
|
stepConfig,
|
|
1698
1698
|
stepRecord,
|
|
1699
|
-
variable:
|
|
1699
|
+
variable: fluent_1.Variables.AddRowToMultiRowVariableSet_SP.VariableSet,
|
|
1700
1700
|
startingValue: variableSet,
|
|
1701
1701
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1702
1702
|
});
|
|
1703
1703
|
}
|
|
1704
1704
|
fieldStateValidation(inputs) {
|
|
1705
1705
|
const { formUI, visible, notMandatory, notReadOnly, notVisible, readOnly, mandatory, table } = inputs;
|
|
1706
|
-
const stepConfig =
|
|
1706
|
+
const stepConfig = fluent_1.StepConfig.FieldStateValidation;
|
|
1707
1707
|
const stepRecord = this.createStepRecord({
|
|
1708
1708
|
name: 'Field State Validation',
|
|
1709
1709
|
stepConfig,
|
|
@@ -1712,62 +1712,62 @@ class ATF {
|
|
|
1712
1712
|
this.createVariable({
|
|
1713
1713
|
stepConfig,
|
|
1714
1714
|
stepRecord,
|
|
1715
|
-
variable:
|
|
1715
|
+
variable: fluent_1.Variables.FieldStateValidation.Table,
|
|
1716
1716
|
startingValue: table,
|
|
1717
1717
|
});
|
|
1718
1718
|
this.createVariable({
|
|
1719
1719
|
stepConfig,
|
|
1720
1720
|
stepRecord,
|
|
1721
|
-
variable:
|
|
1721
|
+
variable: fluent_1.Variables.FieldStateValidation.FormUI,
|
|
1722
1722
|
startingValue: formUI,
|
|
1723
1723
|
stringifier: (val) => this.parseFormUI(val),
|
|
1724
1724
|
});
|
|
1725
1725
|
this.createVariable({
|
|
1726
1726
|
stepConfig,
|
|
1727
1727
|
stepRecord,
|
|
1728
|
-
variable:
|
|
1728
|
+
variable: fluent_1.Variables.FieldStateValidation.Mandatory,
|
|
1729
1729
|
startingValue: mandatory,
|
|
1730
1730
|
stringifier: (val) => this.recordListToString(val), // Since it is a list of strings we can re-use this recordListToString
|
|
1731
1731
|
});
|
|
1732
1732
|
this.createVariable({
|
|
1733
1733
|
stepConfig,
|
|
1734
1734
|
stepRecord,
|
|
1735
|
-
variable:
|
|
1735
|
+
variable: fluent_1.Variables.FieldStateValidation.NotMandatory,
|
|
1736
1736
|
startingValue: notMandatory,
|
|
1737
1737
|
stringifier: (val) => this.recordListToString(val),
|
|
1738
1738
|
});
|
|
1739
1739
|
this.createVariable({
|
|
1740
1740
|
stepConfig,
|
|
1741
1741
|
stepRecord,
|
|
1742
|
-
variable:
|
|
1742
|
+
variable: fluent_1.Variables.FieldStateValidation.Visible,
|
|
1743
1743
|
startingValue: visible,
|
|
1744
1744
|
stringifier: (val) => this.recordListToString(val),
|
|
1745
1745
|
});
|
|
1746
1746
|
this.createVariable({
|
|
1747
1747
|
stepConfig,
|
|
1748
1748
|
stepRecord,
|
|
1749
|
-
variable:
|
|
1749
|
+
variable: fluent_1.Variables.FieldStateValidation.NotVisible,
|
|
1750
1750
|
startingValue: notVisible,
|
|
1751
1751
|
stringifier: (val) => this.recordListToString(val),
|
|
1752
1752
|
});
|
|
1753
1753
|
this.createVariable({
|
|
1754
1754
|
stepConfig,
|
|
1755
1755
|
stepRecord,
|
|
1756
|
-
variable:
|
|
1756
|
+
variable: fluent_1.Variables.FieldStateValidation.ReadOnly,
|
|
1757
1757
|
startingValue: readOnly,
|
|
1758
1758
|
stringifier: (val) => this.recordListToString(val),
|
|
1759
1759
|
});
|
|
1760
1760
|
this.createVariable({
|
|
1761
1761
|
stepConfig,
|
|
1762
1762
|
stepRecord,
|
|
1763
|
-
variable:
|
|
1763
|
+
variable: fluent_1.Variables.FieldStateValidation.NotReadOnly,
|
|
1764
1764
|
startingValue: notReadOnly,
|
|
1765
1765
|
stringifier: (val) => this.recordListToString(val),
|
|
1766
1766
|
});
|
|
1767
1767
|
}
|
|
1768
1768
|
validateOutboundEmailGeneratedByFlow(inputs) {
|
|
1769
1769
|
const { sourceFlow, conditions } = inputs;
|
|
1770
|
-
const stepConfig =
|
|
1770
|
+
const stepConfig = fluent_1.StepConfig.ValidateOutboundEmailGeneratedByFlow;
|
|
1771
1771
|
const stepRecord = this.createStepRecord({
|
|
1772
1772
|
name: 'Validate Outbound Email Generated by Flow',
|
|
1773
1773
|
stepConfig,
|
|
@@ -1777,26 +1777,26 @@ class ATF {
|
|
|
1777
1777
|
this.createVariable({
|
|
1778
1778
|
stepRecord,
|
|
1779
1779
|
stepConfig,
|
|
1780
|
-
variable:
|
|
1780
|
+
variable: fluent_1.Variables.ValidateOutboundEmailGeneratedByFlow.Table,
|
|
1781
1781
|
startingValue: 'sys_email',
|
|
1782
1782
|
});
|
|
1783
1783
|
this.createVariable({
|
|
1784
1784
|
stepRecord,
|
|
1785
1785
|
stepConfig,
|
|
1786
|
-
variable:
|
|
1786
|
+
variable: fluent_1.Variables.ValidateOutboundEmailGeneratedByFlow.SourceFlow,
|
|
1787
1787
|
startingValue: sourceFlow,
|
|
1788
1788
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1789
1789
|
});
|
|
1790
1790
|
this.createVariable({
|
|
1791
1791
|
stepRecord,
|
|
1792
1792
|
stepConfig,
|
|
1793
|
-
variable:
|
|
1793
|
+
variable: fluent_1.Variables.ValidateOutboundEmailGeneratedByFlow.Conditions,
|
|
1794
1794
|
startingValue: conditions,
|
|
1795
1795
|
});
|
|
1796
1796
|
}
|
|
1797
1797
|
reportVisibility(inputs) {
|
|
1798
1798
|
const { report, assertType } = inputs;
|
|
1799
|
-
const stepConfig =
|
|
1799
|
+
const stepConfig = fluent_1.StepConfig.ReportVisibility;
|
|
1800
1800
|
const stepRecord = this.createStepRecord({
|
|
1801
1801
|
name: 'Report Visibility',
|
|
1802
1802
|
stepConfig,
|
|
@@ -1806,20 +1806,20 @@ class ATF {
|
|
|
1806
1806
|
this.createVariable({
|
|
1807
1807
|
stepRecord,
|
|
1808
1808
|
stepConfig,
|
|
1809
|
-
variable:
|
|
1809
|
+
variable: fluent_1.Variables.ReportVisibility.Report,
|
|
1810
1810
|
startingValue: report,
|
|
1811
1811
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1812
1812
|
});
|
|
1813
1813
|
this.createVariable({
|
|
1814
1814
|
stepRecord,
|
|
1815
1815
|
stepConfig,
|
|
1816
|
-
variable:
|
|
1816
|
+
variable: fluent_1.Variables.ReportVisibility.AssertType,
|
|
1817
1817
|
startingValue: assertType,
|
|
1818
1818
|
});
|
|
1819
1819
|
}
|
|
1820
1820
|
openServicePortalPage(inputs) {
|
|
1821
1821
|
const { portal, page, queryParams } = inputs;
|
|
1822
|
-
const stepConfig =
|
|
1822
|
+
const stepConfig = fluent_1.StepConfig.OpenServicePortalPage;
|
|
1823
1823
|
const processedParams = this.nameValuePairProcessing(queryParams);
|
|
1824
1824
|
const stepRecord = this.createStepRecord({
|
|
1825
1825
|
name: 'Open Service Portal Page',
|
|
@@ -1830,28 +1830,28 @@ class ATF {
|
|
|
1830
1830
|
this.createVariable({
|
|
1831
1831
|
stepRecord,
|
|
1832
1832
|
stepConfig,
|
|
1833
|
-
variable:
|
|
1833
|
+
variable: fluent_1.Variables.OpenServicePortalPage.Portal,
|
|
1834
1834
|
startingValue: portal,
|
|
1835
1835
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1836
1836
|
});
|
|
1837
1837
|
this.createVariable({
|
|
1838
1838
|
stepRecord,
|
|
1839
1839
|
stepConfig,
|
|
1840
|
-
variable:
|
|
1840
|
+
variable: fluent_1.Variables.OpenServicePortalPage.Page,
|
|
1841
1841
|
startingValue: page,
|
|
1842
1842
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1843
1843
|
});
|
|
1844
1844
|
this.createVariable({
|
|
1845
1845
|
stepRecord,
|
|
1846
1846
|
stepConfig,
|
|
1847
|
-
variable:
|
|
1847
|
+
variable: fluent_1.Variables.OpenServicePortalPage.QueryParams,
|
|
1848
1848
|
startingValue: processedParams,
|
|
1849
1849
|
stringifier: JSON.stringify,
|
|
1850
1850
|
});
|
|
1851
1851
|
}
|
|
1852
1852
|
recordQuery(inputs) {
|
|
1853
1853
|
const { enforceSecurity, assertType, table, fieldValues } = inputs;
|
|
1854
|
-
const stepConfig =
|
|
1854
|
+
const stepConfig = fluent_1.StepConfig.RecordQuery;
|
|
1855
1855
|
const stepRecord = this.createStepRecord({
|
|
1856
1856
|
name: 'Record Query',
|
|
1857
1857
|
stepConfig,
|
|
@@ -1861,31 +1861,31 @@ class ATF {
|
|
|
1861
1861
|
this.createVariable({
|
|
1862
1862
|
stepRecord,
|
|
1863
1863
|
stepConfig,
|
|
1864
|
-
variable:
|
|
1864
|
+
variable: fluent_1.Variables.RecordQuery.EnforceSecurity,
|
|
1865
1865
|
startingValue: enforceSecurity,
|
|
1866
1866
|
});
|
|
1867
1867
|
this.createVariable({
|
|
1868
1868
|
stepRecord,
|
|
1869
1869
|
stepConfig,
|
|
1870
|
-
variable:
|
|
1870
|
+
variable: fluent_1.Variables.RecordQuery.AssertType,
|
|
1871
1871
|
startingValue: assertType,
|
|
1872
1872
|
});
|
|
1873
1873
|
this.createVariable({
|
|
1874
1874
|
stepRecord,
|
|
1875
1875
|
stepConfig,
|
|
1876
|
-
variable:
|
|
1876
|
+
variable: fluent_1.Variables.RecordQuery.Table,
|
|
1877
1877
|
startingValue: table,
|
|
1878
1878
|
});
|
|
1879
1879
|
this.createVariable({
|
|
1880
1880
|
stepRecord,
|
|
1881
1881
|
stepConfig,
|
|
1882
|
-
variable:
|
|
1882
|
+
variable: fluent_1.Variables.RecordQuery.FieldValues,
|
|
1883
1883
|
startingValue: fieldValues,
|
|
1884
1884
|
});
|
|
1885
1885
|
}
|
|
1886
1886
|
generateInboundEmail(inputs) {
|
|
1887
1887
|
const { from, to, subject, body } = inputs;
|
|
1888
|
-
const stepConfig =
|
|
1888
|
+
const stepConfig = fluent_1.StepConfig.GenerateInboundEmail;
|
|
1889
1889
|
const stepRecord = this.createStepRecord({
|
|
1890
1890
|
name: 'Generate Inbound Email',
|
|
1891
1891
|
stepConfig,
|
|
@@ -1895,31 +1895,31 @@ class ATF {
|
|
|
1895
1895
|
this.createVariable({
|
|
1896
1896
|
stepRecord,
|
|
1897
1897
|
stepConfig,
|
|
1898
|
-
variable:
|
|
1898
|
+
variable: fluent_1.Variables.GenerateInboundEmail.From,
|
|
1899
1899
|
startingValue: from,
|
|
1900
1900
|
});
|
|
1901
1901
|
this.createVariable({
|
|
1902
1902
|
stepRecord,
|
|
1903
1903
|
stepConfig,
|
|
1904
|
-
variable:
|
|
1904
|
+
variable: fluent_1.Variables.GenerateInboundEmail.To,
|
|
1905
1905
|
startingValue: to,
|
|
1906
1906
|
});
|
|
1907
1907
|
this.createVariable({
|
|
1908
1908
|
stepRecord,
|
|
1909
1909
|
stepConfig,
|
|
1910
|
-
variable:
|
|
1910
|
+
variable: fluent_1.Variables.GenerateInboundEmail.Subject,
|
|
1911
1911
|
startingValue: subject,
|
|
1912
1912
|
});
|
|
1913
1913
|
this.createVariable({
|
|
1914
1914
|
stepRecord,
|
|
1915
1915
|
stepConfig,
|
|
1916
|
-
variable:
|
|
1916
|
+
variable: fluent_1.Variables.GenerateInboundEmail.Body,
|
|
1917
1917
|
startingValue: body,
|
|
1918
1918
|
});
|
|
1919
1919
|
}
|
|
1920
1920
|
validateVariableValue(inputs) {
|
|
1921
1921
|
const { catalogItem, catalogConditions } = inputs;
|
|
1922
|
-
const stepConfig =
|
|
1922
|
+
const stepConfig = fluent_1.StepConfig.ValidateVariableValues;
|
|
1923
1923
|
const stepRecord = this.createStepRecord({
|
|
1924
1924
|
name: 'Validate Variable Values',
|
|
1925
1925
|
stepConfig,
|
|
@@ -1929,20 +1929,20 @@ class ATF {
|
|
|
1929
1929
|
this.createVariable({
|
|
1930
1930
|
stepRecord,
|
|
1931
1931
|
stepConfig,
|
|
1932
|
-
variable:
|
|
1932
|
+
variable: fluent_1.Variables.ValidateVariableValues.CatalogItem,
|
|
1933
1933
|
startingValue: catalogItem,
|
|
1934
1934
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
1935
1935
|
});
|
|
1936
1936
|
this.createVariable({
|
|
1937
1937
|
stepRecord,
|
|
1938
1938
|
stepConfig,
|
|
1939
|
-
variable:
|
|
1939
|
+
variable: fluent_1.Variables.ValidateVariableValues.CatalogConditions,
|
|
1940
1940
|
startingValue: catalogConditions,
|
|
1941
1941
|
});
|
|
1942
1942
|
}
|
|
1943
1943
|
assertResponseTime(inputs) {
|
|
1944
1944
|
const { responseOperation, responseTime } = inputs;
|
|
1945
|
-
const stepConfig =
|
|
1945
|
+
const stepConfig = fluent_1.StepConfig.AssertResponseTime;
|
|
1946
1946
|
const stepRecord = this.createStepRecord({
|
|
1947
1947
|
name: 'Assert Response Time',
|
|
1948
1948
|
stepConfig,
|
|
@@ -1952,19 +1952,19 @@ class ATF {
|
|
|
1952
1952
|
this.createVariable({
|
|
1953
1953
|
stepRecord,
|
|
1954
1954
|
stepConfig,
|
|
1955
|
-
variable:
|
|
1955
|
+
variable: fluent_1.Variables.AssertResponseTime.ResponseOperation,
|
|
1956
1956
|
startingValue: responseOperation,
|
|
1957
1957
|
});
|
|
1958
1958
|
this.createVariable({
|
|
1959
1959
|
stepRecord,
|
|
1960
1960
|
stepConfig,
|
|
1961
|
-
variable:
|
|
1961
|
+
variable: fluent_1.Variables.AssertResponseTime.ResponseTime,
|
|
1962
1962
|
startingValue: responseTime,
|
|
1963
1963
|
});
|
|
1964
1964
|
}
|
|
1965
1965
|
assertJsonResponsePayloadElement(inputs) {
|
|
1966
1966
|
const { elementName, operation, elementValue } = inputs;
|
|
1967
|
-
const stepConfig =
|
|
1967
|
+
const stepConfig = fluent_1.StepConfig.AssertJsonResponsePayloadElement;
|
|
1968
1968
|
const stepRecord = this.createStepRecord({
|
|
1969
1969
|
name: 'Assert JSON Response Payload Element',
|
|
1970
1970
|
stepConfig,
|
|
@@ -1974,25 +1974,25 @@ class ATF {
|
|
|
1974
1974
|
this.createVariable({
|
|
1975
1975
|
stepRecord,
|
|
1976
1976
|
stepConfig,
|
|
1977
|
-
variable:
|
|
1977
|
+
variable: fluent_1.Variables.AssertJsonResponsePayloadElement.ElementName,
|
|
1978
1978
|
startingValue: elementName,
|
|
1979
1979
|
});
|
|
1980
1980
|
this.createVariable({
|
|
1981
1981
|
stepRecord,
|
|
1982
1982
|
stepConfig,
|
|
1983
|
-
variable:
|
|
1983
|
+
variable: fluent_1.Variables.AssertJsonResponsePayloadElement.ResponseOperation,
|
|
1984
1984
|
startingValue: operation,
|
|
1985
1985
|
});
|
|
1986
1986
|
this.createVariable({
|
|
1987
1987
|
stepRecord,
|
|
1988
1988
|
stepConfig,
|
|
1989
|
-
variable:
|
|
1989
|
+
variable: fluent_1.Variables.AssertJsonResponsePayloadElement.ElementValue,
|
|
1990
1990
|
startingValue: elementValue,
|
|
1991
1991
|
});
|
|
1992
1992
|
}
|
|
1993
1993
|
setVariableValue_SP(inputs) {
|
|
1994
1994
|
const { catItem, variableSet, variableValues } = inputs;
|
|
1995
|
-
const stepConfig =
|
|
1995
|
+
const stepConfig = fluent_1.StepConfig.SetVariableValues_SP;
|
|
1996
1996
|
const stepRecord = this.createStepRecord({
|
|
1997
1997
|
name: 'Set Variable Values (SP)',
|
|
1998
1998
|
stepConfig,
|
|
@@ -2001,27 +2001,27 @@ class ATF {
|
|
|
2001
2001
|
this.createVariable({
|
|
2002
2002
|
stepConfig,
|
|
2003
2003
|
stepRecord,
|
|
2004
|
-
variable:
|
|
2004
|
+
variable: fluent_1.Variables.SetVariableValues_SP.Item,
|
|
2005
2005
|
startingValue: catItem,
|
|
2006
2006
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
2007
2007
|
});
|
|
2008
2008
|
this.createVariable({
|
|
2009
2009
|
stepConfig,
|
|
2010
2010
|
stepRecord,
|
|
2011
|
-
variable:
|
|
2011
|
+
variable: fluent_1.Variables.SetVariableValues_SP.VariableSet,
|
|
2012
2012
|
startingValue: variableSet,
|
|
2013
2013
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
2014
2014
|
});
|
|
2015
2015
|
this.createVariable({
|
|
2016
2016
|
stepConfig,
|
|
2017
2017
|
stepRecord,
|
|
2018
|
-
variable:
|
|
2018
|
+
variable: fluent_1.Variables.SetVariableValues_SP.VariableValues,
|
|
2019
2019
|
startingValue: variableValues,
|
|
2020
2020
|
});
|
|
2021
2021
|
}
|
|
2022
2022
|
validateVariableValue_SP(inputs) {
|
|
2023
2023
|
const { catItem, variableSet, variableValues } = inputs;
|
|
2024
|
-
const stepConfig =
|
|
2024
|
+
const stepConfig = fluent_1.StepConfig.ValidateVariableValues_SP;
|
|
2025
2025
|
const stepRecord = this.createStepRecord({
|
|
2026
2026
|
name: 'Validate Variable Values (SP)',
|
|
2027
2027
|
stepConfig,
|
|
@@ -2030,27 +2030,27 @@ class ATF {
|
|
|
2030
2030
|
this.createVariable({
|
|
2031
2031
|
stepConfig,
|
|
2032
2032
|
stepRecord,
|
|
2033
|
-
variable:
|
|
2033
|
+
variable: fluent_1.Variables.ValidateVariableValues_SP.Item,
|
|
2034
2034
|
startingValue: catItem,
|
|
2035
2035
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
2036
2036
|
});
|
|
2037
2037
|
this.createVariable({
|
|
2038
2038
|
stepConfig,
|
|
2039
2039
|
stepRecord,
|
|
2040
|
-
variable:
|
|
2040
|
+
variable: fluent_1.Variables.ValidateVariableValues_SP.VariableSet,
|
|
2041
2041
|
startingValue: variableSet,
|
|
2042
2042
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
2043
2043
|
});
|
|
2044
2044
|
this.createVariable({
|
|
2045
2045
|
stepConfig,
|
|
2046
2046
|
stepRecord,
|
|
2047
|
-
variable:
|
|
2047
|
+
variable: fluent_1.Variables.ValidateVariableValues_SP.Conditions,
|
|
2048
2048
|
startingValue: variableValues,
|
|
2049
2049
|
});
|
|
2050
2050
|
}
|
|
2051
2051
|
variableStateValidation_SP(inputs) {
|
|
2052
2052
|
const { catItem, variableSet, visible, notMandatory, notReadonly, notVisible, mandatory, readonly } = inputs;
|
|
2053
|
-
const stepConfig =
|
|
2053
|
+
const stepConfig = fluent_1.StepConfig.VariableStateValidation_SP;
|
|
2054
2054
|
const stepRecord = this.createStepRecord({
|
|
2055
2055
|
name: 'Variable State Validation (SP)',
|
|
2056
2056
|
stepConfig,
|
|
@@ -2059,63 +2059,63 @@ class ATF {
|
|
|
2059
2059
|
this.createVariable({
|
|
2060
2060
|
stepConfig,
|
|
2061
2061
|
stepRecord,
|
|
2062
|
-
variable:
|
|
2062
|
+
variable: fluent_1.Variables.VariableStateValidation_SP.Item,
|
|
2063
2063
|
startingValue: catItem,
|
|
2064
2064
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
2065
2065
|
});
|
|
2066
2066
|
this.createVariable({
|
|
2067
2067
|
stepConfig,
|
|
2068
2068
|
stepRecord,
|
|
2069
|
-
variable:
|
|
2069
|
+
variable: fluent_1.Variables.VariableStateValidation_SP.VariableSet,
|
|
2070
2070
|
startingValue: variableSet,
|
|
2071
2071
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
2072
2072
|
});
|
|
2073
2073
|
this.createVariable({
|
|
2074
2074
|
stepConfig,
|
|
2075
2075
|
stepRecord,
|
|
2076
|
-
variable:
|
|
2076
|
+
variable: fluent_1.Variables.VariableStateValidation_SP.Visible,
|
|
2077
2077
|
startingValue: visible,
|
|
2078
2078
|
stringifier: (val) => this.recordListToString(val),
|
|
2079
2079
|
});
|
|
2080
2080
|
this.createVariable({
|
|
2081
2081
|
stepConfig,
|
|
2082
2082
|
stepRecord,
|
|
2083
|
-
variable:
|
|
2083
|
+
variable: fluent_1.Variables.VariableStateValidation_SP.NotVisible,
|
|
2084
2084
|
startingValue: notVisible,
|
|
2085
2085
|
stringifier: (val) => this.recordListToString(val),
|
|
2086
2086
|
});
|
|
2087
2087
|
this.createVariable({
|
|
2088
2088
|
stepConfig,
|
|
2089
2089
|
stepRecord,
|
|
2090
|
-
variable:
|
|
2090
|
+
variable: fluent_1.Variables.VariableStateValidation_SP.Mandatory,
|
|
2091
2091
|
startingValue: mandatory,
|
|
2092
2092
|
stringifier: (val) => this.recordListToString(val),
|
|
2093
2093
|
});
|
|
2094
2094
|
this.createVariable({
|
|
2095
2095
|
stepConfig,
|
|
2096
2096
|
stepRecord,
|
|
2097
|
-
variable:
|
|
2097
|
+
variable: fluent_1.Variables.VariableStateValidation_SP.NotMandatory,
|
|
2098
2098
|
startingValue: notMandatory,
|
|
2099
2099
|
stringifier: (val) => this.recordListToString(val),
|
|
2100
2100
|
});
|
|
2101
2101
|
this.createVariable({
|
|
2102
2102
|
stepConfig,
|
|
2103
2103
|
stepRecord,
|
|
2104
|
-
variable:
|
|
2104
|
+
variable: fluent_1.Variables.VariableStateValidation_SP.ReadOnly,
|
|
2105
2105
|
startingValue: readonly,
|
|
2106
2106
|
stringifier: (val) => this.recordListToString(val),
|
|
2107
2107
|
});
|
|
2108
2108
|
this.createVariable({
|
|
2109
2109
|
stepConfig,
|
|
2110
2110
|
stepRecord,
|
|
2111
|
-
variable:
|
|
2111
|
+
variable: fluent_1.Variables.VariableStateValidation_SP.NotReadOnly,
|
|
2112
2112
|
startingValue: notReadonly,
|
|
2113
2113
|
stringifier: (val) => this.recordListToString(val),
|
|
2114
2114
|
});
|
|
2115
2115
|
}
|
|
2116
2116
|
validatePriceAndRecurringPrice_SP(inputs) {
|
|
2117
2117
|
const { price, recurringPrice, frequency } = inputs;
|
|
2118
|
-
const stepConfig =
|
|
2118
|
+
const stepConfig = fluent_1.StepConfig.ValidatePriceandRecurringPrice_SP;
|
|
2119
2119
|
const stepRecord = this.createStepRecord({
|
|
2120
2120
|
stepConfig,
|
|
2121
2121
|
name: 'Validate Price and Recurring Price (SP)',
|
|
@@ -2124,25 +2124,25 @@ class ATF {
|
|
|
2124
2124
|
this.createVariable({
|
|
2125
2125
|
stepConfig,
|
|
2126
2126
|
stepRecord,
|
|
2127
|
-
variable:
|
|
2127
|
+
variable: fluent_1.Variables.ValidatePriceandRecurringPrice_SP.Price,
|
|
2128
2128
|
startingValue: price,
|
|
2129
2129
|
});
|
|
2130
2130
|
this.createVariable({
|
|
2131
2131
|
stepConfig,
|
|
2132
2132
|
stepRecord,
|
|
2133
|
-
variable:
|
|
2133
|
+
variable: fluent_1.Variables.ValidatePriceandRecurringPrice_SP.RecurringPrice,
|
|
2134
2134
|
startingValue: recurringPrice,
|
|
2135
2135
|
});
|
|
2136
2136
|
this.createVariable({
|
|
2137
2137
|
stepConfig,
|
|
2138
2138
|
stepRecord,
|
|
2139
|
-
variable:
|
|
2139
|
+
variable: fluent_1.Variables.ValidatePriceandRecurringPrice_SP.RecurringFrequency,
|
|
2140
2140
|
startingValue: frequency,
|
|
2141
2141
|
});
|
|
2142
2142
|
}
|
|
2143
2143
|
navigatewithinOrderGuide_SP(inputs) {
|
|
2144
2144
|
const { guideStep, assert } = inputs;
|
|
2145
|
-
const stepConfig =
|
|
2145
|
+
const stepConfig = fluent_1.StepConfig.NavigatewithinOrderGuide_SP;
|
|
2146
2146
|
const stepRecord = this.createStepRecord({
|
|
2147
2147
|
stepConfig,
|
|
2148
2148
|
name: 'Navigate within Order Guide (SP)',
|
|
@@ -2151,19 +2151,19 @@ class ATF {
|
|
|
2151
2151
|
this.createVariable({
|
|
2152
2152
|
stepConfig,
|
|
2153
2153
|
stepRecord,
|
|
2154
|
-
variable:
|
|
2154
|
+
variable: fluent_1.Variables.NavigatewithinOrderGuide_SP.GuideStep,
|
|
2155
2155
|
startingValue: guideStep,
|
|
2156
2156
|
});
|
|
2157
2157
|
this.createVariable({
|
|
2158
2158
|
stepConfig,
|
|
2159
2159
|
stepRecord,
|
|
2160
|
-
variable:
|
|
2160
|
+
variable: fluent_1.Variables.NavigatewithinOrderGuide_SP.Assert,
|
|
2161
2161
|
startingValue: assert,
|
|
2162
2162
|
});
|
|
2163
2163
|
}
|
|
2164
2164
|
setFieldValue_SP(inputs) {
|
|
2165
2165
|
const { table, fieldValues } = inputs;
|
|
2166
|
-
const stepConfig =
|
|
2166
|
+
const stepConfig = fluent_1.StepConfig.SetFieldValues_SP;
|
|
2167
2167
|
const stepRecord = this.createStepRecord({
|
|
2168
2168
|
name: 'Set Field Values (SP)',
|
|
2169
2169
|
stepConfig,
|
|
@@ -2173,20 +2173,20 @@ class ATF {
|
|
|
2173
2173
|
this.createVariable({
|
|
2174
2174
|
stepConfig,
|
|
2175
2175
|
stepRecord,
|
|
2176
|
-
variable:
|
|
2176
|
+
variable: fluent_1.Variables.SetFieldValues_SP.Table,
|
|
2177
2177
|
startingValue: table,
|
|
2178
2178
|
});
|
|
2179
2179
|
this.createVariable({
|
|
2180
2180
|
stepConfig,
|
|
2181
2181
|
stepRecord,
|
|
2182
|
-
variable:
|
|
2182
|
+
variable: fluent_1.Variables.SetFieldValues_SP.FieldValues,
|
|
2183
2183
|
startingValue: fieldValues,
|
|
2184
2184
|
stringifier: (val) => this.fieldValuesToQuery(val),
|
|
2185
2185
|
});
|
|
2186
2186
|
}
|
|
2187
2187
|
setCatalogItemQuantity_SP(inputs) {
|
|
2188
2188
|
const { quantity } = inputs;
|
|
2189
|
-
const stepConfig =
|
|
2189
|
+
const stepConfig = fluent_1.StepConfig.SetCatalogItemQuantity_SP;
|
|
2190
2190
|
const stepRecord = this.createStepRecord({
|
|
2191
2191
|
stepConfig,
|
|
2192
2192
|
name: 'Set Catalog Item Quantity (SP)',
|
|
@@ -2195,13 +2195,13 @@ class ATF {
|
|
|
2195
2195
|
this.createVariable({
|
|
2196
2196
|
stepConfig,
|
|
2197
2197
|
stepRecord,
|
|
2198
|
-
variable:
|
|
2198
|
+
variable: fluent_1.Variables.SetCatalogItemQuantity_SP.Quantity,
|
|
2199
2199
|
startingValue: quantity,
|
|
2200
2200
|
});
|
|
2201
2201
|
}
|
|
2202
2202
|
validateOrderGuideItem_SP(inputs) {
|
|
2203
2203
|
const { items } = inputs;
|
|
2204
|
-
const stepConfig =
|
|
2204
|
+
const stepConfig = fluent_1.StepConfig.ValidateOrderGuideItems_SP;
|
|
2205
2205
|
const stepRecord = this.createStepRecord({
|
|
2206
2206
|
name: 'Validate Order Guide Items (SP)',
|
|
2207
2207
|
stepConfig,
|
|
@@ -2210,14 +2210,14 @@ class ATF {
|
|
|
2210
2210
|
this.createVariable({
|
|
2211
2211
|
stepConfig,
|
|
2212
2212
|
stepRecord,
|
|
2213
|
-
variable:
|
|
2213
|
+
variable: fluent_1.Variables.ValidateOrderGuideItems_SP.Items,
|
|
2214
2214
|
startingValue: items,
|
|
2215
2215
|
stringifier: (val) => this.recordListToString(val),
|
|
2216
2216
|
});
|
|
2217
2217
|
}
|
|
2218
2218
|
reviewOrderGuideSummary_SP(inputs) {
|
|
2219
2219
|
const { items, price } = inputs;
|
|
2220
|
-
const stepConfig =
|
|
2220
|
+
const stepConfig = fluent_1.StepConfig.ReviewOrderGuideSummary_SP;
|
|
2221
2221
|
const stepRecord = this.createStepRecord({
|
|
2222
2222
|
stepConfig,
|
|
2223
2223
|
name: 'Review Order Guide Summary (SP)',
|
|
@@ -2226,20 +2226,20 @@ class ATF {
|
|
|
2226
2226
|
this.createVariable({
|
|
2227
2227
|
stepConfig,
|
|
2228
2228
|
stepRecord,
|
|
2229
|
-
variable:
|
|
2229
|
+
variable: fluent_1.Variables.ReviewOrderGuideSummary_SP.Price,
|
|
2230
2230
|
startingValue: price,
|
|
2231
2231
|
});
|
|
2232
2232
|
this.createVariable({
|
|
2233
2233
|
stepConfig,
|
|
2234
2234
|
stepRecord,
|
|
2235
|
-
variable:
|
|
2235
|
+
variable: fluent_1.Variables.ReviewOrderGuideSummary_SP.Items,
|
|
2236
2236
|
startingValue: items,
|
|
2237
2237
|
stringifier: (val) => this.recordListToString(val),
|
|
2238
2238
|
});
|
|
2239
2239
|
}
|
|
2240
2240
|
fieldValueValidation_SP(inputs) {
|
|
2241
2241
|
const { table, conditions } = inputs;
|
|
2242
|
-
const stepConfig =
|
|
2242
|
+
const stepConfig = fluent_1.StepConfig.FieldValuesValidation_SP;
|
|
2243
2243
|
const stepRecord = this.createStepRecord({
|
|
2244
2244
|
stepConfig,
|
|
2245
2245
|
name: 'Field Values Validation (SP)',
|
|
@@ -2248,19 +2248,19 @@ class ATF {
|
|
|
2248
2248
|
this.createVariable({
|
|
2249
2249
|
stepConfig,
|
|
2250
2250
|
stepRecord,
|
|
2251
|
-
variable:
|
|
2251
|
+
variable: fluent_1.Variables.FieldValuesValidation_SP.Table,
|
|
2252
2252
|
startingValue: table,
|
|
2253
2253
|
});
|
|
2254
2254
|
this.createVariable({
|
|
2255
2255
|
stepConfig,
|
|
2256
2256
|
stepRecord,
|
|
2257
|
-
variable:
|
|
2257
|
+
variable: fluent_1.Variables.FieldValuesValidation_SP.Conditions,
|
|
2258
2258
|
startingValue: conditions,
|
|
2259
2259
|
});
|
|
2260
2260
|
}
|
|
2261
2261
|
fieldStateValidation_SP(inputs) {
|
|
2262
2262
|
const { table, mandatory, notMandatory, notReadonly, notVisible, readonly, visible } = inputs;
|
|
2263
|
-
const stepConfig =
|
|
2263
|
+
const stepConfig = fluent_1.StepConfig.FieldStateValidation_SP;
|
|
2264
2264
|
const stepRecord = this.createStepRecord({
|
|
2265
2265
|
stepConfig,
|
|
2266
2266
|
name: 'Field State Validation (SP)',
|
|
@@ -2270,55 +2270,55 @@ class ATF {
|
|
|
2270
2270
|
this.createVariable({
|
|
2271
2271
|
stepConfig,
|
|
2272
2272
|
stepRecord,
|
|
2273
|
-
variable:
|
|
2273
|
+
variable: fluent_1.Variables.FieldStateValidation_SP.Table,
|
|
2274
2274
|
startingValue: table,
|
|
2275
2275
|
});
|
|
2276
2276
|
this.createVariable({
|
|
2277
2277
|
stepConfig,
|
|
2278
2278
|
stepRecord,
|
|
2279
|
-
variable:
|
|
2279
|
+
variable: fluent_1.Variables.FieldStateValidation_SP.Mandatory,
|
|
2280
2280
|
startingValue: mandatory,
|
|
2281
2281
|
stringifier: (val) => this.recordListToString(val),
|
|
2282
2282
|
});
|
|
2283
2283
|
this.createVariable({
|
|
2284
2284
|
stepConfig,
|
|
2285
2285
|
stepRecord,
|
|
2286
|
-
variable:
|
|
2286
|
+
variable: fluent_1.Variables.FieldStateValidation_SP.NotMandatory,
|
|
2287
2287
|
startingValue: notMandatory,
|
|
2288
2288
|
stringifier: (val) => this.recordListToString(val),
|
|
2289
2289
|
});
|
|
2290
2290
|
this.createVariable({
|
|
2291
2291
|
stepConfig,
|
|
2292
2292
|
stepRecord,
|
|
2293
|
-
variable:
|
|
2293
|
+
variable: fluent_1.Variables.FieldStateValidation_SP.ReadOnly,
|
|
2294
2294
|
startingValue: readonly,
|
|
2295
2295
|
stringifier: (val) => this.recordListToString(val),
|
|
2296
2296
|
});
|
|
2297
2297
|
this.createVariable({
|
|
2298
2298
|
stepConfig,
|
|
2299
2299
|
stepRecord,
|
|
2300
|
-
variable:
|
|
2300
|
+
variable: fluent_1.Variables.FieldStateValidation_SP.NotReadOnly,
|
|
2301
2301
|
startingValue: notReadonly,
|
|
2302
2302
|
stringifier: (val) => this.recordListToString(val),
|
|
2303
2303
|
});
|
|
2304
2304
|
this.createVariable({
|
|
2305
2305
|
stepConfig,
|
|
2306
2306
|
stepRecord,
|
|
2307
|
-
variable:
|
|
2307
|
+
variable: fluent_1.Variables.FieldStateValidation_SP.Visible,
|
|
2308
2308
|
startingValue: visible,
|
|
2309
2309
|
stringifier: (val) => this.recordListToString(val),
|
|
2310
2310
|
});
|
|
2311
2311
|
this.createVariable({
|
|
2312
2312
|
stepConfig,
|
|
2313
2313
|
stepRecord,
|
|
2314
|
-
variable:
|
|
2314
|
+
variable: fluent_1.Variables.FieldStateValidation_SP.NotVisible,
|
|
2315
2315
|
startingValue: notVisible,
|
|
2316
2316
|
stringifier: (val) => this.recordListToString(val),
|
|
2317
2317
|
});
|
|
2318
2318
|
}
|
|
2319
2319
|
uiActionVisibilityValidation_SP(inputs) {
|
|
2320
2320
|
const { table, visible, notVisible } = inputs;
|
|
2321
|
-
const stepConfig =
|
|
2321
|
+
const stepConfig = fluent_1.StepConfig.UIActionVisibilityValidation_SP;
|
|
2322
2322
|
const stepRecord = this.createStepRecord({
|
|
2323
2323
|
name: 'UI Action Visibility Validation (SP)',
|
|
2324
2324
|
stepConfig,
|
|
@@ -2328,27 +2328,27 @@ class ATF {
|
|
|
2328
2328
|
this.createVariable({
|
|
2329
2329
|
stepConfig,
|
|
2330
2330
|
stepRecord,
|
|
2331
|
-
variable:
|
|
2331
|
+
variable: fluent_1.Variables.UIActionVisibilityValidation_SP.Table,
|
|
2332
2332
|
startingValue: table,
|
|
2333
2333
|
});
|
|
2334
2334
|
this.createVariable({
|
|
2335
2335
|
stepConfig,
|
|
2336
2336
|
stepRecord,
|
|
2337
|
-
variable:
|
|
2337
|
+
variable: fluent_1.Variables.UIActionVisibilityValidation_SP.Visible,
|
|
2338
2338
|
startingValue: visible,
|
|
2339
2339
|
stringifier: (val) => this.recordListToString(val),
|
|
2340
2340
|
});
|
|
2341
2341
|
this.createVariable({
|
|
2342
2342
|
stepConfig,
|
|
2343
2343
|
stepRecord,
|
|
2344
|
-
variable:
|
|
2344
|
+
variable: fluent_1.Variables.UIActionVisibilityValidation_SP.NotVisible,
|
|
2345
2345
|
startingValue: notVisible,
|
|
2346
2346
|
stringifier: (val) => this.recordListToString(val),
|
|
2347
2347
|
});
|
|
2348
2348
|
}
|
|
2349
2349
|
reviewIteminOrderGuide_SP(inputs) {
|
|
2350
2350
|
const { item, included } = inputs;
|
|
2351
|
-
const stepConfig =
|
|
2351
|
+
const stepConfig = fluent_1.StepConfig.ReviewIteminOrderGuide_SP;
|
|
2352
2352
|
const stepRecord = this.createStepRecord({
|
|
2353
2353
|
name: 'Review Item in Order Guide (SP)',
|
|
2354
2354
|
stepConfig,
|
|
@@ -2357,20 +2357,20 @@ class ATF {
|
|
|
2357
2357
|
this.createVariable({
|
|
2358
2358
|
stepConfig,
|
|
2359
2359
|
stepRecord,
|
|
2360
|
-
variable:
|
|
2360
|
+
variable: fluent_1.Variables.ReviewIteminOrderGuide_SP.Item,
|
|
2361
2361
|
startingValue: item,
|
|
2362
2362
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
2363
2363
|
});
|
|
2364
2364
|
this.createVariable({
|
|
2365
2365
|
stepConfig,
|
|
2366
2366
|
stepRecord,
|
|
2367
|
-
variable:
|
|
2367
|
+
variable: fluent_1.Variables.ReviewIteminOrderGuide_SP.Included,
|
|
2368
2368
|
startingValue: included,
|
|
2369
2369
|
});
|
|
2370
2370
|
}
|
|
2371
2371
|
clickUIAction_SP(inputs) {
|
|
2372
2372
|
const { table, uiAction, assert } = inputs;
|
|
2373
|
-
const stepConfig =
|
|
2373
|
+
const stepConfig = fluent_1.StepConfig.ClickaUIAction_SP;
|
|
2374
2374
|
const stepRecord = this.createStepRecord({
|
|
2375
2375
|
stepConfig,
|
|
2376
2376
|
name: 'Click a UI Action (SP)',
|
|
@@ -2380,26 +2380,26 @@ class ATF {
|
|
|
2380
2380
|
this.createVariable({
|
|
2381
2381
|
stepConfig,
|
|
2382
2382
|
stepRecord,
|
|
2383
|
-
variable:
|
|
2383
|
+
variable: fluent_1.Variables.ClickaUIAction_SP.Table,
|
|
2384
2384
|
startingValue: table,
|
|
2385
2385
|
});
|
|
2386
2386
|
this.createVariable({
|
|
2387
2387
|
stepConfig,
|
|
2388
2388
|
stepRecord,
|
|
2389
|
-
variable:
|
|
2389
|
+
variable: fluent_1.Variables.ClickaUIAction_SP.Assert,
|
|
2390
2390
|
startingValue: assert,
|
|
2391
2391
|
});
|
|
2392
2392
|
this.createVariable({
|
|
2393
2393
|
stepConfig,
|
|
2394
2394
|
stepRecord,
|
|
2395
|
-
variable:
|
|
2395
|
+
variable: fluent_1.Variables.ClickaUIAction_SP.UIAction,
|
|
2396
2396
|
startingValue: uiAction,
|
|
2397
2397
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
2398
2398
|
});
|
|
2399
2399
|
}
|
|
2400
2400
|
submitForm_SP(inputs) {
|
|
2401
2401
|
const { assert } = inputs;
|
|
2402
|
-
const stepConfig =
|
|
2402
|
+
const stepConfig = fluent_1.StepConfig.SubmitForm_SP;
|
|
2403
2403
|
const stepRecord = this.createStepRecord({
|
|
2404
2404
|
name: 'Submit a Form (SP)',
|
|
2405
2405
|
stepConfig,
|
|
@@ -2408,13 +2408,13 @@ class ATF {
|
|
|
2408
2408
|
this.createVariable({
|
|
2409
2409
|
stepConfig,
|
|
2410
2410
|
stepRecord,
|
|
2411
|
-
variable:
|
|
2411
|
+
variable: fluent_1.Variables.SubmitForm_SP.Assert,
|
|
2412
2412
|
startingValue: assert,
|
|
2413
2413
|
});
|
|
2414
2414
|
}
|
|
2415
2415
|
addItemtoShoppingCart_SP(inputs) {
|
|
2416
2416
|
const { assert } = inputs;
|
|
2417
|
-
const stepConfig =
|
|
2417
|
+
const stepConfig = fluent_1.StepConfig.AddItemtoShoppingCart_SP;
|
|
2418
2418
|
const stepRecord = this.createStepRecord({
|
|
2419
2419
|
stepConfig,
|
|
2420
2420
|
name: 'Add Item to Shopping Cart (SP)',
|
|
@@ -2423,13 +2423,13 @@ class ATF {
|
|
|
2423
2423
|
this.createVariable({
|
|
2424
2424
|
stepConfig,
|
|
2425
2425
|
stepRecord,
|
|
2426
|
-
variable:
|
|
2426
|
+
variable: fluent_1.Variables.AddItemtoShoppingCart_SP.Assert,
|
|
2427
2427
|
startingValue: assert,
|
|
2428
2428
|
});
|
|
2429
2429
|
}
|
|
2430
2430
|
addOrderGuidetoShoppingCart_SP(inputs) {
|
|
2431
2431
|
const { assert } = inputs;
|
|
2432
|
-
const stepConfig =
|
|
2432
|
+
const stepConfig = fluent_1.StepConfig.AddOrderGuidetoShoppingCart_SP;
|
|
2433
2433
|
const stepRecord = this.createStepRecord({
|
|
2434
2434
|
stepConfig,
|
|
2435
2435
|
name: 'Add Order Guide to Shopping Cart (SP)',
|
|
@@ -2438,13 +2438,13 @@ class ATF {
|
|
|
2438
2438
|
this.createVariable({
|
|
2439
2439
|
stepConfig,
|
|
2440
2440
|
stepRecord,
|
|
2441
|
-
variable:
|
|
2441
|
+
variable: fluent_1.Variables.AddOrderGuidetoShoppingCart_SP.Assert,
|
|
2442
2442
|
startingValue: assert,
|
|
2443
2443
|
});
|
|
2444
2444
|
}
|
|
2445
2445
|
submitOrderGuide_SP(inputs) {
|
|
2446
2446
|
const { assert } = inputs;
|
|
2447
|
-
const stepConfig =
|
|
2447
|
+
const stepConfig = fluent_1.StepConfig.SubmitOrderGuide_SP;
|
|
2448
2448
|
const stepRecord = this.createStepRecord({
|
|
2449
2449
|
name: 'Submit an Order Guide (SP)',
|
|
2450
2450
|
stepConfig,
|
|
@@ -2453,13 +2453,13 @@ class ATF {
|
|
|
2453
2453
|
this.createVariable({
|
|
2454
2454
|
stepConfig,
|
|
2455
2455
|
stepRecord,
|
|
2456
|
-
variable:
|
|
2456
|
+
variable: fluent_1.Variables.SubmitOrderGuide_SP.Assert,
|
|
2457
2457
|
startingValue: assert,
|
|
2458
2458
|
});
|
|
2459
2459
|
}
|
|
2460
2460
|
submitRecordProducer_SP(inputs) {
|
|
2461
2461
|
const { assert } = inputs;
|
|
2462
|
-
const stepConfig =
|
|
2462
|
+
const stepConfig = fluent_1.StepConfig.SubmitRecordProducer_SP;
|
|
2463
2463
|
const stepRecord = this.createStepRecord({
|
|
2464
2464
|
stepConfig,
|
|
2465
2465
|
name: 'Submit Record Producer (SP)',
|
|
@@ -2468,13 +2468,13 @@ class ATF {
|
|
|
2468
2468
|
this.createVariable({
|
|
2469
2469
|
stepConfig,
|
|
2470
2470
|
stepRecord,
|
|
2471
|
-
variable:
|
|
2471
|
+
variable: fluent_1.Variables.SubmitRecordProducer_SP.Assert,
|
|
2472
2472
|
startingValue: assert,
|
|
2473
2473
|
});
|
|
2474
2474
|
}
|
|
2475
2475
|
orderCatalogItem_SP(inputs) {
|
|
2476
2476
|
const { assert } = inputs;
|
|
2477
|
-
const stepConfig =
|
|
2477
|
+
const stepConfig = fluent_1.StepConfig.OrderCatalogItem_SP;
|
|
2478
2478
|
const stepRecord = this.createStepRecord({
|
|
2479
2479
|
name: 'Order a Catalog Item (SP)',
|
|
2480
2480
|
stepConfig,
|
|
@@ -2483,13 +2483,13 @@ class ATF {
|
|
|
2483
2483
|
this.createVariable({
|
|
2484
2484
|
stepConfig,
|
|
2485
2485
|
stepRecord,
|
|
2486
|
-
variable:
|
|
2486
|
+
variable: fluent_1.Variables.OrderCatalogItem_SP.Assert,
|
|
2487
2487
|
startingValue: assert,
|
|
2488
2488
|
});
|
|
2489
2489
|
}
|
|
2490
2490
|
validateOutboundEmail(inputs) {
|
|
2491
2491
|
const { conditions } = inputs;
|
|
2492
|
-
const stepConfig =
|
|
2492
|
+
const stepConfig = fluent_1.StepConfig.ValidateOutboundEmail;
|
|
2493
2493
|
const stepRecord = this.createStepRecord({
|
|
2494
2494
|
name: 'Validate Outbound Email',
|
|
2495
2495
|
stepConfig,
|
|
@@ -2498,19 +2498,19 @@ class ATF {
|
|
|
2498
2498
|
this.createVariable({
|
|
2499
2499
|
stepConfig,
|
|
2500
2500
|
stepRecord,
|
|
2501
|
-
variable:
|
|
2501
|
+
variable: fluent_1.Variables.ValidateOutboundEmail.Conditions,
|
|
2502
2502
|
startingValue: conditions,
|
|
2503
2503
|
});
|
|
2504
2504
|
this.createVariable({
|
|
2505
2505
|
stepConfig,
|
|
2506
2506
|
stepRecord,
|
|
2507
|
-
variable:
|
|
2507
|
+
variable: fluent_1.Variables.ValidateOutboundEmail.Table,
|
|
2508
2508
|
startingValue: 'sys_email',
|
|
2509
2509
|
});
|
|
2510
2510
|
}
|
|
2511
2511
|
recordInsert(inputs) {
|
|
2512
2512
|
const { assertType, enforceSecurity, table, fieldValues } = inputs;
|
|
2513
|
-
const stepConfig =
|
|
2513
|
+
const stepConfig = fluent_1.StepConfig.RecordInsert;
|
|
2514
2514
|
const stepRecord = this.createStepRecord({
|
|
2515
2515
|
name: 'Record Insert',
|
|
2516
2516
|
stepConfig,
|
|
@@ -2519,32 +2519,32 @@ class ATF {
|
|
|
2519
2519
|
this.createVariable({
|
|
2520
2520
|
stepConfig,
|
|
2521
2521
|
stepRecord,
|
|
2522
|
-
variable:
|
|
2522
|
+
variable: fluent_1.Variables.RecordInsert.AssertType,
|
|
2523
2523
|
startingValue: assertType,
|
|
2524
2524
|
});
|
|
2525
2525
|
this.createVariable({
|
|
2526
2526
|
stepConfig,
|
|
2527
2527
|
stepRecord,
|
|
2528
|
-
variable:
|
|
2528
|
+
variable: fluent_1.Variables.RecordInsert.EnforceSecurity,
|
|
2529
2529
|
startingValue: enforceSecurity,
|
|
2530
2530
|
});
|
|
2531
2531
|
this.createVariable({
|
|
2532
2532
|
stepConfig,
|
|
2533
2533
|
stepRecord,
|
|
2534
|
-
variable:
|
|
2534
|
+
variable: fluent_1.Variables.RecordInsert.Table,
|
|
2535
2535
|
startingValue: table,
|
|
2536
2536
|
});
|
|
2537
2537
|
this.createVariable({
|
|
2538
2538
|
stepConfig,
|
|
2539
2539
|
stepRecord,
|
|
2540
|
-
variable:
|
|
2540
|
+
variable: fluent_1.Variables.RecordInsert.FieldValues,
|
|
2541
2541
|
startingValue: fieldValues,
|
|
2542
2542
|
stringifier: (val) => this.fieldValuesToQuery(val),
|
|
2543
2543
|
});
|
|
2544
2544
|
}
|
|
2545
2545
|
searchForCatalogItem(inputs) {
|
|
2546
2546
|
const { search_in_portal, search_term, catalog, category, assert_item, assert_type } = inputs;
|
|
2547
|
-
const stepConfig =
|
|
2547
|
+
const stepConfig = fluent_1.StepConfig.SearchForACatalogItem;
|
|
2548
2548
|
const stepRecord = this.createStepRecord({
|
|
2549
2549
|
name: 'Search for a Catalog Item',
|
|
2550
2550
|
stepConfig,
|
|
@@ -2553,46 +2553,46 @@ class ATF {
|
|
|
2553
2553
|
this.createVariable({
|
|
2554
2554
|
stepConfig,
|
|
2555
2555
|
stepRecord,
|
|
2556
|
-
variable:
|
|
2556
|
+
variable: fluent_1.Variables.SearchForACatalogItem.SearchInPortalOnly,
|
|
2557
2557
|
startingValue: search_in_portal,
|
|
2558
2558
|
});
|
|
2559
2559
|
this.createVariable({
|
|
2560
2560
|
stepConfig,
|
|
2561
2561
|
stepRecord,
|
|
2562
|
-
variable:
|
|
2562
|
+
variable: fluent_1.Variables.SearchForACatalogItem.SearchTerm,
|
|
2563
2563
|
startingValue: search_term,
|
|
2564
2564
|
});
|
|
2565
2565
|
this.createVariable({
|
|
2566
2566
|
stepConfig,
|
|
2567
2567
|
stepRecord,
|
|
2568
|
-
variable:
|
|
2568
|
+
variable: fluent_1.Variables.SearchForACatalogItem.Catalog,
|
|
2569
2569
|
startingValue: catalog,
|
|
2570
2570
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
2571
2571
|
});
|
|
2572
2572
|
this.createVariable({
|
|
2573
2573
|
stepConfig,
|
|
2574
2574
|
stepRecord,
|
|
2575
|
-
variable:
|
|
2575
|
+
variable: fluent_1.Variables.SearchForACatalogItem.Category,
|
|
2576
2576
|
startingValue: category,
|
|
2577
2577
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
2578
2578
|
});
|
|
2579
2579
|
this.createVariable({
|
|
2580
2580
|
stepConfig,
|
|
2581
2581
|
stepRecord,
|
|
2582
|
-
variable:
|
|
2582
|
+
variable: fluent_1.Variables.SearchForACatalogItem.AssertItem,
|
|
2583
2583
|
startingValue: assert_item,
|
|
2584
2584
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
2585
2585
|
});
|
|
2586
2586
|
this.createVariable({
|
|
2587
2587
|
stepConfig,
|
|
2588
2588
|
stepRecord,
|
|
2589
|
-
variable:
|
|
2589
|
+
variable: fluent_1.Variables.SearchForACatalogItem.AssertType,
|
|
2590
2590
|
startingValue: assert_type,
|
|
2591
2591
|
});
|
|
2592
2592
|
}
|
|
2593
2593
|
replayRequestItem(inputs) {
|
|
2594
2594
|
const { request_item } = inputs;
|
|
2595
|
-
const stepConfig =
|
|
2595
|
+
const stepConfig = fluent_1.StepConfig.ReplayRequestItem;
|
|
2596
2596
|
const stepRecord = this.createStepRecord({
|
|
2597
2597
|
name: 'Replay Request Item',
|
|
2598
2598
|
stepConfig,
|
|
@@ -2601,14 +2601,14 @@ class ATF {
|
|
|
2601
2601
|
this.createVariable({
|
|
2602
2602
|
stepConfig,
|
|
2603
2603
|
stepRecord,
|
|
2604
|
-
variable:
|
|
2604
|
+
variable: fluent_1.Variables.ReplayRequestItem.OriginalRequestItem,
|
|
2605
2605
|
startingValue: request_item,
|
|
2606
2606
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
2607
2607
|
});
|
|
2608
2608
|
}
|
|
2609
2609
|
variableStateValidation(inputs) {
|
|
2610
2610
|
const { catalog_item, visible, not_visible, read_only, not_read_only, mandatory, not_mandatory } = inputs;
|
|
2611
|
-
const stepConfig =
|
|
2611
|
+
const stepConfig = fluent_1.StepConfig.VariableStateValidation;
|
|
2612
2612
|
const stepRecord = this.createStepRecord({
|
|
2613
2613
|
name: 'Variable State Validation',
|
|
2614
2614
|
stepConfig,
|
|
@@ -2617,56 +2617,56 @@ class ATF {
|
|
|
2617
2617
|
this.createVariable({
|
|
2618
2618
|
stepConfig,
|
|
2619
2619
|
stepRecord,
|
|
2620
|
-
variable:
|
|
2620
|
+
variable: fluent_1.Variables.VariableStateValidation.CatalogItem,
|
|
2621
2621
|
startingValue: catalog_item,
|
|
2622
2622
|
stringifier: (val) => this.extractSysIdIfRecord(val),
|
|
2623
2623
|
});
|
|
2624
2624
|
this.createVariable({
|
|
2625
2625
|
stepConfig,
|
|
2626
2626
|
stepRecord,
|
|
2627
|
-
variable:
|
|
2627
|
+
variable: fluent_1.Variables.VariableStateValidation.Visible,
|
|
2628
2628
|
startingValue: visible,
|
|
2629
2629
|
stringifier: (val) => this.recordListToString(val),
|
|
2630
2630
|
});
|
|
2631
2631
|
this.createVariable({
|
|
2632
2632
|
stepConfig,
|
|
2633
2633
|
stepRecord,
|
|
2634
|
-
variable:
|
|
2634
|
+
variable: fluent_1.Variables.VariableStateValidation.NotVisible,
|
|
2635
2635
|
startingValue: not_visible,
|
|
2636
2636
|
stringifier: (val) => this.recordListToString(val),
|
|
2637
2637
|
});
|
|
2638
2638
|
this.createVariable({
|
|
2639
2639
|
stepConfig,
|
|
2640
2640
|
stepRecord,
|
|
2641
|
-
variable:
|
|
2641
|
+
variable: fluent_1.Variables.VariableStateValidation.ReadOnly,
|
|
2642
2642
|
startingValue: read_only,
|
|
2643
2643
|
stringifier: (val) => this.recordListToString(val),
|
|
2644
2644
|
});
|
|
2645
2645
|
this.createVariable({
|
|
2646
2646
|
stepConfig,
|
|
2647
2647
|
stepRecord,
|
|
2648
|
-
variable:
|
|
2648
|
+
variable: fluent_1.Variables.VariableStateValidation.NotReadOnly,
|
|
2649
2649
|
startingValue: not_read_only,
|
|
2650
2650
|
stringifier: (val) => this.recordListToString(val),
|
|
2651
2651
|
});
|
|
2652
2652
|
this.createVariable({
|
|
2653
2653
|
stepConfig,
|
|
2654
2654
|
stepRecord,
|
|
2655
|
-
variable:
|
|
2655
|
+
variable: fluent_1.Variables.VariableStateValidation.Mandatory,
|
|
2656
2656
|
startingValue: mandatory,
|
|
2657
2657
|
stringifier: (val) => this.recordListToString(val),
|
|
2658
2658
|
});
|
|
2659
2659
|
this.createVariable({
|
|
2660
2660
|
stepConfig,
|
|
2661
2661
|
stepRecord,
|
|
2662
|
-
variable:
|
|
2662
|
+
variable: fluent_1.Variables.VariableStateValidation.NotMandatory,
|
|
2663
2663
|
startingValue: not_mandatory,
|
|
2664
2664
|
stringifier: (val) => this.recordListToString(val),
|
|
2665
2665
|
});
|
|
2666
2666
|
}
|
|
2667
2667
|
assertResponseHeader(inputs) {
|
|
2668
2668
|
const { header_name, response_operation, header_value } = inputs;
|
|
2669
|
-
const stepConfig =
|
|
2669
|
+
const stepConfig = fluent_1.StepConfig.AssertResponseHeader;
|
|
2670
2670
|
const stepRecord = this.createStepRecord({
|
|
2671
2671
|
name: 'Assert Response Header',
|
|
2672
2672
|
stepConfig,
|
|
@@ -2675,25 +2675,25 @@ class ATF {
|
|
|
2675
2675
|
this.createVariable({
|
|
2676
2676
|
stepConfig,
|
|
2677
2677
|
stepRecord,
|
|
2678
|
-
variable:
|
|
2678
|
+
variable: fluent_1.Variables.AssertResponseHeader.Header,
|
|
2679
2679
|
startingValue: header_name,
|
|
2680
2680
|
});
|
|
2681
2681
|
this.createVariable({
|
|
2682
2682
|
stepConfig,
|
|
2683
2683
|
stepRecord,
|
|
2684
|
-
variable:
|
|
2684
|
+
variable: fluent_1.Variables.AssertResponseHeader.Operation,
|
|
2685
2685
|
startingValue: response_operation,
|
|
2686
2686
|
});
|
|
2687
2687
|
this.createVariable({
|
|
2688
2688
|
stepConfig,
|
|
2689
2689
|
stepRecord,
|
|
2690
|
-
variable:
|
|
2690
|
+
variable: fluent_1.Variables.AssertResponseHeader.Value,
|
|
2691
2691
|
startingValue: header_value,
|
|
2692
2692
|
});
|
|
2693
2693
|
}
|
|
2694
2694
|
assertResponsePayload(inputs) {
|
|
2695
2695
|
const { response_body, response_operation } = inputs;
|
|
2696
|
-
const stepConfig =
|
|
2696
|
+
const stepConfig = fluent_1.StepConfig.AssertResponsePayload;
|
|
2697
2697
|
const stepRecord = this.createStepRecord({
|
|
2698
2698
|
name: 'Assert Response Payload',
|
|
2699
2699
|
stepConfig,
|
|
@@ -2702,13 +2702,13 @@ class ATF {
|
|
|
2702
2702
|
this.createVariable({
|
|
2703
2703
|
stepConfig,
|
|
2704
2704
|
stepRecord,
|
|
2705
|
-
variable:
|
|
2705
|
+
variable: fluent_1.Variables.AssertResponsePayload.ResponseBody,
|
|
2706
2706
|
startingValue: response_body,
|
|
2707
2707
|
});
|
|
2708
2708
|
this.createVariable({
|
|
2709
2709
|
stepConfig,
|
|
2710
2710
|
stepRecord,
|
|
2711
|
-
variable:
|
|
2711
|
+
variable: fluent_1.Variables.AssertResponsePayload.Operation,
|
|
2712
2712
|
startingValue: response_operation,
|
|
2713
2713
|
});
|
|
2714
2714
|
}
|