Instance Options:
- Option 1: Company live ServiceNow instance
- Option 2: Testing instance provided by ServiceNow
- Go to https://developer.servicenow.com/
- Scroll down to page
- Click "Register"
- Create a ServiceNow Developer account (if needed)
- Request a Personal Developer Instance (PDI)
- You'll receive in your ServiceNow profile the instance URL and credentials
- The instance remains active for 10 days of inactivity before hibernating
- Log in with your Developer account
- Open the Navigation menu (click All if not visible)
- Filter for:
sys_user.listand press Enter - Click New and fill out the New Record form and do NOT forget to fill in the User ID
- Open the newly created user record
- Scroll to the Role tab at the bottom
- Click Edit
- Type
adminin the Collection - Add
adminto the Role List and click Save
- Type
Path: src/main/resources/testFrameworkSettings.dev.json
-
Instance:
{ "instance": "instance" } -
Platform Release:
"platformRelease": "release" -
Polaris Enabled Flag:
"isPolarisEnabled": "true" -
Credentials Options:
Option 4.1: Hardcoded Credentials
"userName": "user", "password": "pass"Option 4.2: Use Environment Variables
"userName": "{env_servicenow-username-instance}", "password": "{env_servicenow-password-instance}"Create the following environment variables:
servicenow-username-instanceservicenow-password-instance
In the file `src/main/resources/application.properties set:
environment=devThe example is for the update of "dev" instance and the changes are applied to the config file: testFrameworkSettings.dev.json.
In case "qa" instance will be used, the above-mentioned changes need to be applied to the config file testFrameworkSettings.qa.json and the update environment=qa needed in the file application.properties.
In the file src/main/resources/application.properties set:
environment=dev