Can I select random value from the selected table in Automation Test Framework step ?

Bharat
Kilo Explorer

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 ?

5 REPLIES 5

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