
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2017 10:28 AM
I've been experimenting with the Automated Test Framework and I'm finding lots of quirks. Here's one that I hope someone in the community can help with...
I have a Record Validation test step which is just checking for the 'Active' flag on a record. The only two options are true or false, (the test step config doesn't give any other options) but it doesn't matter which I select, the test always fails. Why?
Here is the test step setup:
I've confirmed that a matching record was found in both cases but both tests fail:
Solved! Go to Solution.
- Labels:
-
Automated Test Framework

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2018 09:42 AM
So, in my case, this turns out to be a stupid error on my part. The user (with no roles) that I was impersonating didn't have permissions to query/read the active field.
Lesson learned: when impersonating, remember to keep in mind the permissions that to which the impersonated user has access!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2017 05:41 AM
Hi Nia,
I ran into the exact same issue with similar code. The wait was working, but my tests were failing and getting stuck in pending. It appears the script requires an output to work properly. I created a true/false output variable called "u_waited" and added a line to set it to true:
(function executeStep(inputs, outputs, stepResult) {
gs.sleep(inputs.u_sleeptime * 1000);
stepResult.setOutputMessage(gs.getMessage("Wait complete"));
outputs.u_waited = true;
stepResult.setSuccess();
}(inputs, outputs, stepResult));

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2017 05:43 AM
I got it to work without an output variable. All I was missing initially was this line: stepResult.setSuccess();
But, while that fixed my custom step configuration, it did not resolve my original issue, for which I'm still waiting on a response from HI support.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2017 05:55 AM
Right after posting my previous reply, I also got it to work without an output variable...but with my original code. I can't even replicate the issue I was having previously.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2018 09:42 AM
So, in my case, this turns out to be a stupid error on my part. The user (with no roles) that I was impersonating didn't have permissions to query/read the active field.
Lesson learned: when impersonating, remember to keep in mind the permissions that to which the impersonated user has access!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2018 12:20 PM
When setting up your test step configuration, did you need to add anything special to the HTML section of the form?