On-premise and Private cloud deployment modes allow customers to work with their own private Applitools Eyes server (as opposed to Applitool's public server).
In order to use your private server when running tests, you need to explicitly declare which server you are working with.
The following are examples of configuring the server URL in various SDKs:
Java:
eyes.setServerUrl('https://mycompanyeyesapi.applitools.com');
eyes.setServerUrl(new URI('https://mycompanyeyesapi.applitools.com');
Espresso:
eyes.setServerUrl('https://mycompanyeyesapi.applitools.com');
FYI - You may need to add the below dependency to your build.gradle:implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.7'
JS/Protractor:
eyes.setServerUrl('https://mycompanyeyesapi.applitools.com')
Ruby:
eyes.server_url = 'https://mycompanyeyesapi.applitools.com'
Python:
eyes.server_url = 'https://mycompanyeyesapi.applitools.com'
C#:
eyes.ServerUrl = new System.Uri('https://mycompanyeyesapi.applitools.com');
Cypress:
1. Set the APPLITOOLS_SERVER_URL environment variable:
1. Set the APPLITOOLS_SERVER_URL environment variable:
eyes.server_url = 'https://mycompanyeyesapi.applitools.com'
2. Or, specify the serverUrl in your applitools.config.js file:
module.exports = { serverUrl: 'YOUR_SERVER_URL', // ... }
Storybook:
1. Set the APPLITOOLS_SERVER_URL environment variable:
eyes.server_url = 'https://mycompanyeyesapi.applitools.com'
2. Or, specify the serverUrl in your applitools.config.js file:
module.exports = { serverUrl: 'https://mycompanyeyesapi.applitools.com', // ... }
WDIO:
eyes.setServerUrl("https://mycompanyeyesapi.applitools.com");
Objective-C:
NSString* value; // give relevant initial value
eyes.serverURL = value
QTP:
eyes.ServerUrl = "https://mycompanyeyesapi.applitools.com"