Can I select random value from the selected table in Automation Test Framework step ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2018 06:11 AM
For Example In my test step I have opened the Incident table now in Automation test framework I have to select the particular one record which I have to open but Can I select random record from the available list of incident or specific one ?
Labels:
- Labels:
-
Incident Management
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2020 08:23 AM
Hi Mark, when I attempt to run your script I am receiving:
Evaluator: org.mozilla.javascript.EcmaError: "outputs" is not defined. Caused by error in script at line 1 ==> 1: (function(outputs, steps, stepResult, assertEqual) { 2: // Query for a random incident record 3: var rec = new GlideRecord('incident'); 4: rec.addQuery('active', true); // Adjust query parameters here