Package Enhancements for Testing Flashcards

1
Q

ServiceNow has over 30 places where code can be inserted to change the behavior of the platform. Some are:

A
  1. UI/Data Policies, UI Actions
  2. Business Rules
  3. Client Scripts,
    and ACL Scripts, Flow scripts, Transform Maps, Script Includes, UI Macros/scripts/properties/pages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Scripting in ServiceNow is done in:

A

JavaScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is scripting in ServiceNow?

A

Scripting in SN or Platform Scripting is the customization of an instance and/or applications using JavaScript; and can fundamentally alter the baseline instance and user experience

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Javascript may execute on the:

A
  1. Client side (web-browser)
  2. server side (SN database)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a server?

A

A server is the computer program running as a service; its being referred to when a client refers to an application or system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which model uses ServiceNow?

A

Application Platform as a service (aPaaS)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the client?

A

The web-browser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a UI Policy?

A

A UI Policy is a rule that is applied to a form to dynamically change information or the form itself. UI Policies execute on CLIENT side.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What do yo use UI Policies for?

A

To set fields on a form to:
1. Mandatory or Optional
2. Hidden or Visible
3. Read-only or editable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

To apply UI Policies to all views you need to:

A

set the Global setting to true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What can you achieve through UI Policies?

A

To set fields on a form to:
1. Mandatory or Optional
2. Hidden or Visible
3. Read-only or editable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Once a UI Policy is saved, UI Policy Actions determine what happens on the form:

A
  1. setting fields as mandatory - require a value in order to save record,
  2. setting a field as hidden - no longer displaying a field,
  3. setting a field as read-only - preventing users from updating its value.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Are UI Policies about security?

A

No, they are about user experience and data integrity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a Data Policy?

A

A Data Policy is a rule that enforces data consistency by setting fields as mandatory or read-only, and applies to all data entered into the platform.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a similarity and difference between UI Policies and Data Policies?

A

UI Policies are enforced on data ONLY entered into a form via standard browser (passing through the UI). Data Policies are applied to ALL data entered into the platform (UI, Import Sets or web services).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Where executes a Data Policy?

A

On the server side, but can also run as a UI Policy on the client side (if checkbox selected)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Where executes UI Policy?

A

On the client side

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is the purpose of Data Policies?

A

To standardize the same data across ServiceNow applications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What do UI Actions?

A

UI Actions (called click actions) add buttons, links, and context menu items on forms and lists making the UI more intuitive, customizable and specific to users.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

UI Actions can execute:

A

Both on client and server sides depending on the “client” check bx selection.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Adding a “Create Problem” button on a form is a:

A

UI Action

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

UI Actions include:

A
  1. Form buttons
  2. Form context menu items
  3. Form links
  4. List buttons
  5. List context menu items
  6. List choices (at the bottom of the list)
  7. List links
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

When the UI Action Active box is checked:

A

the UI Action is active and can be interacted with by a user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

To turn on “Save” button(/UI Action) navigate to:

A

All > System properties > UI Properties > select show “Save”, “Insert” and “Insert and Stay” buttons on firms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Do UI Actions require JavaScripts?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

What do Client Scripts?

A

Client Scripts make “real-time” changes to the appearance of the user interface, especially forms.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Where to Client Scripts execute?

A

On the Client side, browser, but may also run a CLient Script when a database lookup is needed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Do Client Scripts require JavaScript?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Client Scripts are used to:

A
  1. automatically update the location field to reflect value user entered into the caller field,
  2. disable the attachment link of a closed record
  3. display a notice at the top of the page to confirm a catalog request was submitted
30
Q

Client Scripts allows for:

A

Browser/form manipulation and verification such as making fields visible on a condition (eg. alert when a use changes priority of an incident)

31
Q

What are the 4 types of Client Scripts?

A
  1. onCellEdit() - runs when cell changes value through list editor
  2. onChange() - runs when a particular fied changes value
  3. onLoad() - when a form is loaded
  4. onSubmit () - when a form is submitted
32
Q

Which type of Client Script applies to a particular field on a form, rather than form itself?

A

onChange()

33
Q

What does a Business Rule?

A

A Business Rule is configured to run when a record is displayed, inserted, updated, deleted or when a table is queried.

34
Q

Business Rules can be set to run:

A
  • before the database actions has occurred, or
  • after the database actions has occurred.
35
Q

The When setting for a Business rule determines when it executes and has the following choice:

A
  1. Before a record is saved to a database
  2. After a record is saved
  3. Async (queued), client and server work independently, so client is not waiting for server
  4. Display - before a record is displayed
36
Q

Most customization in the platform happen via:

A

Business Rules

37
Q

Business Rules are loaded and initialized:

A

at the beginning of each interaction between Client and the platform

38
Q

You can assign business rules:

A
  • to an application scope
  • global environment
39
Q

Business Rules apply to records:

A

regardless of how they are accessed (forms, lists, web services)

40
Q

What is the difference between UI Policies and Business Rules?

A

Business Rules are NOT real-time, they don’t monitor fields on a form

41
Q

Every Business Rule includes:

A
  1. what TABLE to run against,
  2. timing
  3. what CONDITIONS to evaluate
  4. what script to run based on evaluation
42
Q

Catalog UI Policies control the behavior of:

A

Catalog item forms when presented to users.

43
Q

Catalog UI Policies can be applied to:

A
  1. A Catalog Item
  2. Variable Set
44
Q

Catalog Client Scripts control the behavior of catalog items when presented to users on:

A
  1. onLoad
  2. onChange
  3. onSubmit
45
Q

Catalog Client Scripts run on:

A

client side

46
Q

Best practice is to:

A

use “no-code” alternative if can achieve the same goal

47
Q

What runs on the client side?

A
  1. UI Policies
  2. Client Scripts
  3. Catalog UI Policies
  4. Catalog Client Scripts
  5. UI Actions (can be server too)
48
Q

What runs on the server side?

A
  1. Data Policies
  2. Business Rules
  3. UI Actions (can be client too)
49
Q

What does applications scoping?

A

It protects applications by identifying and restricting access available artifacts and data

50
Q

What is a (system) Update Set?

A

A Update Set is a group of configuration changes that can be moved from one instance to another

51
Q

Update Sets allow admins to:

A

To group series of changes into a named set and then move them as a unit.

52
Q

Every instance has a default pdate set, but:

A

admins should use named update sets.

53
Q

AN Update set is a XML file that contains:

A
  1. A set of records details that uniquely identify the update set,
  2. List of configuration changes,
  3. A state that determines whether another instance can retrieve and apply configuration changes
54
Q

When merging multiple Update Sets, if several Update Sets modified the same object,

A

the most recent change will be the one moved to the new, merged Update Set.

55
Q

An Update Set is a:

A

container for configuration records (All > System Update Sets > Local Update Sets

56
Q

What enables you to preview and commit Update Sets in bulk?

A

the “Batch Update Set” option

57
Q

What is captured in an Update Set?

A
  1. Business Rules
  2. Client Scripts
  3. Fields
  4. Forms and Forms Sections
  5. Report Definitions
  6. Tables,
  7. Views
  8. Roles
  9. Published Workflows
58
Q

What is NOT captured in an Update Set?

A
  1. Data Records
  2. Tasks
  3. Modified CIs
  4. New users and groups
  5. Schedules
  6. Scheduled Jobs
  7. Dashboards (but can be manually added using Unload Dashboard Function)
59
Q

How to create an update set to store customization changes?

A
  1. Navigate to All > System Update Sets > Local Update Sets > New
  2. Complete form, click “Submit and Make Current”
  3. Select “In Progress”
60
Q

When you have completed “recording” changes for an Update Set, you need to:

A

Set the state to: Completed

61
Q

How to you apply an Update Set?

A
  1. Retrieve
  2. Preview
  3. Commit
62
Q

How to retrieve an Update Set from a Remote instance?

A
  1. Retrieve Completed Update Sets (connectivity to each sub-instance need to be established); Update set is previewed during retrieval
  2. Commit
63
Q

Automated Test Framework (ATF) is:

A

used to create and run automated tests on your SNow instances after modifying it.

64
Q

By default, the property for AFT is disabled to:

A

To prevent running it on a PROD instancw

65
Q

App Engine Studio (AES) is for:

A

low-code development, automating processes and solving business problems. Allows delegating development. May require additional purchase.

66
Q

Delegated Developers are:

A

Non-admin users and groups which are assigned to one or more permissions to develop applications.

67
Q

Which script runs when a record is displayed, inserted, updated, deleted or when a table is queried?

A

Business Rule

68
Q

What is used to move customizations from one instance to another?

A

Update Sets

69
Q

Which types of records are not captured in Update Sets?

A

Data records

70
Q

What protects applications by identifying and restricting access to available files and data?

A

Application Scoping

71
Q

What attributes of a field can a UI Policy Action change on a form?

A
  • Mandatory
  • Visible/hidden
  • Read-only
72
Q

What are the steps for applying an update set for an instance?

A
  1. Retrieve
  2. Preview
  3. Commit