Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
In Automated Test Framework, field values validation step with a date field and operator "between" does not support using GEM for both date values - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • In Automated Test Framework, field values validation step with a date field and operator "between" does not support using GEM for both date values
KB0622958

In Automated Test Framework, field values validation step with a date field and operator "between" does not support using GEM for both date values


3199 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Description

In Automated Test Framework (ATF) field values validation step with a date field and operator "between" does not support using GEM for both date values.

Steps to Reproduce

 

    1. Navigate to Automated Test Framework > Test.

    2. Create a new test.

      1. Click New to create a new test.
      2. Provide a name in the Name field.
      3. Click Save.
    3. Under the Test Steps related list, click Add Test Step.

    4. Create an Impersonate step.

      1. Click Server, then Impersonate, then Next.
      2. Set the User field to any user, for example, Abel Tuter from the demo data.
      3. Click Submit.
    5. Create a Field Values Validation step.

      1. Click Add Test Step.
      2. Click Form, then Field Values Validation, then Next.
      3. Set the Table field to Incident.
      4. In the the drop down "--choose field'--" list, select a date field (for example, Activity due).
      5. Change the operator value from "on" by choosing "between" from the drop-down list.

      Expected result: A GEM button appears next to both calendar icons, allowing GEM values to be used for both date values.

      Actual result: A GEM button appears only next to the second calendar icon, which means a GEM value can be used only for the second date value.

 

Workaround

If the desired condition is "[Activity due] [between] [GEM Value 1] and [GEM Value 2]," create the following two conditions:

  • [Activity due] [after] [GEM Value 1] AND
  • [Activity due] [before] [GEM Value 2]

Related Problem: PRB1030851

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.